Skip to content

Commit 7f5507f

Browse files
committed
Put back matplotlib import in MPI
1 parent 57414e4 commit 7f5507f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

docs/tutorials/local_sine_tutorial.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ need to write a new allocation function.
400400

401401
.. code-block:: python
402402
:linenos:
403-
:lineno-start: 28
403+
:lineno-start: 27
404404
405405
# replace libE_specs with parse_args=True. Detects MPI runtime
406406
ensemble = Ensemble(sim_specs, gen_specs, exit_criteria, parse_args=True)
@@ -416,6 +416,8 @@ need to write a new allocation function.
416416
print([i for i in history.dtype.fields])
417417
print(history)
418418
419+
import matplotlib.pyplot as plt
420+
419421
colors = ["b", "g", "r", "y", "m", "c", "k", "w"]
420422
421423
for i in range(1, ensemble.nworkers + 1):

0 commit comments

Comments
 (0)