To change the pan, I generally use the axis limit functions
xlim(aHandle, [xlow xhigh])
ylim(aHandle, [ylow yhigh])
axis(aHandle, [xliw xhigh ylow yhigh])
To specifically pan only, for example 5 units to the left, you could use:
xlim(aHandle, xlim(pHandle)+5);
This last function use the xlim
command to read the current x axis limits, adds 5, and then uses the same function to set the x limits to a value that is 5 higher.
If the axis handle aHandle
is ommitted, then the result of gca
is used.