Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
NIFTy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
13
Issues
13
List
Boards
Labels
Service Desk
Milestones
Merge Requests
9
Merge Requests
9
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ift
NIFTy
Commits
434ada9d
Commit
434ada9d
authored
Sep 03, 2019
by
Philipp Arras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support MultiField plotting
parent
0a97a9ae
Pipeline
#54995
failed with stages
in 5 minutes and 54 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
nifty5/plot.py
nifty5/plot.py
+11
-0
No files found.
nifty5/plot.py
View file @
434ada9d
...
...
@@ -482,6 +482,17 @@ class Plot(object):
alpha: float or list of floats
Transparency value.
"""
from
.multi_domain
import
MultiDomain
if
isinstance
(
f
.
domain
,
MultiDomain
):
for
kk
in
f
.
domain
.
keys
():
self
.
_plots
.
append
(
f
[
kk
])
mykwargs
=
kwargs
.
copy
()
if
'title'
in
kwargs
:
mykwargs
[
'title'
]
=
"{} {}"
.
format
(
kk
,
kwargs
[
'title'
])
else
:
mykwargs
[
'title'
]
=
"{}"
.
format
(
kk
)
self
.
_kwargs
.
append
(
mykwargs
)
return
self
.
_plots
.
append
(
f
)
self
.
_kwargs
.
append
(
kwargs
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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