Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Replace Colorbar.draw_all with Figure.draw_without_rendering
  • Loading branch information
paulromano committed Apr 23, 2024
commit e11a835253f1dbd20b782df72d2470666742eb3e
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