Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d6b8503

Browse files
committed
ENH : add stale flag to Barb
1 parent 9bc5c57 commit d6b8503

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/matplotlib/quiver.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1135,6 +1135,7 @@ def set_UVC(self, U, V, C=None):
11351135
# Update the offsets in case the masked data changed
11361136
xy = np.hstack((x[:, np.newaxis], y[:, np.newaxis]))
11371137
self._offsets = xy
1138+
self.stale = True
11381139

11391140
def set_offsets(self, xy):
11401141
"""
@@ -1150,6 +1151,8 @@ def set_offsets(self, xy):
11501151
self.u, self.v)
11511152
xy = np.hstack((x[:, np.newaxis], y[:, np.newaxis]))
11521153
mcollections.PolyCollection.set_offsets(self, xy)
1154+
self.stale = True
1155+
11531156
set_offsets.__doc__ = mcollections.PolyCollection.set_offsets.__doc__
11541157

11551158
barbs_doc = _barbs_doc

0 commit comments

Comments
 (0)