Azzera filtri
Azzera filtri

fill area with different shapes

3 visualizzazioni (ultimi 30 giorni)
Peihong
Peihong il 30 Mag 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

Risposte (1)

the cyclist
the cyclist il 30 Mag 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.

Categorie

Scopri di più su 2-D and 3-D Plots in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by