# How to use None in FrameTicks in ListPlot [closed]

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.

## closed as off-topic by m_goldberg, user9660, Mr.Wizard♦Jun 20 '16 at 13:08

This question appears to be off-topic. The users who voted to close gave this specific reason:

• "This question arises due to a simple mistake such as a trivial syntax error, incorrect capitalization, spelling mistake, or other typographical error and is unlikely to help any future visitors, or else it is easily found in the documentation." – m_goldberg, Community, Mr.Wizard
If this question can be reworded to fit the rules in the help center, please edit the question.

• The pattern is FrameTicks->{{left, right}, {bottom, top}}. Your example seems to be using FrameTicks->{xticks, yticks} which is fine but you can't then use the first form because Mathematica will then assume your xticks belong on the left-y axsis. – Ymareth Jun 20 '16 at 10:37
• @Ymareth - Thanks, I was starting from the deprecated form, {bottom, left, top, right} and didn't notice the switch to {{left, right}, {bottom, top}}. – Chris Degnen Jun 20 '16 at 11:09
• Welcome, I got similarly burnt in the past :) – Ymareth Jun 20 '16 at 12:15

Try this form...

ListLinePlot[Prime[Range[400]*800], Frame -> True,
FrameTicks -> {{{{-1000000, "-1m"}, {0, "0"}, {1000000,
"1m"}, {2000000, "2m"}, {3000000, "3m"}},
None}, {{{49, 4}, {97, 8}, {145, 12}, {193, 16}, {241, 20}, {289,
24}, {337, 28}, {385, 32}, {433, 36}, {481, 40}}, None}}]


Where I've swapped the order around and nested the two axis' ticks into lists with a None at the end.

Example

ListPlot[data, Frame -> True, FrameTicks -> {{True, False}, {True, False}}]


Note: data is some arbitrary data you want to plot