Skip to content

Instantly share code, notes, and snippets.

@TorbjornT
Created August 24, 2019 19:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TorbjornT/be982dca05f1aa0efd27185f6218aea8 to your computer and use it in GitHub Desktop.
Save TorbjornT/be982dca05f1aa0efd27185f6218aea8 to your computer and use it in GitHub Desktop.
\begin{filecontents*}{mydata.dat}
x y label
-1.05731886163643 -1.72501587731521 \%
-2.78577238404846 -0.843765364632213 \textbackslash
3.72026508875381 -1.22034965712686 @
0.00465397081060324 0.723899078670965 a
0.118172186120475 3.06523182040332 b
\end{filecontents*}
\documentclass[border=5mm]{standalone}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
hide axis,
nodes near coords,
nodes near coords align=center,
point meta=explicit symbolic
]
\addplot [no markers, draw=none] table[meta=label]{mydata.dat};
\end{axis}
\end{tikzpicture}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment