Skip to content

Commit ba3aa68

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/stagpy/field.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import typing
66
from itertools import chain
77

8-
import matplotlib as mpl
8+
import matplotlib.colors as mpl_colors
99
import matplotlib.patches as mpat
1010
import matplotlib.pyplot as plt
1111
import numpy as np
@@ -246,7 +246,7 @@ def plot_scalar(
246246
cmap=conf.field.cmap.get(var),
247247
vmin=conf.plot.vmin,
248248
vmax=conf.plot.vmax,
249-
norm=mpl.colors.LogNorm() if var == "eta" else None,
249+
norm=mpl_colors.LogNorm() if var == "eta" else None,
250250
rasterized=conf.plot.raster,
251251
shading="flat",
252252
)

0 commit comments

Comments
 (0)