[Tex/LaTex] How to draw a square wave


Everything is in the title…

I'm trying to draw a simple square wave , but I'm reading that tikz cannot draw the vertical line of the discontinuity…

Is there a way to overpass this ? PSTricks maybe ?

This is what I'm trying to represent :

what I'm trying to do

Best Answer

Without TikZ.

enter image description here