File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -5228,11 +5228,6 @@ def reduce_C_function(C: array) -> float
5228
5228
vmin = vmax = None
5229
5229
bins = None
5230
5230
5231
- # autoscale the norm with current accum values if it hasn't been set
5232
- if norm is not None :
5233
- if norm .vmin is None and norm .vmax is None :
5234
- norm .autoscale (accum )
5235
-
5236
5231
if bins is not None :
5237
5232
if not np .iterable (bins ):
5238
5233
minimum , maximum = min (accum ), max (accum )
@@ -5248,6 +5243,11 @@ def reduce_C_function(C: array) -> float
5248
5243
collection ._internal_update (kwargs )
5249
5244
collection ._scale_norm (norm , vmin , vmax )
5250
5245
5246
+ # autoscale the norm with current accum values if it hasn't been set
5247
+ if norm is not None :
5248
+ if collection .norm .vmin is None and collection .norm .vmax is None :
5249
+ collection .norm .autoscale ()
5250
+
5251
5251
corners = ((xmin , ymin ), (xmax , ymax ))
5252
5252
self .update_datalim (corners )
5253
5253
self ._request_autoscale_view (tight = True )
You can’t perform that action at this time.
0 commit comments