Effacer les filtres
Effacer les filtres

How to rotate plot using code?

419 vues (au cours des 30 derniers jours)
peyush
peyush le 5 Juil 2015
Commenté : peyush le 5 Juil 2015
I have a plot showing pixel intensity values. I want to rotate the plot clockwise 90 degrees...can anyone help

Réponse acceptée

arun
arun le 5 Juil 2015
Modifié(e) : arun le 5 Juil 2015
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 commentaire
peyush
peyush le 5 Juil 2015
thanks

Connectez-vous pour commenter.

Plus de réponses (1)

Jan
Jan le 5 Juil 2015
Arun's "camroll" approach is equivalent to setting the CameraUpVector.
  1 commentaire
peyush
peyush le 5 Juil 2015
thanks

Connectez-vous pour commenter.

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by