Change the color of streamslice

34 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Volume Visualization 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by