diff --git a/auto/Examples/varia/Depthprobe1.py b/auto/Examples/varia/Depthprobe1.py index bea4a998a8db133639f736d5d687497b3243b110..ded42018ba0c83fba6143350d881451f80db9d6a 100755 --- a/auto/Examples/varia/Depthprobe1.py +++ b/auto/Examples/varia/Depthprobe1.py @@ -37,7 +37,7 @@ def run_example(flags=0): sample = get_sample() simulation = get_simulation(sample, flags) result = simulation.simulate() - plotargs = bp.parse_commandline() + plotargs = {} plotargs['aspect'] = 'auto' plotargs['intensity_min'] = 1e-12 plotargs['intensity_max'] = 1e2 diff --git a/rawEx/varia/Depthprobe1.py b/rawEx/varia/Depthprobe1.py index c98088749a13607a878720bea49bb46dd4b6e833..3bcb6c9ed688166b9f2c4eb347bd69c63f45b51b 100755 --- a/rawEx/varia/Depthprobe1.py +++ b/rawEx/varia/Depthprobe1.py @@ -37,7 +37,11 @@ def run_example(flags=0): sample = get_sample() simulation = get_simulation(sample, flags) result = simulation.simulate() + <%- if test_mode or figure_mode -%> plotargs = bp.parse_commandline() + <%- else -%> + plotargs = {} + <%- end -%> plotargs['aspect'] = 'auto' plotargs['intensity_min'] = 1e-12 plotargs['intensity_max'] = 1e2