Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -94,6 +94,7 @@ 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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment