Rotate a figure created with the area function

조회 수: 5 (최근 30일)
Markus
Markus 2012년 2월 16일
편집: Cedric 2013년 10월 15일
Hi!
I have a figure created with the area function, something like:
Y = [1, 5, 3;
3, 2, 7;
1, 5, 3;
2, 6, 1];
area(Y)
grid on
colormap summer
set(gca,'Layer','top')
title 'Stacked Area Plot'
This creates a figure with green, light green and yellow areas oriented horizontally. I wish to create a figure that has vertical areas instead. How can I do that?

채택된 답변

Patrick Kalita
Patrick Kalita 2012년 2월 16일
Call view(90,90) after you create your area plot. More info here.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Line Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by