Change divisions on colour bar

3 vues (au cours des 30 derniers jours)
aaron Harvey
aaron Harvey le 27 Fév 2016
Commenté : Walter Roberson le 27 Fév 2016
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 commentaire
Walter Roberson
Walter Roberson le 27 Fév 2016
Which MATLAB release? colorbar() changed implementation a lot as of R2014b.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Contour Plots dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by