def __init__(self, masterPanel, gradient_table, width, height ):
        wx.Panel.__init__(self, masterPanel, size=wx.Size(width, height),
                          style=wx.RAISED_BORDER,
                          name="Colormap Panel")

        self.SetBackgroundColour(wx.Colour(255,255,255))
        self.width = width
        self.height = height
        self.gradient_table = gradient_table
        assert( gradient_table.size == width )
        # ^- currently only able to use gradient tables in the same size as the canvas width

        # bind paint event to redraw  when resizing/creating window...
        wx.EVT_PAINT(self, self.OnPaint)
master: panel in which to place the control. GradientTable is the
dataset/ETHPy150Open enthought/mayavi/tvtk/util/wx_gradient_editor.py/wxGradientControl.__init__