I have been writing a script in Matlab that plots 3D images, by using plot3
.
The axis are run in this interval:
The result is provided in this figure:
Now I would like to change the orientation of my axis, and replot the figure with this axis orientation:
How could I do this?
Thanx!
You can change the direction of an axis by setting the appropriate direction property, see the XDir, YDir, ZDir
properties in the Axes Properties documentation. These properties have the value normal
or reverse
. To reverse the direction of one of your axis, say the x-axis, use
set(gca, 'XDir', 'reverse')
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With