From bdab1b9107670545400c45ea6190243560c060ad Mon Sep 17 00:00:00 2001 From: "Joachim Wuttke (h)" <j.wuttke@fz-juelich.de> Date: Mon, 7 Dec 2020 23:24:30 +0100 Subject: [PATCH] sim01/AllFormFactorsAvailable: rename main fct --- Examples/Python/sim01_Particles/AllFormFactorsAvailable.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Examples/Python/sim01_Particles/AllFormFactorsAvailable.py b/Examples/Python/sim01_Particles/AllFormFactorsAvailable.py index 01330432da7..82ce0f5f93d 100644 --- a/Examples/Python/sim01_Particles/AllFormFactorsAvailable.py +++ b/Examples/Python/sim01_Particles/AllFormFactorsAvailable.py @@ -78,7 +78,7 @@ def simulate(ff): return simulation.result() -def run_simulation(): +def simulate_and_plot(): """ Run simulation one by one for every form factor from the list and plot results on a single canvas @@ -113,8 +113,8 @@ def run_simulation(): horizontalalignment='center', verticalalignment='center', fontsize=9) + plt.show() if __name__ == '__main__': - run_simulation() - plt.show() + simulate_and_plot() -- GitLab