Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use NamedColour from wx_compat
  • Loading branch information
jenshnielsen committed Jun 26, 2015
commit d8d8a101bf3b00cdc40d78b18e2bbd0ce4916747
5 changes: 1 addition & 4 deletions lib/matplotlib/backends/backend_wx.py
Original file line number Diff line number Diff line change
Expand Up @@ -1713,10 +1713,7 @@ def draw_rubberband(self, event, x0, y0, x1, y1):
rubberBandColor = '#C0C0FF' # or load from config?

# Set a pen for the border
if wxc.is_phoenix:
color = wx.Colour(rubberBandColor)
else:
color = wx.NamedColour(rubberBandColor)
color = wxc.NamedColour(rubberBandColor)
dc.SetPen(wx.Pen(color, 1))

# use the same color, plus alpha for the brush
Expand Down