There is no color property on the Scatter class.
18 ビュー (過去 30 日間)
古いコメントを表示
I am trying to color my scatter plot but keep getting the folllowing error when I try to define a color code...
I want to plot multple scatters on the same plot so will need to select more colours other than the preset r,g,b,m etc
scatter(Linear_1A.Part_Conc_C1, Linear_1A.Part_Conc_C2,'color',[0,0,1])
Error using scatter (line 130)
There is no color property on the Scatter class.
0 件のコメント
採用された回答
Walter Roberson
2020 年 5 月 3 日
https://www.mathworks.com/help/matlab/ref/matlab.graphics.chart.primitive.scatter-properties.html
MarkerFaceColor or MarkerEdgeColor or CData
or use scatter(x, y, pointsize, color) positionally
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Scatter Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!