diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b3fc220..cec1b15 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -39,9 +39,16 @@ jobs: runs-on: ubuntu-latest steps: + # Check out your repository - uses: actions/checkout@v5 + # Start display server (for UI tests in Linux) + - name: Start display server + run: | + Xvfb :99 & + echo "DISPLAY=:99" >> $GITHUB_ENV + # Set up MATLAB on a GitHub-hosted runner - name: Setup MATLAB uses: matlab-actions/setup-matlab@v2 @@ -49,11 +56,6 @@ jobs: products: ${{ env.PRODUCT_LIST }} cache: true - - name: Start display server (for UI tests in Linux) - run: | - Xvfb :99 & - echo "DISPLAY=:99" >> $GITHUB_ENV - # Run the MATLAB build tool to build and test your code - name: Run buildtool uses: matlab-actions/run-build@v2 @@ -72,7 +74,7 @@ jobs: url: ${{ steps.deployment.outputs.page_url }} # The type of runner that the job will run on - runs-on: windows-latest + runs-on: ubuntu-latest # Steps represent a sequence of tasks that will be executed as part of the job steps: @@ -80,6 +82,12 @@ jobs: # Check out your repository - uses: actions/checkout@v5 + # Start display server (for UI tests in Linux) + - name: Start display server + run: | + Xvfb :99 & + echo "DISPLAY=:99" >> $GITHUB_ENV + # Set up MATLAB on a GitHub-hosted runner - name: Setup MATLAB uses: matlab-actions/setup-matlab@v2 diff --git a/code/ConcTimecourseView.m b/code/ConcTimecourseView.m index df6ea0a..57ca81c 100644 --- a/code/ConcTimecourseView.m +++ b/code/ConcTimecourseView.m @@ -6,6 +6,7 @@ ConcColors = [0.30,0.75,0.93;... 0.86,0.55,0.41;... 0.91,0.73,0.42]; % colors to plot concentrations + LineWidth = 2.5 FontName = "Helvetica"; end @@ -39,10 +40,10 @@ xlabel(ax, "Time (hours)", 'FontName',obj.FontName); ylabel(ax, "Concentrations (nanomole/liter)",'FontName',obj.FontName); - obj.lhDrug = plot(ax, NaN, NaN, '-','Linewidth',2,'DisplayName','Drug'); + obj.lhDrug = plot(ax, NaN, NaN, '-','Linewidth',obj.LineWidth,'DisplayName','Drug'); hold(ax,'on'); - obj.lhReceptor = plot(ax, NaN, NaN, '-','Linewidth',2,'DisplayName','Receptor'); - obj.lhComplex= plot(ax, NaN, NaN, '-','Linewidth',2,'DisplayName','Complex'); + obj.lhReceptor = plot(ax, NaN, NaN, '-','Linewidth',obj.LineWidth,'DisplayName','Receptor'); + obj.lhComplex= plot(ax, NaN, NaN, '-','Linewidth',obj.LineWidth,'DisplayName','Complex'); hold(ax,'off'); lgd = legend(ax,'show','FontName',obj.FontName,'Color','none'); lgd.Box = "off"; diff --git a/code/ROTimecourseView.m b/code/ROTimecourseView.m index 35c3a7f..cea3fbb 100644 --- a/code/ROTimecourseView.m +++ b/code/ROTimecourseView.m @@ -5,6 +5,8 @@ ThresholdStyle = {'Color','r','Linewidth',2,'LineStyle','--',... 'FontWeight','bold','LabelVerticalAlignment','middle'}; % style for threshold lines + + Linewidth = 2.5 end properties ( Hidden, SetAccess=private) @@ -41,7 +43,7 @@ xlabel(ax, "Time (hours)", 'FontName',obj.FontName); ylabel(ax, "RO (%)",'FontName',obj.FontName); - obj.lhRO = plot(ax, NaN, NaN,'Linewidth',2); + obj.lhRO = plot(ax, NaN, NaN,'Linewidth',obj.Linewidth); yline(ax,model.ThresholdValues(1), '--','efficacy','FontName',obj.FontName,obj.ThresholdStyle{:}); yline(ax,model.ThresholdValues(2), '--','safety','FontName',obj.FontName,obj.ThresholdStyle{:}); grid(ax,"on");