How to rotate plot using code?

341 次查看(过去 30 天)
I have a plot showing pixel intensity values. I want to rotate the plot clockwise 90 degrees...can anyone help

采纳的回答

arun
arun 2015-7-5
编辑:arun 2015-7-5
let y is pixel intensity
x=1:1:length(y)
plot(y,x) may work instead of plot(y)
this command is useful to flip axis
set(gca,'YDir','reverse');
u can use this command too
camroll(-90)

更多回答(1 个)

Jan
Jan 2015-7-5
Arun's "camroll" approach is equivalent to setting the CameraUpVector.

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by