I am trying to get a stem plot in which there are a few values near the origin and a group of values far away. I have already looked at this answer. Here is my attempt:
\documentclass{minimal}
\usepackage{tikz}
\usepackage{pgfplots}
\usetikzlibrary{pgfplots.groupplots}
\usetikzlibrary{arrows.meta}
\begin{document}
\begin{tikzpicture}[scale=1]
\begin{groupplot}[
group style={
group name=my fancy plots,
group size=2 by 1,
%xticklabels at=edge bottom,
horizontal sep=0pt
},
ymin=0, ymax=1.5
]
\nextgroupplot[ymin=0, ymax=1.5,
axis lines=middle, xtick={-1,...,1},
xticklabels={-1,...,1},
enlarge x limits=0.5,
enlarge y limits=0.5,
extra x tick style={
xticklabel style={yshift=0.5ex, anchor=south}},
xmin=-1.5,xmax=1.5, ytick={\empty}, yticklabels={},
axis on top,
axis line style={-Latex[round]},
]
\addplot+[ycomb,black,very thick] plot coordinates
{(-1,0) (0,1) (1,0)};
\node[anchor=east] at (axis cs:0,1.5) {$x[n]$};
\nextgroupplot[xmin=999, xmax=1001,
axis lines=middle,
hide y axis,
ymin=0, ymax=1.5,
xtick=1000,
xticklabels=1000,
axis x discontinuity=crunch,
]
\addplot+[ycomb,black,very thick] plot coordinates
{(999,0) (1000,1) (1001,0)};
\node[anchor=south] at (axis cs:1000,1) {$1$};
\node[anchor=north] at (axis cs:1001.5,0) {$n$};
\end{groupplot}
\end{tikzpicture}%
\end{document}
What I am getting is not quite aligned, to say the least. What I am looking for is for the axes to be aligned, no x-axis arrowhead for the first plots axis, joining of the two x-axes with that wavy line (to show the discontinuity) and the heights scaled correctly to match. The spacing between the dots (at n = -1, 0, and 1 versus those at n = 999, 1000, and 1001) is also different but I require them to be equispaced. Since I keep learning, forgetting and relearning, please excuse the naive MWE code.

