How to let vector direction define quiver plot colors

7 ビュー (過去 30 日間)
Aidan Starr
Aidan Starr 2018 年 7 月 10 日
コメント済み: Ali 2023 年 10 月 23 日
I'm trying to plot some vector data in matlab using the quiver function (full disclosure, I'm actually using m_quiver from the m_maps toolbox).
What I want is to set each individual arrow color to be relative to its direction, e.g. north being red, south being blue. Is there a way to do this? I'm picturing something like the CData option with scatter plots!
  2 件のコメント
Theresa Morrison
Theresa Morrison 2019 年 2 月 12 日
Hi Aidan, Did you find something to do this? I am interested in the same sort of plotting.
Aidan Starr
Aidan Starr 2019 年 2 月 12 日
I gave up... At the moment I'm just using quiver_mc (which is an awesome function) and letting the magnitude set the color. -Sorry!

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

採用された回答

KSSV
KSSV 2018 年 7 月 10 日
  2 件のコメント
Aidan Starr
Aidan Starr 2018 年 7 月 10 日
Great! Although this seems to define colour by magnitude and not direction. My issue is the arrow directions are slightly unclear because of the density.
Ali
Ali 2023 年 10 月 23 日
Hi Aidan did you find any solution for that? I will be thankful if you can help me with that

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeVector Fields についてさらに検索

製品


リリース

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by