def __init__(self, fig, page_step=<NUM_LIT:1>):
<EOL>self.fig = fig<EOL>self.page_step = page_step <EOL>self.xmin, self.xmax = fig.axes[<NUM_LIT:0>].get_xlim()<EOL>self.width = min(<NUM_LIT:1>, self.xmax-self.xmin) <EOL>self.pos = <NUM_LIT:0>   <EOL>self.scale = <NUM_LIT> <EOL>self.ax = self.fig.axes[<NUM_LIT:0>]<EOL>self.draw = self.fig.canvas.draw<EOL>QMainWin = fig.canvas.parent()<EOL>toolbar = QtGui.QToolBar(QMainWin)<EOL>QMainWin.addToolBar(QtCore.Qt.BottomToolBarArea, toolbar)<EOL>self.set_slider(toolbar)<EOL>self.set_spinbox(toolbar)<EOL>self.ax.set_xlim(self.pos,self.pos+self.width)<EOL>self.draw()<EOL>
Make a scrolling x axis on figure `fig`.
        `page_step` is the multiplier for page-step scrolling.