2016-08-08 5 views
0

내 친구는 많은 데이터를 처리하고 다양한 플롯을 계획하는 스크립트를 만들었지 만 스크립트를 실행할 때 그래프는 범례에 따라 다른 색상을 가지며 내가 할 때 모든 그래프는 검은 색 ~ 붉은 색! (그림 참조) 다른 점은 무엇이며 왜 그래프를 다른 색상으로 가져 옵니까? 색상Matlab : 컬러 졸업없이 플롯하는 방법은 무엇입니까?

2D 플롯 그래프를 졸업 -

2D plot with color graduated graphs

figure 
hold on 
plot(sentar_7.created_at, sentar_7.acc_diff, '-'); 
plot(sentar_7.created_at, sentar_7.stand_toggle, '-'); 
plot(sentar_7.created_at, sentar_7.state, '-'); 
title('Sentar 7 acc') 
xlabel('tid') 
ylabel('dist [cm]') 
legend('acc diff','stand toggle', 'state') 
hold off 

답변

2

특정 인텔 그래픽 드라이버이 is a known issue.

opengl hardwarebasic 

또한 라인 객체의 AlignVertexCenters 속성을 해제 할 수 : 하나의 잠재적 인 해결 방법은 기본 하드웨어 렌더링을 사용하는 것입니다

h = findall(gca, 'type', 'line') 
set(h, 'AlignVertexCenters', 'off') 

가장 좋은 방법은 그래픽 4380 버전으로 드라이버를 업데이트 할 수 있습니다 .

+0

고마워요. :) 괜찮 았는데 .. –

관련 문제