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.
我需要知道如何从 X 和 Y 轴上删除数字。我不认为这与 X 网格或 Y 网格有关,因为在轴检查器中,XGrid 和 YGrid 处于关闭状态。
我尝试了所有但没有帮助。
编辑:
谢谢...
set(gca, 'XTick', [], 'YTick', [])
一个更简单的解决方案是
axis off
但它带有一个警告:它还删除了x和y标签。因此,如果您想包含标签并仅删除数字,则 nibot 的答案是正确的方法。
x
y