def __init__(self, ax, label, valmin, valmax, valinit=<NUM_LIT:0.5>, valfmt='<STR_LIT>',<EOL>closedmin=True, closedmax=True, slidermin=None, slidermax=None,<EOL>dragging=True, **kwargs):
self.ax = ax<EOL>self.valmin = valmin<EOL>self.valmax = valmax<EOL>self.val = valinit<EOL>self.valinit = valinit<EOL>self.poly = ax.axvspan(valmin,valinit,<NUM_LIT:0>,<NUM_LIT:1>, **kwargs)<EOL>self.vline = ax.axvline(valinit,<NUM_LIT:0>,<NUM_LIT:1>, color='<STR_LIT:r>', lw=<NUM_LIT:1>)<EOL>self.valfmt=valfmt<EOL>ax.set_yticks([])<EOL>ax.set_xlim((valmin, valmax))<EOL>ax.set_xticks([])<EOL>ax.set_navigate(False)<EOL>ax.figure.canvas.mpl_connect('<STR_LIT>', self._update)<EOL>if dragging:<EOL><INDENT>ax.figure.canvas.mpl_connect('<STR_LIT>', self._update)<EOL><DEDENT>self.label = ax.text(-<NUM_LIT>, <NUM_LIT:0.5>, label, transform=ax.transAxes,<EOL>verticalalignment='<STR_LIT>',<EOL>horizontalalignment='<STR_LIT:right>')<EOL>self.valtext = ax.text(<NUM_LIT>, <NUM_LIT:0.5>, valfmt%valinit,<EOL>transform=ax.transAxes,<EOL>verticalalignment='<STR_LIT>',<EOL>horizontalalignment='<STR_LIT:left>')<EOL>self.cnt = <NUM_LIT:0><EOL>self.observers = {}<EOL>self.closedmin = closedmin<EOL>self.closedmax = closedmax<EOL>self.slidermin = slidermin<EOL>self.slidermax = slidermax<EOL>
Create a slider from valmin to valmax in axes ax;

valinit -  the slider initial position

label - the slider label

valfmt - used to format the slider value

closedmin and closedmax - indicate whether the slider interval is closed

slidermin and slidermax - be used to contrain the value of
  this slider to the values of other sliders.

additional kwargs are passed on to self.poly which is the
matplotlib.patches.Rectangle which draws the slider.  See the
matplotlib.patches.Rectangle documentation for legal property
names (eg facecolor, edgecolor, alpha, ...)