title: Plot Square Wave in Python
body: <p>Im currently working on graphing a square wave in python using numpy and pylot.
  How would I plot a square wave function over multiple periods of T?</p>
  <p>I currently have:</p>
  <pre><code>from scipy import signal
  import numpy as np
  from scipy.fftpack import fft
  
  #Initialize Parameters
  p_0 = 2
  A = np.sqrt(1/(2*p_0))
  t = [-A,A]
  
  
  plt.plot(t,[A,A])
  plt.show()
  </code></pre>
  <p>which just gives me a straight line.
  The end game is to take the Fourier transform of the square wave function</p>