July 23, 2012

octave quickies: change the position of the y-axis from left to right

Sometimes (e.g. when you have multible plots on one page) you want the y-ticks  and y-labeling on the right side of the plot (default is left).

This can be done by changing the current axis properties:

set ( gca(), "yaxislocation","right")