Hatched fill pattern using colormap
12 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Raúl
el 5 de Mzo. de 2013
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 comentarios
Respuesta aceptada
Walter Roberson
el 5 de Mzo. de 2013
2 comentarios
dpb
el 23 de Nov. de 2014
Editada: dpb
el 26 de Nov. de 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.
Más respuestas (0)
Ver también
Categorías
Más información sobre Colormaps en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!