Skip to content

Commit bb8cffb

Browse files
authored
Merge pull request #326 from dmgav/fix-deprecation
Fix deprecation
2 parents 61012a8 + d742561 commit bb8cffb

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

pyxrf/model/lineplot.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)