Skip to content

Commit 3d2ffef

Browse files
committed
Add additional check when auto vmin/vmax are None.
1 parent c8b5dea commit 3d2ffef

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4944,6 +4944,8 @@ def reduce_C_function(C: array) -> float
49444944
if norm is not None:
49454945
if norm.vmin is None and norm.vmax is None:
49464946
norm.autoscale_None(accum)
4947+
norm.vmin = np.ma.masked if norm.vmin is None else norm.vmin
4948+
norm.vmax = np.ma.masked if norm.vmax is None else norm.vmax
49474949

49484950
if bins is not None:
49494951
if not np.iterable(bins):

0 commit comments

Comments
 (0)