How to make 0 value at center colorbar?

33 次查看(过去 30 天)
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 个评论
dpb
dpb 2020-2-29
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 2020-2-29
haha just +0.05 and present similar result xD

请先登录,再进行评论。

采纳的回答

Image Analyst
Image Analyst 2020-2-29
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.

更多回答(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