How to apply tranparency in some parts of figure

4 ビュー (過去 30 日間)
Camila Hashimoto
Camila Hashimoto 2016 年 12 月 13 日
コメント済み: Camila Hashimoto 2016 年 12 月 13 日
I am try to make a figure using m_map. I want to apply transparency just in "m_gshhs_h", but I can not.
I tried these and it did not work:
a = m_gshhs_h ('patch', [.7 .7 .7], 'edgecolor', 'k'); alpha (a, 0.5)% error
m_gshhs_h ('patch', [.7 .7 .7], 'edgecolor', 'k', 'alpha');% error
m_gshhs_h ('patch', [.7 .7 .7], 'edgecolor', 'k'); Alpha (0.5)% that all figure makes transparency
Please, does anyone have any idea how to help me?

採用された回答

Adam
Adam 2016 年 12 月 13 日
'FaceAlpha', alphaVal
is the property, value pair you want for a patch. I don't know m_map, but
m_gshhs_h ('patch', [.7 .7 .7], 'edgecolor', 'k', 'FaceAlpha', 0.5)
ought to work.
  1 件のコメント
Camila Hashimoto
Camila Hashimoto 2016 年 12 月 13 日
Hi Adam, thanks!!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by