NREL / TITANIC

Turbine Inflow Turbulence ANalysIs Code
5 stars 4 forks source link

Suppress Figures #4

Open AndyClifton opened 8 years ago

AndyClifton commented 8 years ago

In some cases, TITANIC generates a huge number of plots. Can we suppress those figures?

AndyClifton commented 8 years ago

Figures are generate automatically if the code is run interactively. A lot of figures are generated the first time a script runs if the signals directory is empty.

Figures are suppressed if the code is compiled. See for example this snippet from FirstLook.m:

if isdeployed
    FSonicSpectra = figure('Name','Sonic Anemometer Spectra','Visible','off');
else
    FSonicSpectra = figure('Name','Sonic Anemometer Spectra','Visible','on');
end

I might be able to add a if (isdeployed | DO_NOFIGURES) ....