I want to plot graph like there (plotting discrete signals) but with dots in values, I mean, dotted values on x without values of y, like "no information" (...). I slightly changed code from this thread but struggling with adding "dots" Below I attach example of what I want and my tex code with its output. I've been searching 1 hour over google, but without results.
Tex code
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
\usepackage{pgfplots}
\title{}
\author{}
\date{}
\begin{document}
\begin{filecontents}{data.dat}
n xn
0 10
1 9
2 5
3 2
4 -3
5 -
20 8
21 3
\end{filecontents}
\begin{tikzpicture}
\begin{axis}
[%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
scale=1.3,
axis x line=middle,
axis y line=middle,
every axis x label={at={(current axis.right of origin)},anchor=north west},
every axis y label={at={(current axis.above origin)},anchor= north west},
every axis plot post/.style={mark options={fill=black}},
xmin=0,
xmax=20,
xtick={0,1, 2, 3,4,5,20, 21},
xticklabels={0,1, 2, 3, 4, .., 20, 21},
xlabel={$\boldsymbol{x}$},
ylabel={$\boldsymbol{z[n]}$},
ytick={-5, 10},
ymin=-5,
ymax=10,
]%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\addplot+[ycomb,black, very thick] table [x={n}, y={xn}] {data.dat};
\end{axis}
\end{tikzpicture}
\end{document}
This is kinda my drawing on output, describing what I want to plot.

Thanks for reading.


