Skip to content

Commit

Permalink
Replace Colorbar.draw_all with Figure.draw_without_rendering (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulromano authored Apr 24, 2024
1 parent 8aa5067 commit 8c932b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openmc_plotter/plotgui.py
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@ def updateDataIndicatorVisibility(self):
def updateColorMap(self, colormap_name, property_type):
if self.colorbar and property_type == self.model.activeView.colorby:
self.image.set_cmap(colormap_name)
self.colorbar.draw_all()
self.figure.draw_without_rendering()
self.draw()

def updateColorMinMax(self, property_type):
Expand All @@ -729,7 +729,7 @@ def updateColorMinMax(self, property_type):
self.colorbar.mappable.set_clim(*clim)
self.data_indicator.set_data(clim[:2],
(0.0, 0.0))
self.colorbar.draw_all()
self.figure.draw_without_rendering()
self.draw()


Expand Down

0 comments on commit 8c932b8

Please sign in to comment.