Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ift
NIFTy
Commits
087cc9a0
Commit
087cc9a0
authored
Jan 25, 2018
by
Philipp Arras
Browse files
Add Unit to pspace plot
parent
c84236da
Changes
1
Hide whitespace changes
Inline
Side-by-side
nifty4/plotting/plot.py
View file @
087cc9a0
...
...
@@ -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
])
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment