colorbar

조회 수: 12 (최근 30일)
S
S 2011년 3월 22일
Hi everyone,
I plot some data using 'surf' plus a colorbar at the end. The plot shows a pixelated picture. The colors which represent the data are not continuous and there is a sharp jump between colors. I was thinking if I can increase the number of the colors in the bar then it looks more continuoues. I will appreciate any help from you.
Thank you,
S.

채택된 답변

Matt Tearle
Matt Tearle 2011년 3월 22일
You can change your colormap to have more colors. The default is 64.
colormap(jet(128))
  댓글 수: 1
S
S 2011년 3월 23일
Thank you Matt, I will try yours:)

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

추가 답변 (1개)

Matt Fig
Matt Fig 2011년 3월 22일
Is this what you are looking for?
% Make your surface plot, then:
shading('interp')
  댓글 수: 1
S
S 2011년 3월 22일
That's it. That's what was looking for. Thank you sooooooooooooo.... much Matt Fig.

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

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by