Skip to content

Commit d8d8a10

Browse files
committed
Use NamedColour from wx_compat
1 parent d80b198 commit d8d8a10

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/matplotlib/backends/backend_wx.py

Lines 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)