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.

采纳的回答

Walter Roberson
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 CenterFile Exchange 中查找有关 Scatter Plots 的更多信息

标签

产品


版本

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by