Effacer les filtres
Effacer les filtres

Plot points colour change

2 vues (au cours des 30 derniers jours)
Owen Fernandez
Owen Fernandez le 12 Nov 2020
Commenté : Owen Fernandez le 12 Nov 2020
From this, How can I change only the colour of the points?
Where x and y are the Points, and xLine and yLine represent the line of best fit.
function outputRegressData(x,y,xLine,yLine)
plot(x,y,'+',xLine,yLine,'LineWidth',2)
end

Réponses (1)

Walter Roberson
Walter Roberson le 12 Nov 2020
You can use the MarkerFaceColor and MarkerEdgeColor properties independently of the Color property. The line color is specifically the Color property, but MarkerFaceColor and MarkerEdgeColor only default to being the same as the Color.
  1 commentaire
Owen Fernandez
Owen Fernandez le 12 Nov 2020
So how would I apply that to this?

Connectez-vous pour commenter.

Community Treasure Hunt

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

Start Hunting!

Translated by