필터 지우기
필터 지우기

Hatched fill pattern using colormap

조회 수: 16 (최근 30일)
Raúl
Raúl 2013년 3월 5일
편집: dpb 2014년 11월 26일
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
Walter Roberson
Walter Roberson 2013년 3월 5일
color mapping cannot generate hatched patterns.
Raúl
Raúl 2013년 3월 5일
Thanks Walter. Any suggestion about how to do it using another toolbox?
Raúl.

댓글을 달려면 로그인하십시오.

채택된 답변

Walter Roberson
Walter Roberson 2013년 3월 5일
  댓글 수: 2
Raúl
Raúl 2013년 3월 5일
Thanks!
dpb
dpb 2014년 11월 23일
편집: dpb 2014년 11월 26일
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.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Colormaps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by