Commit ab4ea4e4 authored by Daniel Toyra's avatar Daniel Toyra
Browse files

Added noplot attribut to class func, and changed from using np.abs to np.real...

Added noplot attribut to class func, and changed from using np.abs to np.real when plotting abs finesse outputs with out.plot()
parent 2bd97d43
......@@ -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))
......
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment