Commit 3b1cb4ec authored by Philipp Arras's avatar Philipp Arras
Browse files

Different scaling for y axis in power spectrum plots

Does not depend on zero mode anymore which is not plotted anyways
parent bb264ada
Pipeline #52618 failed with stages
in 5 minutes and 35 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])
Supports Markdown
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