Skip to content

Commit 141bb58

Browse files
committed
PNGReader: replace matplotlib dep with scipy
1 parent 2a7d692 commit 141bb58

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/python/picongpu/plugins/png.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"""
88

99
import os
10-
import matplotlib.image as mpimg
10+
from scipy import misc
1111
import collections
1212

1313
SPECIES_LONG_NAMES = {
@@ -198,7 +198,7 @@ def get(self, species, species_filter='all', iteration=None,
198198
# iteration is None, so we use all available data
199199
iteration = available_iterations
200200

201-
imgs = {it: mpimg.imread(
201+
imgs = {it: misc.imread(
202202
self.get_data_path(species, species_filter, axis,
203203
slice_point, it)) for it in iteration}
204204
if len(iteration) == 1:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
numpy
22
pandas>=0.21.0
33
h5py
4-
matplotlib
4+
scipy
55
-r plot_mpl/requirements.txt

0 commit comments

Comments
 (0)