I am writing a technical paper in which I want to compare some works in my references. I want to draw a scatter plot between two columns of data (x and y) and the third column (the numeric reference label [1], [15],.. etc) as the text label on all the points.

I can do this using MATLAB of course, and set the point labels by hand. However anytime I add or remove a reference from my bibliography the numeric labels on my plot will have to be readjusted.

Is there any tool in LaTeX to update the reference labels in the scatter plot automatically?


You can use pgfplots, and the example from section 3.4.3 Scatter Plot Use-case C of the manual (for version 1.9).


\addplot+[nodes near coords,only marks,
  point meta=explicit symbolic]
  table[meta=label] {
x y label
0.5 0.2 \cite{a}
0.2 0.1 \cite{b}

\bibitem{a} This guy wrote this
\bibitem{b} This other guy wrote that

enter image description here

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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