Issue with low values for surf and colorbar
Mostrar comentarios más antiguos
I was getting issues with colorbar in some of my work, so I went in to dig in the issue, and found out that surf and colorbar have weird behaviors for low values. I am using the student version 7.14.0.739 (R2012a). When I type :
surf(peaks(30))
It's all good and I get the expected plot :

But when I use a (much) smaller peaks, like in
surf(1e-7 * peaks(30))
I get no surface displayed, as below :

While pcolor still works fine, colorbar however cannot keep up, and only half of it appears in the wrong position, as in
pcolor(1e-7 * peaks(30))
colorbar
gives the following :

I am unsure but do not think the issue happens on non-student versions. Anyway, a little info on how to deal with it (apart from playing around with bigger values and renaming colorbar ticks) would be much appreciated.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Colorbar en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!