Skip to content

Commit 8c932b8

Browse files
authored
Replace Colorbar.draw_all with Figure.draw_without_rendering (#141)
1 parent 8aa5067 commit 8c932b8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

openmc_plotter/plotgui.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@ def updateDataIndicatorVisibility(self):
719719
def updateColorMap(self, colormap_name, property_type):
720720
if self.colorbar and property_type == self.model.activeView.colorby:
721721
self.image.set_cmap(colormap_name)
722-
self.colorbar.draw_all()
722+
self.figure.draw_without_rendering()
723723
self.draw()
724724

725725
def updateColorMinMax(self, property_type):
@@ -729,7 +729,7 @@ def updateColorMinMax(self, property_type):
729729
self.colorbar.mappable.set_clim(*clim)
730730
self.data_indicator.set_data(clim[:2],
731731
(0.0, 0.0))
732-
self.colorbar.draw_all()
732+
self.figure.draw_without_rendering()
733733
self.draw()
734734

735735

0 commit comments

Comments
 (0)