Skip to content

Commit 9e821a2

Browse files
committed
Update get_cmap syntax and set minimum matplotlib version
1 parent e08b1ca commit 9e821a2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dedalus/extras/plot_tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def plot_bot(dset, image_axes, data_slices, image_scales=(0,0), clim=None, even_
119119
axes.axis('off')
120120

121121
# Colormap options
122-
cmap = copy.copy(matplotlib.cm.get_cmap(cmap))
122+
cmap = plt.get_cmap(cmap)
123123
cmap.set_bad('0.7')
124124

125125
# Plot

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def read(rel_path):
183183
install_requires = [
184184
"docopt",
185185
"h5py >= 3.0.0",
186-
"matplotlib",
186+
"matplotlib >= 3.7.0",
187187
"mpi4py >= 2.0.0",
188188
"numexpr",
189189
"numpy >= 1.20.0",

0 commit comments

Comments
 (0)