Skip to content

Commit d5c4df3

Browse files
committed
WX DrawRectangeRect is DrawRectangle in Phoenix
1 parent a6333d1 commit d5c4df3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/matplotlib/backends/backend_wx.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1720,7 +1720,10 @@ def draw_rubberband(self, event, x0, y0, x1, y1):
17201720
r, g, b, a = color.Get(True)
17211721
color.Set(r, g, b, 0x60)
17221722
dc.SetBrush(wx.Brush(color))
1723-
dc.DrawRectangleRect(rect)
1723+
if wxc.is_phoenix:
1724+
dc.DrawRectangle(rect)
1725+
else:
1726+
dc.DrawRectangleRect(rect)
17241727

17251728
def set_status_bar(self, statbar):
17261729
self.statbar = statbar

0 commit comments

Comments
 (0)