Plot doubt: how to fill the squares.
24 ビュー (過去 30 日間)
古いコメントを表示
Hello, I am using plot function to plot some data at the same time:
plot(AATnew,QG,'s',AATnew,Y,'-')
The problem I have is that the squares I have in the plot are empty and I can not fill them with any colour. How could I solve the problem?
Thank you,
Andoni
0 件のコメント
採用された回答
Evan
2014 年 8 月 19 日
編集済み: Evan
2014 年 8 月 19 日
Try using the MarkerFaceColor property.
Example:
x = 0:pi/32:2*pi;
y = sin(x);
z = cos(x);
plot(x,y,'s',x,z,'-','MarkerFaceColor',[0 0 0])
That seems to work fine, since your second set of data is plotted with a line marker, but you could always also split them up into separate plot commands if you for some reason wanted to control the marker face color of each.
3 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Surface and Mesh Plots についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!