Plot a complex sequence (newb)

Newb here. I can plot a seq of float with:

pylab.plot (s)
pylab.show()

But if s is complex, say numpy.array(complex), it doesn't do what I want. I
think it's just showing the real part?

I want to get 2 line graphs, one real one imag.

Neal Becker wrote:

Newb here. I can plot a seq of float with:

pylab.plot (s)
pylab.show()

But if s is complex, say numpy.array(complex), it doesn't do what I want. I
think it's just showing the real part?

I want to get 2 line graphs, one real one imag.

If s is a numpy array, then try:
  
pylab.plot(s.real)
pylab.plot(s.imag)
pylab.show()

Ryan

ยทยทยท

--
Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma