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

When I use the example of the pgfplots manual it looks different from what is shown in the manual:

\begin{axis}[title=Snap to nearest for scatter plots]
\addplot+[only marks]
coordinates {(0,0) (1,1) (2,2) (3,3)}
node[pos=0,pin=0:0] {}
node[pos=0.1, pin=90 :0.1 ] {}
node[pos=0.2, pin=200:0.2 ] {}
node[pos=0.3, pin=135:0.3 ] {}
node[pos=0.4, pin=0
:0.4 ] {}
node[pos=0.5, pin=60 :0.5 ] {}
node[pos=0.75,pin=180:0.75] {}
node[pos=1,pin=90 :1] {};

This is the result:

enter image description here

This part pos=0.75 etc. is obviously not working. What am I doing wrong?

I use TeXnicCenter 1.0 RC1 with MiKTeX 2.9.

share|improve this question
The code compiles fine for me, and produces the figure on p241 of the manual- it sounds like you need to update your distribution. You can check the age of your packages by adding \listfiles immediately before your \begin{document} – cmhughes Feb 25 '12 at 20:27
Updating the packages helped! Thanks a lot and sorry to have bothered you with such a question. Felt like I installed all that stuff yesterday, but seems like I'm working longer on my thesis than I would have guessed :-) – severin Feb 25 '12 at 20:55
No problem! These things always take longer than you think- I usually estimate how long I think a task will take, and then allow at least double :) – cmhughes Feb 25 '12 at 21:31
up vote 7 down vote accepted

As cmhughes suggested, you need a more recent version of pgfplots: support for pos=0.75 and its variants has been added in version 1.5.1 (can be obtained via CTAN, TeX package managers or http://pgfplots.sourceforge.net/).

share|improve this answer
That helped. See above. Thank you! – severin Feb 25 '12 at 21:02

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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