Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit bf0f6cc

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

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎tutorials/intermediate/legend_guide.py

Copy file name to clipboardExpand all lines: tutorials/intermediate/legend_guide.py
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.