We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c42ff5 commit ba3aa68Copy full SHA for ba3aa68
src/stagpy/field.py
@@ -5,7 +5,7 @@
5
import typing
6
from itertools import chain
7
8
-import matplotlib as mpl
+import matplotlib.colors as mpl_colors
9
import matplotlib.patches as mpat
10
import matplotlib.pyplot as plt
11
import numpy as np
@@ -246,7 +246,7 @@ def plot_scalar(
246
cmap=conf.field.cmap.get(var),
247
vmin=conf.plot.vmin,
248
vmax=conf.plot.vmax,
249
- norm=mpl.colors.LogNorm() if var == "eta" else None,
+ norm=mpl_colors.LogNorm() if var == "eta" else None,
250
rasterized=conf.plot.raster,
251
shading="flat",
252
)
0 commit comments