88 QComboBox , QSpinBox , QDoubleSpinBox , QSizePolicy ,
99 QCheckBox , QDockWidget , QScrollArea , QListWidget ,
1010 QListWidgetItem , QTreeWidget , QTreeWidgetItem )
11- from matplotlib import cm as mcolormaps
11+ import matplotlib . pyplot as plt
1212import numpy as np
1313import openmc
1414
1515from .custom_widgets import HorizontalLine , Expander
1616from .scientific_spin_box import ScientificDoubleSpinBox
1717from .plotmodel import (_SCORE_UNITS , _TALLY_VALUES ,
1818 _REACTION_UNITS , _SPATIAL_FILTERS )
19- import matplotlib .pyplot as plt
2019
2120
2221class PlotterDock (QDockWidget ):
@@ -635,8 +634,8 @@ def updateScores(self):
635634 empty_item = QListWidgetItem ()
636635 score_box .setFlags (empty_item .flags () |
637636 QtCore .Qt .ItemIsUserCheckable )
638- score_box .setFlags (empty_item .flags () & ~
639- QtCore .Qt .ItemIsSelectable )
637+ score_box .setFlags (empty_item .flags () &
638+ ~ QtCore .Qt .ItemIsSelectable )
640639 elif 'total' in applied_scores :
641640 self .model .appliedScores = ('total' ,)
642641 # if total is selected, disable all other scores
@@ -659,8 +658,8 @@ def updateScores(self):
659658 else :
660659 score_box .setFlags (score_box .flags () |
661660 QtCore .Qt .ItemIsUserCheckable )
662- score_box .setFlags (score_box .flags () & ~
663- QtCore .Qt .ItemIsSelectable )
661+ score_box .setFlags (score_box .flags () &
662+ ~ QtCore .Qt .ItemIsSelectable )
664663
665664 def updateNuclides (self ):
666665 applied_nuclides = []
0 commit comments