Is there a 100% stacked area chart in MALTAB?

조회 수: 26 (최근 30일)
Jesse Navarro
Jesse Navarro 2011년 1월 25일
I am trying to find any implementation or how to implement a 100% stacked area chart in MATLAB? Any ideas?
Excel has them: Excel charts

채택된 답변

Oleg Komarov
Oleg Komarov 2011년 1월 25일
doc area
The example from the help:
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'
EDIT: I forgot to normalize it...
% Modify Y to get 100% stacked
Y = bsxfun(@rdivide, Y, sum(Y,2));
Oleg
  댓글 수: 5
Andras Nemes
Andras Nemes 2011년 1월 31일
I am interested in being able to reproduce the area plot (just a fill of 2d data to axis) and staggered behind each other as in the original link to the excel image.
Andras Nemes
Andras Nemes 2011년 1월 31일
I am interested in being able to reproduce the area plot (just a fill of 2d data to axis) and staggered behind each other as in the original link to the excel image.

댓글을 달려면 로그인하십시오.

추가 답변 (4개)

Todd Flanagan
Todd Flanagan 2011년 1월 25일

You can use the AREA function:

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'
  댓글 수: 1
Todd Flanagan
Todd Flanagan 2011년 1월 25일
Jesse, I'm not sure this is what you want. This is justed stacked area, not 100% stacked, correct?

댓글을 달려면 로그인하십시오.


Prathveraj Shetty
Prathveraj Shetty 2019년 2월 16일
hello,
i have one doubt. If i have a coordinate of a point and a black & white image(i.e., digital 0 or 1) how can get the distance of each pixel of the image from this point.

akshatha nayak
akshatha nayak 2019년 3월 25일
Today we had to show demo of project that time sir said u people need to capture real qorld image not the folder one how to do that to capture eye image any code pls

Cebastien Joel GUEMBOU SHOUOP
Cebastien Joel GUEMBOU SHOUOP 2019년 4월 10일
Thank you for the clear comment on that.
It help me too.

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by