@@ -728,13 +728,13 @@ def plot_selected_energy_range_original(self, *, e_low=None, e_high=None):
728728 self .plot_energy_barh .remove ()
729729
730730 # Create the new plot (based on new parameters if necessary
731- self .plot_energy_barh = PolyCollection .span_where (
732- x_v , ymin = y_min , ymax = y_max , where = ss , facecolor = "white" , edgecolor = "yellow" , alpha = 1
733- )
734- # self.plot_energy_barh = self._ax.fill_between(
735- # x_v, y1=y_min, y2=y_max, where=ss, facecolor="white", edgecolor="yellow", alpha=1
731+ # self.plot_energy_barh = PolyCollection.span_where(
732+ # x_v, ymin=y_min, ymax=y_max, where=ss, facecolor="white", edgecolor="yellow", alpha=1
736733 # )
737- self ._ax .add_collection (self .plot_energy_barh )
734+ # self._ax.add_collection(self.plot_energy_barh)
735+ self .plot_energy_barh = self ._ax .fill_between (
736+ x_v , y1 = y_min , y2 = y_max , where = ss , facecolor = "white" , edgecolor = "yellow" , alpha = 1
737+ )
738738
739739 def plot_multi_exp_data (self ):
740740 while len (self .plot_exp_list ):
@@ -1475,13 +1475,13 @@ def plot_selected_energy_range(self, *, axes, barh_existing, e_low=None, e_high=
14751475 barh_existing .remove ()
14761476
14771477 # Create the new plot (based on new parameters if necessary
1478- barh_new = PolyCollection .span_where (
1479- x_v , ymin = y_min , ymax = y_max , where = ss , facecolor = "white" , edgecolor = "yellow" , alpha = 1
1480- )
1481- # barh_new = axes.fill_between(
1482- # x_v, y1=y_min, y2=y_max, where=ss, facecolor="white", edgecolor="yellow", alpha=1
1478+ # barh_new = PolyCollection.span_where(
1479+ # x_v, ymin=y_min, ymax=y_max, where=ss, facecolor="white", edgecolor="yellow", alpha=1
14831480 # )
1484- axes .add_collection (barh_new )
1481+ # axes.add_collection(barh_new)
1482+ barh_new = axes .fill_between (
1483+ x_v , y1 = y_min , y2 = y_max , where = ss , facecolor = "white" , edgecolor = "yellow" , alpha = 1
1484+ )
14851485
14861486 return barh_new
14871487
0 commit comments