3
$\begingroup$

I try the following code to put it as a second axis in a 2-y plot as overlay but it behaves differently in Mathematica 9.0.1 and 10.3 (Numbered labels are missing in MA 10.3)

ListLinePlot[
Accumulate[RandomReal[{0, 100}, {100}]],
PlotStyle -> Red,
ImagePadding -> 25,
Axes -> False,
Frame -> {False, False, False, True},
FrameTicks -> {None, None, None, All},
FrameStyle -> {Automatic, Automatic, Automatic, Red}
]

in 9.0.1

enter image description here

in 10.3

Why this happens and how can I avoid this behavior.

$\endgroup$
1
  • 3
    $\begingroup$ works with FrameTicks -> {{None, All}, {None, None}}, and this is the documented syntax, both in V9 and V10.3 $\endgroup$
    – Kuba
    Jan 14, 2016 at 13:20

1 Answer 1

5
$\begingroup$

The form

FrameTicks -> {bottom, left, top, right}

was deprecated in v6 and fully removed in v10. You want to use

FrameTicks -> {{left, right}, {bottom, top}}

which is the documented form for both FrameTicks and FrameStyle.

$\endgroup$
1
  • $\begingroup$ Thank you very much for your help. It works great $\endgroup$
    – Nitra
    Jan 14, 2016 at 13:28

Not the answer you're looking for? Browse other questions tagged or ask your own question.