Can MATLAB’s ColorSpec predefined colors be changed/customized?

조회 수: 3 (최근 30일)
Brad
Brad 2014년 1월 3일
댓글: Brad 2014년 1월 3일
I’m working on a plot where, at times, 8 sets of data are being plotted using the gscatter function. I’m using MATLAB’s 8 predefined colors to correlate to the MarkerFaceColor for each of the 8 data sets. It works, but leaves the user manually changing the white data points to gray [0.5 0.5 0.5] or some other intensity.
Is there a way to change/append MATLAB’s predefined white color to gray (or other intensities)?

채택된 답변

Walter Roberson
Walter Roberson 2014년 1월 3일
The word has fairly consistently been that they are hard-coded.
However, if you are referring to the colors that are automatically generated (e.g, if you plot multiple lines with the same plot() call) rather than the named colors such as 'r', then you can set the axis ColorOrder property.
  댓글 수: 1
Brad
Brad 2014년 1월 3일
Walter, I'm beginning to think you are correct. All documentation I've read so far eludes to them being hard coded.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by