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 fef2af6

Browse filesBrowse files
committed
FIX: exclude ToolHandles from legend / qteditor
Label the `Line2D` objects used for the tool handles with '_nolegend_' to ensure that they are excluded from the qteditor combo box. closes #5635
1 parent 22140f7 commit fef2af6
Copy full SHA for fef2af6

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

‎lib/matplotlib/widgets.py

Copy file name to clipboardExpand all lines: lib/matplotlib/widgets.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1590,7 +1590,7 @@ def __init__(self, ax, x, y, marker='o', marker_props=None, useblit=True):
15901590
self.ax = ax
15911591

15921592
props = dict(marker=marker, markersize=7, mfc='w', ls='none',
1593-
alpha=0.5, visible=False)
1593+
alpha=0.5, visible=False, label='_nolegend_')
15941594
props.update(marker_props if marker_props is not None else {})
15951595
self._markers = Line2D(x, y, animated=useblit, **props)
15961596
self.ax.add_line(self._markers)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.