Skip to content

Commit

Permalink
Merge pull request #2327 from LarsVoxen/master
Browse files Browse the repository at this point in the history
Update PColorMeshItem.py
  • Loading branch information
j9ac9k committed Jun 18, 2022
2 parents 371a29c + 15854c0 commit 15a5034
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pyqtgraph/graphicsItems/PColorMeshItem.py
Expand Up @@ -205,9 +205,6 @@ def setData(self, *args):
matplotlib.pyplot.pcolormesh.html>".
"""

# Prepare data
self._prepareData(args)

# Has the view bounds changed
shapeChanged = False
if self.qpicture is None:
Expand All @@ -219,6 +216,10 @@ def setData(self, *args):
if np.any(self.x != args[0]) or np.any(self.y != args[1]):
shapeChanged = True

# Prepare data
self._prepareData(args)


self.qpicture = QtGui.QPicture()
painter = QtGui.QPainter(self.qpicture)
# We set the pen of all polygons once
Expand Down

0 comments on commit 15a5034

Please sign in to comment.