[Tex/LaTex] PGFPlots – no markers in Scatter Plot

pgfplotstikz-pgf

I'm using this code in a document:

\documentclass{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.11}
\begin{document}
\begin{tikzpicture} 
\begin{axis}[
    xlabel=$a$,
    ylabel=$b$,
]
\addplot[blue,mark=*,mark options={fill=blue},nodes near coords,only marks,
   point meta=explicit symbolic,
   visualization depends on={value \thisrow{anchor}\as\myanchor},
   every node near coord/.append style={anchor=\myanchor}
] table[meta=label] {
x y label anchor
100 152 {Long label 1} south
200 180 {Long label 2} east
110 150 {Long label 3} west
};
\end{axis}
\end{tikzpicture}
\end{document}

Everything is perfect, but now I want to know how I erase the circles and stay with the labels?

Best Answer

Simply replace all the mark related stuff by no marks.

N.B.: Actually, pgfplots does not have an option called no marks but it is no markers there. The option no marks is inherited from TikZ. To me this is counter-intuitive because the natural opposite of only marks should be no marks and not no markers.

\documentclass{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.11}
\begin{document}
\begin{tikzpicture} 
  \begin{axis}[
    xlabel=$a$,
    ylabel=$b$,
    ]
    \addplot[blue,no marks,nodes near coords,only marks,
    point meta=explicit symbolic,
    visualization depends on={value \thisrow{anchor}\as\myanchor},
    every node near coord/.append style={anchor=\myanchor}
    ] table[meta=label] {
      x y label anchor
      100 152 {Long label 1} south
      200 180 {Long label 2} east
      110 150 {Long label 3} west
    };
  \end{axis}
\end{tikzpicture}
\end{document}

enter image description here