# Position and format frame labels and ticks frame ticks

How could I move axis and tick labels from the left to the right vertical axis, while retaining ticks on both vertical axes, but removing ticks, axis labels, and tick labels from the top and bottom axes?

See the following example:

Plot[
Sin[x]^3, {x, 0, 10 π}, Frame -> True,
FrameLabel -> {"x", "y"},
FrameTicks -> {{True, True}, {True, True}}
]

• try Plot[Sin[x]^3, {x, 0, 10 Pi}, Frame -> True, FrameLabel -> {{None, "x"}, {"y", None}}, FrameTicks -> {{False, All}, {False, False}}]?
– kglr
Commented Jan 4, 2022 at 20:08
• Ticks on the left y-axis are also wanted. Commented Jan 4, 2022 at 20:24
• Try: Plot[Sin[x]^3, {x, 0, 10 Pi}, Frame -> True, FrameLabel -> {{None, "x"}, {"y", None}}, FrameTicks -> {{All, All}, {False, False}}] Commented Jan 4, 2022 at 21:08
• No number on the left axis @ Daniel Huber Commented Jan 4, 2022 at 21:34

1. Use FrameTicks -> {All, {None, None}} and hide unwanted tick labels using FontOpacity -> 0 in FrameTicksStyle :

Plot[Sin[x]^3, {x, 0, 10 Pi}, Frame -> True,
FrameTicks -> {All, {None, None}},
FrameTicksStyle -> {{FontOpacity -> 0, Automatic}, Automatic},
FrameLabel -> {{None, "x"}, {"y", None}}]


2. Use ChartingScaledFrameTicks[{Identity, Identity}] to generate ticks without labels:

Plot[Sin[x]^3, {x, 0, 10 Pi}, Frame -> True,
FrameTicks -> {{ChartingScaledFrameTicks[{Identity, Identity}], All}, {None, None}},
FrameLabel -> {{None, "x"}, {"y", None}}]


• The left and right axes are perfect what I want, but no ticks and labels are required on the bottom and top axes. Commented Jan 4, 2022 at 21:32
• @SciJewel, please see the update.
– kglr
Commented Jan 4, 2022 at 22:55
• Wow! Thanks, Kglr! Always helpful! Commented Jan 4, 2022 at 23:07
• how to rotate the tick labels (-1, -0.5, 0, 0.5, 1) in the above plot? Is this possible? Commented Jan 5, 2022 at 8:05
• @SciJewel, define rotatedFrameLabels = ChartingScaledTicks[{Identity, Identity}][##] /. l_NumberForm :> Rotate[l, 90 Degree] &; and replace All with {rotatedFrameLabels, rotatedFrameLabels} in method 1 and with rotatedFrameLabels` in method 2.
– kglr
Commented Jan 5, 2022 at 10:08