Filter löschen
Filter löschen

Hatched fill pattern using colormap

16 Ansichten (letzte 30 Tage)
Raúl
Raúl am 5 Mär. 2013
Bearbeitet: dpb am 26 Nov. 2014
Hi all,
I have a code which generates a plot where the source is a matrix. Each position contains one value from 0 to 3 (included) depending on a previous algorithm. Then, each value is represented by a singular colour (custom defined). I would like to substitute colors by hatched pattern. For exemple, 0-black 1-// 2-\\ 3-// and \\. I'm using the colormap function.
Could somebody help me?
Thanks.
BR,
Raúl.
  2 Kommentare
Walter Roberson
Walter Roberson am 5 Mär. 2013
color mapping cannot generate hatched patterns.
Raúl
Raúl am 5 Mär. 2013
Thanks Walter. Any suggestion about how to do it using another toolbox?
Raúl.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 5 Mär. 2013
  2 Kommentare
Raúl
Raúl am 5 Mär. 2013
Thanks!
dpb
dpb am 23 Nov. 2014
Bearbeitet: dpb am 26 Nov. 2014
Other than the bitmap-based options, these still don't handle legends well (or at all), unfortunately...
ADDENDUM
For potential others who may find this thread in future -- I've posted patches to hatchfill on File Exchange which seem to work for the limited testing done. Should at least be trail of bread crumbs to resolve any other issues remaining.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Colormaps 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