Skip to content

Commit 8ea0fc7

Browse files
committed
fix mpl.colors import
1 parent 3c42ff5 commit 8ea0fc7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/stagpy/field.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from itertools import chain
77

88
import matplotlib as mpl
9+
import matplotlib.colors as mpl_colors
910
import matplotlib.patches as mpat
1011
import matplotlib.pyplot as plt
1112
import numpy as np
@@ -246,7 +247,7 @@ def plot_scalar(
246247
cmap=conf.field.cmap.get(var),
247248
vmin=conf.plot.vmin,
248249
vmax=conf.plot.vmax,
249-
norm=mpl.colors.LogNorm() if var == "eta" else None,
250+
norm=mpl_colors.LogNorm() if var == "eta" else None,
250251
rasterized=conf.plot.raster,
251252
shading="flat",
252253
)

0 commit comments

Comments
 (0)