Skip to content
Snippets Groups Projects
Commit 1a2d4c52 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

rm parse_commandline from ex/... (#1123)

parent ab7da4e7
No related branches found
No related tags found
1 merge request!2911rm parse_commandline from public script examples (#1123)
...@@ -66,7 +66,5 @@ if __name__ == '__main__': ...@@ -66,7 +66,5 @@ if __name__ == '__main__':
sample = get_sample() sample = get_sample()
simulation = get_simulation(sample) simulation = get_simulation(sample)
result = simulation.simulate() result = simulation.simulate()
plotargs = bp.parse_commandline() bp.plot_simulation_result(result, intensity_min=1e-3)
plotargs['intensity_min'] = 1e-03
bp.plot_simulation_result(result, **plotargs)
bp.plt.show() bp.plt.show()
...@@ -29,7 +29,5 @@ if __name__ == '__main__': ...@@ -29,7 +29,5 @@ if __name__ == '__main__':
simulate(None, "Without footprint"), simulate(None, "Without footprint"),
] ]
plotargs = bp.parse_commandline() bp.plot_multicurve(results, legendloc='lower left')
plotargs['legendloc'] = 'lower left'
bp.plot_multicurve(results, **plotargs)
bp.plt.show() bp.plt.show()
...@@ -66,11 +66,12 @@ if __name__ == '__main__': ...@@ -66,11 +66,12 @@ if __name__ == '__main__':
sample = get_sample() sample = get_sample()
simulation = get_simulation(sample) simulation = get_simulation(sample)
result = simulation.simulate() result = simulation.simulate()
<%- if test_mode or figure_mode -%>
plotargs = bp.parse_commandline() plotargs = bp.parse_commandline()
plotargs['intensity_min'] = 1e-03 plotargs['intensity_min'] = 1e-03
bp.plot_simulation_result(result, **plotargs) bp.plot_simulation_result(result, **plotargs)
<%- if test_mode or figure_mode -%>
bp.export(**plotargs) bp.export(**plotargs)
<%- else -%> <%- else -%>
bp.plot_simulation_result(result, intensity_min=1e-3)
bp.plt.show() bp.plt.show()
<%- end -%> <%- end -%>
...@@ -29,11 +29,12 @@ if __name__ == '__main__': ...@@ -29,11 +29,12 @@ if __name__ == '__main__':
simulate(None, "Without footprint"), simulate(None, "Without footprint"),
] ]
<%- if test_mode or figure_mode -%>
plotargs = bp.parse_commandline() plotargs = bp.parse_commandline()
plotargs['legendloc'] = 'lower left' plotargs['legendloc'] = 'lower left'
bp.plot_multicurve(results, **plotargs) bp.plot_multicurve(results, **plotargs)
<%- if test_mode or figure_mode -%>
bp.export(**plotargs) bp.export(**plotargs)
<%- else -%> <%- else -%>
bp.plot_multicurve(results, legendloc='lower left')
bp.plt.show() bp.plt.show()
<%- end -%> <%- end -%>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment