How to eliminate unwanted grids on the z-axis?

2 次查看(过去 30 天)
I am trying to plot a 3D scatter plot. Although I have set the zticks to 10.^[-1, 3], I have still got a lot of unwanted grids on the z-axis, which looks like this:
微信截图_20181123180423.png
How can I eliminate the dotted grids and only keep the solid lines? Thanks!
  2 个评论
Edward Liang
Edward Liang 2018-11-23
Please note that I do not want to get rid of all the grids, so 'grid off' is not my option. I only want to erase the dotted grids.
Jan
Jan 2018-11-23
编辑:Jan 2018-11-23
Please post the code you have used to create the graphics. Then it is much easier to suggest a modification. Maybe all you need is
yticks(10.^(-1:3))

请先登录,再进行评论。

采纳的回答

Luna
Luna 2018-11-23
Hi Edward,
Maybe this can solve your problem:
set(gca,'XMinorGrid','off');
set(gca,'YMinorGrid','off');
set(gca,'ZMinorGrid','off');

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Annotations 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by