fill area with different shapes

1 visualización (últimos 30 días)
Peihong
Peihong el 30 de Mayo de 2013
Dear Friend,
I plot a figure using "area" command, which translate a N by 4 matrix to a figure, where N means the date, 4 means 4 assets, these 4 asset add up to 1, so, an area figure is able to show the changes of asset weights. The problem is Matlab assigns different colors to different assets in a solid form, however, I need use "DiagonalLines',"FDiagonalLines","HorizontalLines","VerticalLines" to fill different assets, rather than using colors. Is there a way to achieve this?
thanks a lot

Respuestas (1)

the cyclist
the cyclist el 30 de Mayo de 2013
I suggest you search for the term "hatch" in the File Exchange: http://www.mathworks.com/matlabcentral/fileexchange/. It looks like there are several submissions that do this sort of thing.

Categorías

Más información sobre Line Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by