필터 지우기
필터 지우기

Plot using same colors

조회 수: 127 (최근 30일)
Orongo
Orongo 2019년 5월 14일
답변: Kevin Phung 2019년 5월 14일
Hi, I am plotting 100 lines in one plot and am zooming in on 10 of them (final 10 in a matrix). How can write so the 10 lines I zoom in on are of same colors in boths plots?

답변 (1개)

Kevin Phung
Kevin Phung 2019년 5월 14일
To plot in a specific color, scroll down in :
so you can do something like
col = [1 0 0] %RGB triplet,
a= plot(1:5,1:5,'Color',col)
%or
b= plot(1:5,1:5,'Color','r') % r for red
%you can set both lines to a different color at once:
set([a b],'Color','b');
^just apply this logic to the 10 plots you are talking about.

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by