def pan(self, numsteps):
ticks = self()<EOL>numticks = len(ticks)<EOL>vmin, vmax = self.axis.get_view_interval()<EOL>vmin, vmax = mtransforms.nonsingular(vmin, vmax, expander = <NUM_LIT>)<EOL>if numticks><NUM_LIT:2>:<EOL><INDENT>step = numsteps*abs(ticks[<NUM_LIT:0>]-ticks[<NUM_LIT:1>])<EOL><DEDENT>else:<EOL><INDENT>d = abs(vmax-vmin)<EOL>step = numsteps*d/<NUM_LIT><EOL><DEDENT>vmin += step<EOL>vmax += step<EOL>self.axis.set_view_interval(vmin, vmax, ignore=True)<EOL>
Pan numticks (can be positive or negative)