def _update(self, event):
if event.button !=<NUM_LIT:1>: return<EOL>if event.inaxes != self.ax: return<EOL>val = event.xdata<EOL>if not self.closedmin and val<=self.valmin: return<EOL>if not self.closedmax and val>=self.valmax: return<EOL>if self.slidermin is not None:<EOL><INDENT>if val<=self.slidermin.val: return<EOL><DEDENT>if self.slidermax is not None:<EOL><INDENT>if val>=self.slidermax.val: return<EOL><DEDENT>self.set_val(val)<EOL>
update the slider position