From ab4ea4e4e47f2db88dbc26f22b575b5bff9dc5ee Mon Sep 17 00:00:00 2001
From: Daniel Toyra <dtoyra@star.sr.bham.ac.uk>
Date: Wed, 6 Apr 2016 05:50:14 +0100
Subject: [PATCH] Added noplot attribut to class func, and changed from using
 np.abs to np.real when plotting abs finesse outputs with out.plot()

---
 pykat/commands.py | 3 ++-
 pykat/finesse.py  | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/pykat/commands.py b/pykat/commands.py
index 6a9bcf6..b5eed1f 100644
--- a/pykat/commands.py
+++ b/pykat/commands.py
@@ -94,7 +94,8 @@ class func(Command):
         Command.__init__(self, name, False)
         
         self.value = value
-
+        self.noplot = False
+        
     def getFinesseText(self):
         return "func {name} = {value}".format(name=self.name, value=str(self.value))
 
diff --git a/pykat/finesse.py b/pykat/finesse.py
index fd4bf9f..3bd6075 100644
--- a/pykat/finesse.py
+++ b/pykat/finesse.py
@@ -352,7 +352,8 @@ class katRun(object):
             
             dual_plot = True
         elif "abs" in kat.yaxis:
-            _func1 = np.abs
+            # _func1 = np.abs
+            _func1 = np.real
             plot_cmd1 = plot_cmd
         elif "db" in kat.yaxis:
             _func1 = lambda x: 10*np.log10(x)
-- 
GitLab