필터 지우기
필터 지우기

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 CenterFile Exchange에서 Axis Labels에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by