reverse the y axis
8 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Nidhi SRIVASTAVA
le 6 Juin 2017
Commenté : Walter Roberson
le 6 Juin 2017
I have a step function plot in matlab. I want to reverse the y axis so that the initial value is at the top and also the x axis start from that point only.
0 commentaires
Réponse acceptée
Walter Roberson
le 6 Juin 2017
set(gca, 'YDir', 'reverse')
2 commentaires
Walter Roberson
le 6 Juin 2017
- You could adjust the axes CameraPosition and CameraTarget so that you are looking at the scene from "below" so that the axes is reversed from the normal
- You could create a hggroup() that you parent your stairs plot in, and then use hgtransform() to reverse top and bottom for it
- Instead of stairs(Y) you could stairs(SomeConstant - Y)
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Surface and Mesh 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!