Skip to content

Commit

Permalink
fix(PowderModel.plot): do not pop matplotlib text
Browse files Browse the repository at this point in the history
  • Loading branch information
dkriegner committed Feb 14, 2023
1 parent 5a73a37 commit 8da8fd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/xrayutilities/simpack/powdermodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ def plot(self, twotheta, showlines=True, label='simulation', color=None,
arrowprops=dict(arrowstyle="->"), fontsize='x-small')
annot.set_visible(False)
# next line important to avoid zorder issues
tax.figure.texts.append(tax.texts.pop())
tax.figure.texts.append(tax.texts[-1])
taxlist.append(tax)
lineslist.append(wllist)
annotlist.append(annot)
Expand Down

0 comments on commit 8da8fd0

Please sign in to comment.