TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

as much as I know, the following code should have the y axis label on the right:

  \pgfplotstableread{Example.txt} \mytable
  \begin{axis} [ ytick pos=right,
                 ylabel near ticks,
                 ylabel={Bla}, ]
    \addplot table [x index=0, y index=1] {\mytable};

where 'Example.txt' is just 0 2 1 2 2 2 3 2 4 1 (With line breaks, they just don't appear here) Unfortunately the y-label still appears on the left. What did I make wrong?

Thanks, Juhui

share|improve this question

closed as too localized by Jake, Gonzalo Medina, percusse, Stefan Kottwitz Aug 14 '12 at 21:21

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

Which version of pgfplots are you using? Your example code works as expected in my system (TeX Live2012, pgf version 2.10, pgfplots.sty: 2011/12/29 v1.5.1.). – Gonzalo Medina Aug 14 '12 at 18:20
Hi Medina, thanks for your reply. It pushed me into the right direction. Something is wrong with my installation. For now, I updated my ubuntu packages and I'm still not at pgfplots version 1.3, but at least now it works. Thanks a lot, – Juhui Aug 14 '12 at 20:06
You're welcome! You should consider installing TeX Live from TUG; the official repos ship a really old LaTeX system. Since you're problems has been solved, this question will perhaps be closed as too localized. – Gonzalo Medina Aug 14 '12 at 20:12

Browse other questions tagged or ask your own question.