What is the color spec for default blue?
조회 수: 203 (최근 30일)
이전 댓글 표시
i.e. this blue:
----
I tried:
c = repelem([0 0.4470 0.7410],length(X),1);
%scatter(X,Y,c)
scatter(X,Y,[0 0.4470 0.7410])
but if fails with message:
Error using scatter (line 76)
S must be a scalar or a vector of the same length as X.
Error in scaling_experiment_loss_vs_gen_errosr_normalization (line 65)
scatter(X,Y,[0 0.4470 0.7410])
댓글 수: 0
답변 (3개)
Image Analyst
2018년 7월 15일
You can get all the default colors like this:
% Get the initial set of default plot colors.
initialColorOrder = get(gca,'ColorOrder') % Initial
You can change that order, and my attached demo shows you how.
댓글 수: 0
참고 항목
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!