开发者

Axes Properties - Matlab

开发者 https://www.devze.com 2023-03-15 21:26 出处:网络
I need to know how to remove the numbers from X and Y axes. I\'m don\'t think this is related to the X grid or Y grid because in the axes Inspector

I need to know how to remove the numbers from X and Y axes. I'm don't think this is related to the X grid or Y grid because in the axes Inspector the XGrid and YGrid is in off state.

Axes Properties - Matlab

I tried all but it did 开发者_运维知识库not help.

edit:

Axes Properties - Matlab

thanks...


A simpler solution is

axis off

but it comes with a caveat: it also removes the x and y labels. So if you wanted to include labels and remove only the numbers, nibot's answer is the correct way to go.


set(gca, 'XTick', [], 'YTick', [])
0

精彩评论

暂无评论...
验证码 换一张
取 消