Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ift
NIFTy
Commits
a014e614
Commit
a014e614
authored
Jul 23, 2017
by
Theo Steininger
Browse files
Now, only rank==0 produces plotly plots.
parent
c0b169f1
Pipeline
#15427
passed with stages
in 12 minutes and 25 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
nifty/plotting/plotter/plotter_base.py
View file @
a014e614
...
...
@@ -86,15 +86,18 @@ class PlotterBase(Loggable, object):
for
field
in
fields
]
# create plots
if
rank
==
0
:
plots_list
=
[]
for
slice_list
in
utilities
.
get_slice_list
(
data_list
[
0
].
shape
,
axes
):
for
slice_list
in
utilities
.
get_slice_list
(
data_list
[
0
].
shape
,
axes
):
plots_list
+=
\
[[
self
.
plot
.
at
(
self
.
_parse_data
(
current_data
,
field
,
spaces
))
for
(
current_data
,
field
)
in
zip
(
data_list
,
fields
)]]
figures
=
[
self
.
figure
.
at
(
plots
,
title
=
title
)
for
plots
in
plots_list
]
figures
=
[
self
.
figure
.
at
(
plots
,
title
=
title
)
for
plots
in
plots_list
]
self
.
_finalize_figure
(
figures
,
path
=
path
)
...
...
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