There is no color property on the Scatter class.
9 次查看(过去 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!