Skip to content

Commit 66b2c23

Browse files
committed
Update property colorbar cache name for consistency
1 parent fbecb92 commit 66b2c23

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

openmc_plotter/plotgui.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def __init__(self, model: PlotModel, parent, main_window):
5151
self.tally_image = None
5252
self.image = None
5353

54-
self._data_colorbar_bg = None
54+
self._property_colorbar_bg = None
5555
self._tally_colorbar_bg = None
5656
self._last_tally_indicator_value = None
5757
self._last_data_indicator_value = None
@@ -754,11 +754,11 @@ def updateColorbarScale(self):
754754

755755
def _cache_colorbar_backgrounds(self):
756756
"""Cache colorbar backgrounds for fast indicator blitting."""
757-
self._data_colorbar_bg = None
757+
self._property_colorbar_bg = None
758758
self._tally_colorbar_bg = None
759759

760760
if self.property_colorbar and self.data_indicator:
761-
self._data_colorbar_bg = self.copy_from_bbox(
761+
self._property_colorbar_bg = self.copy_from_bbox(
762762
self.property_colorbar.ax.bbox)
763763

764764
if self.tally_colorbar and self.tally_data_indicator:
@@ -774,7 +774,7 @@ def _blit_indicator(self, indicator, colorbar):
774774
return False
775775

776776
if colorbar is self.property_colorbar:
777-
background = self._data_colorbar_bg
777+
background = self._property_colorbar_bg
778778
else:
779779
background = self._tally_colorbar_bg
780780

0 commit comments

Comments
 (0)