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

repair legend in example VsGenx (#748)

parent 3618689b
No related branches found
No related tags found
1 merge request!1999Plot statement bp.show_or_export() or plt.show() no longer implied by high-level plot fcts (#748)
Pipeline #114106 canceled
...@@ -60,5 +60,5 @@ if __name__ == '__main__': ...@@ -60,5 +60,5 @@ if __name__ == '__main__':
simulation = get_simulation(sample) simulation = get_simulation(sample)
result = simulation.simulate() result = simulation.simulate()
bp.plot_simulation_result(result) bp.plot_simulation_result(result)
bp.show_or_export()
plt.legend(['GenX', 'BornAgain'], loc='upper right') plt.legend(['GenX', 'BornAgain'], loc='upper right')
bp.show_or_export()
...@@ -60,5 +60,5 @@ if __name__ == '__main__': ...@@ -60,5 +60,5 @@ if __name__ == '__main__':
simulation = get_simulation(sample) simulation = get_simulation(sample)
result = simulation.simulate() result = simulation.simulate()
bp.plot_simulation_result(result) bp.plot_simulation_result(result)
bp.show_or_export()
plt.legend(['GenX', 'BornAgain'], loc='upper right') plt.legend(['GenX', 'BornAgain'], loc='upper right')
bp.show_or_export()
...@@ -60,5 +60,5 @@ if __name__ == '__main__': ...@@ -60,5 +60,5 @@ if __name__ == '__main__':
simulation = get_simulation(sample) simulation = get_simulation(sample)
result = simulation.simulate() result = simulation.simulate()
bp.plot_simulation_result(result) bp.plot_simulation_result(result)
bp.show_or_export()
plt.legend(['GenX', 'BornAgain'], loc='upper right') plt.legend(['GenX', 'BornAgain'], loc='upper right')
bp.show_or_export()
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