Change the color of streamslice

14 ビュー (過去 30 日間)
Shan  Chu
Shan Chu 2017 年 2 月 3 日
コメント済み: Jose Luis 2023 年 4 月 25 日
Dear all, I am using the streamslice to plot the Poynting vector but the default color of MATLAB is blue and I don't really like it. So, how could I change it to other color, e.g., black. Thanks

採用された回答

Adam
Adam 2017 年 2 月 3 日
編集済み: Adam 2017 年 2 月 3 日
load wind
figure
h = streamslice(x,y,z,u,v,w,[],[],[5]);
axis tight
set( h, 'Color', [0 0 0] ) % or set( h, 'Color', 'k' ) if you prefer
to expand on the example given in
doc streamslice

その他の回答 (1 件)

Taylor Ward
Taylor Ward 2018 年 5 月 24 日
what does h signify?
  1 件のコメント
Jose Luis
Jose Luis 2023 年 4 月 25 日
its just used so you can use set, because you need a variable to assign the color.

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

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by