Commit bd46f3ca authored by Philipp Arras's avatar Philipp Arras

Different scaling for y axis in power spectrum plots

Does not depend on zero mode anymore which is not plotted anyways
parent f683a520
Pipeline #51916 passed with stages
in 7 minutes and 58 seconds
......@@ -323,7 +323,8 @@ def _plot1D(f, ax, **kwargs):
plt.yscale(kwargs.pop("yscale", "log"))
xcoord = dom.k_lengths
for i, fld in enumerate(f):
ycoord = fld.to_global_data()
ycoord = fld.to_global_data_rw()
ycoord[0] = ycoord[1]
plt.plot(xcoord, ycoord, label=label[i],
linewidth=linewidth[i], alpha=alpha[i])
_limit_xy(**kwargs)
......
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