Filter löschen
Filter löschen

Rotate X and Y axes with a bar3 plot

6 Ansichten (letzte 30 Tage)
kortas manel
kortas manel am 26 Dez. 2018
Kommentiert: Star Strider am 27 Dez. 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.

Akzeptierte Antwort

Star Strider
Star Strider am 26 Dez. 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 Kommentare
kortas manel
kortas manel am 27 Dez. 2018
thank you
Star Strider
Star Strider am 27 Dez. 2018
As always, my pleasure.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Graphics Object Properties finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by