A complement to @Jazzmaniac.
The discontinuity is only apparent because of your interpretation: you plot an angle on a plane, with a $y$-axis (the one with interval $[-4,4]$) taking real values. A sounder representation (not easy in 2D) would be to take into account the $2\pi$ periodicity, and plotting the phase on a cylinder, whose axis is the $x$-axis.
Imagine you cut an horizontal stripe in your diagram at $y=\pi$ and $y=-\pi$. Then you fold it into an horizontal cylinder and put some scotch tape so that the borders $y=\pi$ and $y=-\pi$ are joined. If you do that, you will see that the top angle at coordinate $(10\pi-,\pi-)$ (the $-$ denotes a value taken slightly to the left) becomes close (on the cylinder surface) to the bottom angle at coordinate $(10\pi+,-\pi+)$ (the $+$ denotes a value taken slightly to the right).
This is because the natural topology of angles is that of a 1D torus:
On the bottom square, the natural topology tells you that the two sides called B are far away. But if you fold and glue (top right cylinder), both so-called B-sides become indistinguishable in the torus geometry. And the same for the A-sides, giving you the torus on the top left.
So if you take the segment $[-\pi,\pi]$ is which the principal argument resides, apparently $-\pi$ and $\pi$ are far away in the real ($\mathbb{R}$) topology. But in the natural angle topology, you bend the segment $[-\pi,\pi]$ into a circle, and then $-\pi$ and $\pi$ become indistinguishable. So, $-\pi+0.001$ is very close to $\pi-0.001$.
unwrap
function in Matlab/Octave, and try plotting your arg{z[n]} unwrapped. That might be more what you are expecting (i.e. no discontinuity in the plot due to unwrapped phase). $\endgroup$