Changing the colour of a plot

조회 수: 1 (최근 30일)
John
John 2012년 12월 12일
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
John
John 2012년 12월 12일
Yes, it is.
John
John 2012년 12월 12일
편집: John 2012년 12월 12일
Here is the data, if you would like to plot it yourself.
surf(x1, y1, z1);
I'm just trying to make it more colourful.
Thanks

댓글을 달려면 로그인하십시오.

답변 (1개)

Matt Fig
Matt Fig 2012년 12월 12일
편집: Matt Fig 2012년 12월 12일
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.
  댓글 수: 1
John
John 2012년 12월 12일
Thanks very much

댓글을 달려면 로그인하십시오.

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by