Commit 087cc9a0 authored by Philipp Arras's avatar Philipp Arras

Add Unit to pspace plot

parent c84236da
......@@ -246,7 +246,7 @@ def plot(f, **kwargs):
plt.xscale('log')
plt.yscale('log')
plt.title('power')
xcoord = dom.k_lengths
xcoord = dom.k_lengths / kwargs.get("xunit")
for i, fld in enumerate(f):
ycoord = dobj.to_global_data(fld.val)
plt.plot(xcoord, ycoord, label=label[i])
......
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