From 2a62fc59a5a59024a618b76aac3337e8179d155d Mon Sep 17 00:00:00 2001 From: Andreas Freise <adf@star.bham.ac.uk> Date: Thu, 28 Nov 2013 12:33:17 +0000 Subject: [PATCH] renaming run to out so not to overwrite the run command. --- bin/test_plot.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/bin/test_plot.py b/bin/test_plot.py index 001dbe4..bc8eba7 100644 --- a/bin/test_plot.py +++ b/bin/test_plot.py @@ -16,6 +16,7 @@ m m2 0.5 0.5 0 n4 n5 s s3 10 1 n5 n6 """ +#kat = finesse.kat(katexe='/Users/adf/work/bin/kat') kat = finesse.kat() kat.parseCommands(code) @@ -35,11 +36,11 @@ kat.m2.Rcy = 1000.0 kat.maxtem = 0 -run = kat.run(printout=0,printerr=0) +out = kat.run(printout=0,printerr=0) pl.figure() -pl.plot(run.x,run.y) -pl.xlabel(run.xlabel) +pl.plot(out.x,out.y) +pl.xlabel(out.xlabel) pl.ylabel("Intensity [W]") -pl.legend(run.ylabels) +pl.legend(out.ylabels) pl.show() -- GitLab