Filter löschen
Filter löschen

fill area with different shapes

3 Ansichten (letzte 30 Tage)
Peihong
Peihong am 30 Mai 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

Antworten (1)

the cyclist
the cyclist am 30 Mai 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.

Kategorien

Mehr zu Line Plots finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by