Change divisions on colour bar

2 次查看(过去 30 天)
aaron Harvey
aaron Harvey 2016-2-27
I have a contourf plot with N ammount of bands. No matter how many bands i have in the contour plot i have a smooth slowly changing color bar, even if i only have very few colour bands? How can i set the colourbar to have the same ammount of bands with ticks on the band boundaries.
e.g if i have my z variable 100:20:200 and my contourf matching that with 5 bands. How can i make my colour bar have 5 bands with the ticks [100,120,140,160,180,200]?
Thank you for any help with this.
  1 个评论
Walter Roberson
Walter Roberson 2016-2-27
Which MATLAB release? colorbar() changed implementation a lot as of R2014b.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Colormaps 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by