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

repair aspect ratio of plot for example OffspecLambda

parent cbfa1b1c
No related branches found
No related tags found
1 merge request!2829fine tuning of offspec ToF example (#1073)
......@@ -58,5 +58,8 @@ if __name__ == '__main__':
sample = get_sample()
simulation = get_simulation(sample)
result = simulation.simulate()
bp.plot_simulation_result(result)
plotargs = bp.parse_commandline()
plotargs['intensity_min'] = 1
plotargs['aspect'] = 'auto'
bp.plot_simulation_result(result, **plotargs)
bp.plt.show()
......@@ -58,13 +58,12 @@ if __name__ == '__main__':
sample = get_sample()
simulation = get_simulation(sample)
result = simulation.simulate()
<%- if test_mode or figure_mode -%>
plotargs = bp.parse_commandline()
plotargs['intensity_min'] = 1
plotargs['aspect'] = 'auto'
bp.plot_simulation_result(result, **plotargs)
<%- if test_mode or figure_mode -%>
bp.export(**plotargs)
<%- else -%>
bp.plot_simulation_result(result)
bp.plt.show()
<%- end -%>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment