フィルターのクリア

Plot points colour change

2 ビュー (過去 30 日間)
Owen Fernandez
Owen Fernandez 2020 年 11 月 12 日
コメント済み: Owen Fernandez 2020 年 11 月 12 日
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

回答 (1 件)

Walter Roberson
Walter Roberson 2020 年 11 月 12 日
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 件のコメント
Owen Fernandez
Owen Fernandez 2020 年 11 月 12 日
So how would I apply that to this?

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeAxis Labels についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by