Skip to content

Commit

Permalink
Fix fig6s1 figure data association and remove unused old data
Browse files Browse the repository at this point in the history
  • Loading branch information
chenchen2015 committed Aug 18, 2020
1 parent 8497cee commit 6b06033
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
13 changes: 5 additions & 8 deletions Production-Figure-Code/FigureCode/makeFigure6S1Plot.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function makeFigure6S1Plot(dataPath, savePath, usePublished)
function makeFigure6S1Plot(dataPath, savePath)
%% Plot figure 6---figure supplement 1

close all;
Expand All @@ -8,13 +8,9 @@ function makeFigure6S1Plot(dataPath, savePath, usePublished)
GEN_SAVE_PATH = @(fname) fullfile(savePath, fname);

%% Load data
if usePublished
load(GEN_DATA_PATH('snr_sweep_sim/SNR_SweepSim_Data.mat'));
else
% Search for simulated data in the working directory
[snrErg, snrInf, RE_Erg, RE_Inf] = ...
ProcessData(GEN_DATA_PATH('snr_sweep_sim/'));
end
% Search for simulated data in the working directory
[snrErg, snrInf, RE_Erg, RE_Inf] = ...
ProcessData(GEN_DATA_PATH('snr_sweep_sim/'));

%% Plot result
figure(1); clf;
Expand Down Expand Up @@ -42,6 +38,7 @@ function makeFigure6S1Plot(dataPath, savePath, usePublished)
opt.XTick = [10:10:50];
opt.YTick = [0:0.5:2.5];
opt.XLim = [9, 57];
opt.YLim = [0, 2.5];
opt.FontName = 'Helvetica';
opt.FontSize = 14;
opt.IgnoreLines = 1;
Expand Down

This file was deleted.

2 changes: 1 addition & 1 deletion Production-Figure-Code/makeFigurePanels.m
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ function callFigureCode(targetFig, FIG_DATA_PATH, FIG_OUTPUT_PATH, USE_PUBLISHED
case 'fig6'
makeFigure6Plot(FIG_DATA_PATH, FIG_OUTPUT_PATH);
case 'fig6s1'
makeFigure6S1Plot(FIG_DATA_PATH, FIG_OUTPUT_PATH, USE_PUBLISHED_DATASET);
makeFigure6S1Plot(FIG_DATA_PATH, FIG_OUTPUT_PATH);
case 'fig6s2'
makeFigure6S2Plot(FIG_DATA_PATH, FIG_OUTPUT_PATH);
case 'fig6s3'
Expand Down

0 comments on commit 6b06033

Please sign in to comment.