Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何关闭垂直 y 轴上的黑线?
我尝试使用以下内容将其颜色设置为白色,使其看起来隐藏。但是,我也在使用网格线,如果我这样做,它们也会变成白色:
set(gca,'YColor',[1 1 1]); % Sets y-axis and gridlines to white color (represented by '1 1 1')
我还发现我可以执行以下操作来解决此问题:
在 y 轴范围内精确绘制一条白线
还有其他方法可以做到这一点吗?