Borrar filtros
Borrar filtros

How to make 0 value at center colorbar?

32 visualizaciones (últimos 30 días)
LEONG SING YEW
LEONG SING YEW el 29 de Feb. de 2020
Comentada: LEONG SING YEW el 1 de Mzo. de 2020
Hi i'm trying to replicate the surf plot on the left, currently my background for the surf plot is orange due to 0 value (look at the surf colorbar).
How can i make the 0 at the center of the colorbar? (similar to the left picture)
  2 comentarios
dpb
dpb el 29 de Feb. de 2020
When want somebody to try to fiddle with a figure, it's always best to produce a minimal working example that will give them something to start from. Much more difficult to have to try to create/replicate something from scratch...doable, but most won't bother (like me... :) ).
LEONG SING YEW
LEONG SING YEW el 29 de Feb. de 2020
haha just +0.05 and present similar result xD

Iniciar sesión para comentar.

Respuesta aceptada

Image Analyst
Image Analyst el 29 de Feb. de 2020
I don't see a surf() plot. I see two images. Anyway to adjust the colorbar, use colormap() to create the colormap, and caxis() to say what value of your data should be at the top and bottom of the color bar.
  1 comentario
LEONG SING YEW
LEONG SING YEW el 1 de Mzo. de 2020
Thanks! I make the surf plot into 2d by adjusting to x y plane

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Colormaps en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by