Contour Plot in gray scale
22 次查看(过去 30 天)
显示 更早的评论
I would like to plot this contour figure in grayscale. I would like to represent higher values in dark shades. Can anyone give me the command to plot this figure? Thanks.
0 个评论
采纳的回答
Walter Roberson
2018-5-23
编辑:Walter Roberson
2018-5-23
colormap( flipud(gray(256)) )
gray(256) would normally be brighter for higher values, so you reverse the order of the colors to get darker for higher values.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Contour Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!