Commit c763652b authored by Martin Reinecke's avatar Martin Reinecke

Merge branch 'plotting' into 'NIFTy_5'

Different scaling for y axis in power spectrum plots

See merge request !336
parents f255cd88 bd46f3ca
Pipeline #52868 passed with stages
in 9 minutes and 13 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