MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / get_wxcolour

Method get_wxcolour

lib/matplotlib/backends/backend_wx.py:387–390  ·  view source on GitHub ↗

Convert an RGB(A) color to a wx.Colour.

(self, color)

Source from the content-addressed store, hash-verified

385 self.unselect()
386
387 def get_wxcolour(self, color):
388 """Convert an RGB(A) color to a wx.Colour."""
389 _log.debug("%s - get_wx_color()", type(self))
390 return wx.Colour(*[int(255 * x) for x in color])
391
392
393class _FigureCanvasWxBase(FigureCanvasBase, wx.Panel):

Callers 3

set_foregroundMethod · 0.95
draw_pathMethod · 0.80
draw_textMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected