Reverse the Colormap of Surf plot
94 次查看(过去 30 天)
显示 更早的评论
Hello,
I'm constructing a surf plot using Location (logitude, latitude) and depth data. Following image is the 2D projection of my surf plot. Is there a way to reverse the colormap of my plot?
i.e. Highest values should be shown in Dark blue (instead of yellow) and lowest values should be shown in yellow (instead of blue).
Thanks in advance!
0 个评论
采纳的回答
Tommy
2020-5-26
Grab the colormap and flip it upside down:
f = figure;
surf(peaks(50))
colormap(f, flipud(colormap(f)))
colorbar
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Blue 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!