Show only XGrid on Heatmap plot?
显示 更早的评论
Hi, I'm using a heatmap plot to show zero values in a matrix. I am using h.GridVisible = 'off' to hide the grid but actually I would like to see the horizontal grid lines but not the vertical ones. Is there a way to achieve that?
Thanks
回答(2 个)
KSSV
2018-11-17
[X,Y,Z] = peaks(100) ;
pcolor(X,Y,Z)
shading interp
hold on
plot(X',Y','k')
类别
在 帮助中心 和 File Exchange 中查找有关 Data Distribution Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!