Some times you would need to rotate your figure to display the axis rotated 90 degrees counter clockwise. The easiest way to do this rotating the view. You can do this using the command view as follows:

view([-90 90])

If you wish to rotate in the oposite direction, just do:

view([90 90])

Using this command, the axis are also rotated, so you don’t have to worry about annoying labeling issues…