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

Add Unit to pspace plot

parent c84236da
......@@ -246,7 +246,7 @@ def plot(f, **kwargs):
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])
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