Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
2 merge requests!349Fix mpi,!333Operator spectra
Pipeline #52618 failed
...@@ -323,7 +323,8 @@ def _plot1D(f, ax, **kwargs): ...@@ -323,7 +323,8 @@ def _plot1D(f, ax, **kwargs):
plt.yscale(kwargs.pop("yscale", "log")) plt.yscale(kwargs.pop("yscale", "log"))
xcoord = dom.k_lengths xcoord = dom.k_lengths
for i, fld in enumerate(f): 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], plt.plot(xcoord, ycoord, label=label[i],
linewidth=linewidth[i], alpha=alpha[i]) linewidth=linewidth[i], alpha=alpha[i])
_limit_xy(**kwargs) _limit_xy(**kwargs)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment