Does anyone know how can I create the colours brown,violet and orange?
조회 수: 215 (최근 30일)
이전 댓글 표시
Hello everyone,
I would like to change the colors "yellow" into brown, violet and orange in my script (obviously, in three different lines)
yyaxis right
plot(year.DateA, year.year_values,'y-^' ,'MarkerEdgeColor','k','MarkerFaceColor','y')
How can I do it?
Thank you!
댓글 수: 0
채택된 답변
Star Strider
2021년 11월 6일
My best attempts —
brwn = [200 100 16]/256;
vlet = [160 81 151]/256;
orng = [240 100 10]/256;
figure
patch([0 1 1 0], [0 0 1 1], brwn)
hold on
patch([0 1 1 0]+1, [0 0 1 1], vlet)
patch([0 1 1 0]+2, [0 0 1 1], orng)
hold off
.
댓글 수: 12
Star Strider
2021년 11월 7일
The usual first approach to something like this is to re-start MATLAB and try it again.
추가 답변 (1개)
Pul
2021년 11월 7일
댓글 수: 4
Star Strider
2021년 11월 8일
As always, my pleasure!
Please follow up when you get this working, and describe what the eventual solution turned out to be. I am curious, and others can likely benefit.
.
참고 항목
카테고리
Help Center 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!