Ofir A.
Ofir A.

Reputation: 3162

Axes Properties - Matlab

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.

enter image description here

I tried all but it did not help.

edit: enter image description here

thanks...

Upvotes: 1

Views: 2641

Answers (2)

abcd
abcd

Reputation: 42225

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.

Upvotes: 3

nibot
nibot

Reputation: 14928

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

Upvotes: 3

Related Questions