colorbar

6 次查看(过去 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