Trying to draw a 1D plot, some dots over one X axis. Currently, I have:
\begin{tikzpicture}
\begin{axis}[
xmin=0, xmax=22,
axis x line=bottom,% only show the bottom x axis
hide y axis,
scatter/classes={%
a={mark=o,draw=black}}
]
\addplot[scatter,only marks,
mark size = 3pt,
fill = red,
scatter src=explicit symbolic]
table {
3 0
6 0
9 0
12 0
15 0
18 0
};
\end{axis}
\end{tikzpicture}
unfortunately, the circles doesn't appears over (superposed) the x-axis. This is what I see:


axis lines=middleoption in\begin{axis}as per pgfplots: how make axes go through origin? – Dai Bowen Nov 05 '16 at 16:38hide y axisinstruction) so personally I think this question is best closed as a duplicate of that one. – Dai Bowen Nov 05 '16 at 16:45