Skip to content

Commit bf0f6cc

Browse files
authored
Merge pull request #19307 from mgeier/patch-1
DOC: remove stray assignment in "multiple legends" example
2 parents e341b26 + 56b82d9 commit bf0f6cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tutorials/intermediate/legend_guide.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@
151151
first_legend = plt.legend(handles=[line1], loc='upper right')
152152

153153
# Add the legend manually to the current Axes.
154-
ax = plt.gca().add_artist(first_legend)
154+
plt.gca().add_artist(first_legend)
155155

156156
# Create another legend for the second line.
157157
plt.legend(handles=[line2], loc='lower right')

0 commit comments

Comments
 (0)