Changing the colour of a plot
이전 댓글 표시
Hi,
Could anybody tell me how I can get this plot more colourful? It is primarily blue and I can't change it using the colour map because the interval are not small enough.
thank you
댓글 수: 5
Image Analyst
2012년 12월 12일
Link doesn't work.
John
2012년 12월 12일
Walter Roberson
2012년 12월 12일
Is that a surf() plot ?
John
2012년 12월 12일
답변 (1개)
load Data
S = surf(x1, y1, z1); % Original to compare
figure
S2 = surf(x1, y1, z1);
set(S2,'facecolor','interp','CData',z1*1e3,'cdatam','direct')
set(gcf,'colormap',jet(20)) % You can play around with this.
카테고리
도움말 센터 및 File Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!