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

Skip to content

Commit 429031f

Browse files
committed
ENH : add stale flag to QuadMesh
1 parent 895a3f5 commit 429031f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/collections.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1708,6 +1708,7 @@ def get_paths(self):
17081708
def set_paths(self):
17091709
self._paths = self.convert_mesh_to_paths(
17101710
self._meshWidth, self._meshHeight, self._coordinates)
1711+
self.stale = True
17111712

17121713
def get_datalim(self, transData):
17131714
return (self.get_transform() - transData).transform_bbox(self._bbox)
@@ -1831,6 +1832,7 @@ def draw(self, renderer):
18311832
self._antialiased, self.get_edgecolors())
18321833
gc.restore()
18331834
renderer.close_group(self.__class__.__name__)
1835+
self.stale = False
18341836

18351837

18361838
patchstr = artist.kwdoc(Collection)

0 commit comments

Comments
 (0)