Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitba6b3a3

Browse files
committed
ENH : add stale flag to Barb
1 parentae90b40 commitba6b3a3

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
defset_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)

[8]ページ先頭

©2009-2025 Movatter.jp