Skip to content

Commit

Permalink
Merge pull request #1946 from cta-observatory/fix_legend
Browse files Browse the repository at this point in the history
Fix ArrayDisplay creating legend in wrong axes with multiple axes active
  • Loading branch information
maxnoe authored Jun 24, 2022
2 parents cbb01b5 + ea567ad commit 58250d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ctapipe/visualization/mpl_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def __init__(
linewidth=0,
)
)
plt.legend(handles=legend_elements)
self.axes.legend(handles=legend_elements)

self.add_radial_grid()

Expand Down

0 comments on commit 58250d8

Please sign in to comment.