Skip to content

Commit

Permalink
Merge pull request #1896 from pypeit/legend
Browse files Browse the repository at this point in the history
Legend bug in wavetilts
  • Loading branch information
kbwestfall authored Feb 11, 2025
2 parents 73abd3b + 58b37c4 commit f9c5d5a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions doc/releases/1.17.2.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Version 1.17.2
==============

- Hotfix for typo in ``wavetilts.py``, changing ``legend.legendHandles`` to
``legend.legend_handles`` in use of ``matplotlib``.

2 changes: 1 addition & 1 deletion pypeit/wavetilts.py
Original file line number Diff line number Diff line change
Expand Up @@ -1052,7 +1052,7 @@ def show_tilts_mpl(tilt_img, tilt_traces, show_traces=False, left_edges=None,

lcolors = ['cyan', 'red', 'yellow', 'blue'] if show_traces else ['red', 'yellow', 'blue']
legend = plt.legend(handles=handles, labelcolor=lcolors, loc=3, markerscale=2, frameon=False)
for h in legend.legendHandles:
for h in legend.legend_handles:
h.set_alpha(1)

plt.ylabel('Spectral pixel index')
Expand Down

0 comments on commit f9c5d5a

Please sign in to comment.