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

Skip to content

Commit ba6b3a3

Browse files
committed
ENH : add stale flag to Barb
1 parent ae90b40 commit ba6b3a3

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
@@ -1137,6 +1137,7 @@ def set_UVC(self, U, V, C=None):
11371137
# Update the offsets in case the masked data changed
11381138
xy = np.hstack((x[:, np.newaxis], y[:, np.newaxis]))
11391139
self._offsets = xy
1140+
self.stale = True
11401141

11411142
def set_offsets(self, xy):
11421143
"""
@@ -1152,6 +1153,8 @@ def set_offsets(self, xy):
11521153
self.u, self.v)
11531154
xy = np.hstack((x[:, np.newaxis], y[:, np.newaxis]))
11541155
mcollections.PolyCollection.set_offsets(self, xy)
1156+
self.stale = True
1157+
11551158
set_offsets.__doc__ = mcollections.PolyCollection.set_offsets.__doc__
11561159

11571160
barbs_doc = _barbs_doc

0 commit comments

Comments
 (0)