Effacer les filtres
Effacer les filtres

Rotate X and Y axes with a bar3 plot

6 vues (au cours des 30 derniers jours)
kortas manel
kortas manel le 26 Déc 2018
Commenté : Star Strider le 27 Déc 2018
Hello everybody,
I want to know how to rotate X and Y axes with a bar3 plot. Suppose that my data matrix is as follows : A=[3 5 7; 7 3 9; 5 2 1].
Instead of getting what bar3(A) provides, I want to get this:
rotated bar3.png
Thanks.

Réponse acceptée

Star Strider
Star Strider le 26 Déc 2018
Try this:
A=[3 5 7; 7 3 9; 5 2 1];
figure
bar3(A)
view(32, 18)
Tweak the angles in the view (link) call to get the result you want.
  2 commentaires
kortas manel
kortas manel le 27 Déc 2018
thank you
Star Strider
Star Strider le 27 Déc 2018
As always, my pleasure.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Graphics Object Properties dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by