How to rotate a simple plot

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…

Advertisements
This entry was posted in Plots. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s