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 d8d8a10

Browse filesBrowse files
committed
Use NamedColour from wx_compat
1 parent d80b198 commit d8d8a10
Copy full SHA for d8d8a10

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+1
-4
lines changed

‎lib/matplotlib/backends/backend_wx.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/backend_wx.py
+1-4Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1713,10 +1713,7 @@ def draw_rubberband(self, event, x0, y0, x1, y1):
17131713
rubberBandColor = '#C0C0FF' # or load from config?
17141714

17151715
# Set a pen for the border
1716-
if wxc.is_phoenix:
1717-
color = wx.Colour(rubberBandColor)
1718-
else:
1719-
color = wx.NamedColour(rubberBandColor)
1716+
color = wxc.NamedColour(rubberBandColor)
17201717
dc.SetPen(wx.Pen(color, 1))
17211718

17221719
# use the same color, plus alpha for the brush

0 commit comments

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