# Plots without axes labeling [duplicate]

I need to plot in Mathematica without labeling. For example, this code:

Plot[Sin[x], {x, 0, 6 Pi}, Frame -> True, Axes -> False,
PlotRange -> {{0, 10}, {-2, 2}}]


produces this plot: However, I need only figure and not the labeling of horizontal and vertical axis.

• Related: (16749) (converse) Dec 5, 2014 at 21:52

Plot[Sin[x], {x, 0, 6 Pi}, Frame -> True, Axes -> False,
PlotRange -> {{0, 10}, {-2, 2}}, LabelStyle -> Opacity] Here I used LabelStyle to make the labels transparent (even though they are still generated together with the ticks). Alternatively, you can manually specify the tick marks with empty labels, but I assume you want something that retains the automatic placement of the ticks.

Another approach:

There's also this method, using the ImagePadding option:

Plot[Sin[x], {x, 0, 6 Pi}, Frame -> True, Axes -> False,
PlotRange -> {{0, 10}, {-2, 2}}, ImagePadding -> 1] What this does is to make the border around the frame defined by the PlotRange so thin that there isn't enough room to display any of the tick labels. I just have to make sure that there is enough padding to show the frame, that's why the value 0 doesn't work.

You can (mis)use FrameTicksStyle:

Plot[Sin[x], {x, 0, 6 Pi}, Frame -> True, Axes -> False,
PlotRange -> {{0, 10}, {-2, 2}},
FrameTicksStyle -> Directive[FontOpacity -> 0, FontSize -> 0]] • It was also a helpful answer. thanks a lot Dec 9, 2014 at 10:28
• @zenith You're most welcome, thanks for the positive feedback!
– user9660
Dec 9, 2014 at 17:01
 Plot[Sin[x], {x, 0, 6 Pi}, Frame -> True, Axes -> False,
PlotRange -> {{0, 10}, {-2, 2}},
FrameTicksStyle -> {{{0.1}, None}, {0.1, None}}]

• You're removing the labels AND the tick marks Dec 5, 2014 at 18:08
• no, i wanted to remove only labels. Dec 5, 2014 at 23:45
• Try running the code. Dec 5, 2014 at 23:47
• this code also produced desired results but i observed some extra dots. thanks for the help Dec 9, 2014 at 10:29