フィルターのクリア

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 Center および File ExchangeColormaps についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by