Is there a 100% stacked area chart in MALTAB?
13 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Jesse Navarro
el 25 de En. de 2011
Respondida: Cebastien Joel GUEMBOU SHOUOP
el 10 de Abr. de 2019
I am trying to find any implementation or how to implement a 100% stacked area chart in MATLAB? Any ideas?
0 comentarios
Respuesta aceptada
Oleg Komarov
el 25 de En. de 2011
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 comentarios
Andras Nemes
el 31 de En. de 2011
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
el 31 de En. de 2011
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.
Más respuestas (4)
Todd Flanagan
el 25 de En. de 2011
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 comentario
Todd Flanagan
el 25 de En. de 2011
Jesse, I'm not sure this is what you want. This is justed stacked area, not 100% stacked, correct?
Prathveraj Shetty
el 16 de Feb. de 2019
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.
0 comentarios
akshatha nayak
el 25 de Mzo. de 2019
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
0 comentarios
Cebastien Joel GUEMBOU SHOUOP
el 10 de Abr. de 2019
Thank you for the clear comment on that.
It help me too.
0 comentarios
Ver también
Categorías
Más información sobre Bar Plots en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!