Skip to content

Commit 16cba9d

Browse files
tacaswellefiring
authored andcommitted
FIX: use valid local variable
Due to `pcolorfast` returning an image or a collection, the proper local variable is `ret`.
1 parent 5d82bcb commit 16cba9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5825,8 +5825,8 @@ def pcolorfast(self, *args, **kwargs):
58255825
ret.set_clim(vmin, vmax)
58265826
else:
58275827
ret.autoscale_None()
5828-
collection.stickies.x[:] = [xl, xr]
5829-
collection.stickies.y[:] = [yb, yt]
5828+
ret.stickies.x[:] = [xl, xr]
5829+
ret.stickies.y[:] = [yb, yt]
58305830
self.update_datalim(np.array([[xl, yb], [xr, yt]]))
58315831
self.autoscale_view(tight=True)
58325832
return ret

0 commit comments

Comments
 (0)