FrameTicks
are plotted all round the frame, but I only want them on the left and bottom.
ListLinePlot[Prime[Range[400]*800],
Frame -> True,
FrameTicks ->
{{{49, 4}, {97, 8}, {145, 12}, {193, 16}, {241, 20},
{289, 24}, {337, 28}, {385, 32}, {433, 36}, {481, 40}},
{{-1000000, "-1m"}, {0, "0"}, {1000000, "1m"},
{2000000, "2m"}, {3000000, "3m"}}}]
Adding None
breaks the plot.
ListLinePlot[Prime[Range[400]*800],
Frame -> True,
FrameTicks ->
{{{{49, 4}, {97, 8}, {145, 12}, {193, 16}, {241, 20},
{289, 24}, {337, 28}, {385, 32}, {433, 36}, {481, 40}},
None},
{{{-1000000, "-1m"}, {0, "0"}, {1000000, "1m"},{2000000, "2m"}, {3000000, "3m"}},
None}}]
However, the same syntax works in Plot
.
Plot[Sin[x], {x, 0, 10},
Frame -> True,
FrameTicks ->
{{{{-1, "-1y"}, {0, "0y"}, {1, "1y"}}, None},
{{{0, 0 °}, {Pi, 180 °}, {2 Pi, 360 °}, {3 Pi, 540 °}}, None}}]
Is there a way to use None
in ListPlot
?
I am using V10.4.
{bottom, left, top, right}
and didn't notice the switch to{{left, right}, {bottom, top}}
. $\endgroup$