Skip to content

Commit 56b82d9

Browse files
authored
DOC: remove stray assignment in "multiple legends" example
1 parent 07d4530 commit 56b82d9

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)