To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Commit 59764a87 authored by Cyrill Mast's avatar Cyrill Mast
Browse files

absolute value for semi-log plot

parent 5baa9379
Pipeline #89123 passed with stages
in 4 minutes and 51 seconds
......@@ -29,10 +29,10 @@ class PlotVarious(PlotGeneral):
self.x_data = _
self.x_label = "n"
if real:
self.y_data = [self.b.A_n(int(n)).real for n in _]
self.y_data = [abs(self.b.A_n(int(n)).real) for n in _]
self.y_label = "real part of A_n"
else:
self.y_data = [self.b.A_n(int(n)).imag for n in _]
self.y_data = [abs(self.b.A_n(int(n)).imag) for n in _]
self.y_label = "imaginary part of A_n"
self.figshow(self._fig_semilogy)
......@@ -56,10 +56,10 @@ class PlotVarious(PlotGeneral):
self.x_data = _
self.x_label = "n"
if real:
self.y_data = [self.b.B_n(int(n)).real for n in _]
self.y_data = [abs(self.b.B_n(int(n)).real) for n in _]
self.y_label = "real part of B_n"
else:
self.y_data = [self.b.B_n(int(n)).imag for n in _]
self.y_data = [abs(self.b.B_n(int(n)).imag) for n in _]
self.y_label = "imaginary part of B_n"
self.figshow(self._fig_semilogy)
......@@ -83,10 +83,10 @@ class PlotVarious(PlotGeneral):
self.x_data = _
self.x_label = "n"
if real:
self.y_data = [self.b.K_n(int(n)).real for n in _]
self.y_data = [abs(self.b.K_n(int(n)).real) for n in _]
self.y_label = "real part of K_n"
else:
self.y_data = [self.b.K_n(int(n)).imag for n in _]
self.y_data = [abs(self.b.K_n(int(n)).imag) for n in _]
self.y_label = "imaginary part of K_n"
self.figshow(self._fig_semilogy)
......@@ -110,10 +110,10 @@ class PlotVarious(PlotGeneral):
self.x_data = _
self.x_label = "n"
if real:
self.y_data = [self.b.M_n(int(n)).real for n in _]
self.y_data = [abs(self.b.M_n(int(n)).real) for n in _]
self.y_label = "real part of M_n"
else:
self.y_data = [self.b.M_n(int(n)).imag for n in _]
self.y_data = [abs(self.b.M_n(int(n)).imag) for n in _]
self.y_label = "imaginary part of M_n"
self.figshow(self._fig_semilogy)
......
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