@@ -46,12 +46,11 @@ def _validate_patch_dims(patch):
4646 return patch
4747
4848
49- def _get_scale (scale , scale_type , patch ):
49+ def _get_scale (scale , scale_type , data ):
5050 """
5151 Calculate the color bar scale limits based on scale and scale_type.
5252 """
5353 _validate_scale_type (scale_type )
54- data = patch .data
5554
5655 match (scale , scale_type ):
5756 # Case 1: Single value with relative scaling
@@ -153,8 +152,8 @@ def waterfall(
153152 Values can either be a float, to set upper and lower limit to the same
154153 value centered around the mean of the data, a length 2 tuple
155154 specifying upper and lower limits, or None, which will automatically
156- determine limits based on a quartile fence. (uses q1 - 3.0 * (q3 - q1)
157- and q3 + 3.0 * (q3 - q1)).
155+ determine limits based on a quartile fence. (uses q1 - 1.5 * (q3 - q1)
156+ and q3 + 1.5 * (q3 - q1)).
158157 scale_type
159158 Controls the type of scaling specified by `scale` parameter. Options
160159 are:
@@ -230,7 +229,7 @@ def waterfall(
230229
231230 # Plot using imshow and set colorbar limits
232231 extents = _get_extents (dims_r , coords )
233- scale = _get_scale (scale , scale_type , patch )
232+ scale = _get_scale (scale , scale_type , data )
234233 im = ax .imshow (
235234 data ,
236235 extent = extents ,
0 commit comments