[SciPy-user] recursion limit in plot

John Hunter jdh2358@gmail....
Thu Jan 15 09:48:33 CST 2009


On Thu, Jan 15, 2009 at 9:39 AM, Neal Becker <ndbecker2@gmail.com> wrote:
> What's wrong here?
> This code snippet:
>
> from pylab import plot, show
> print Id
> print pout
>
> plot (Id, pout)
> show()
>
> produces:
> ['50', '100', '150', '200', '250', '300', '350', '400', '450', '500', '550',
> '600', '650', '700', '750', '800', '850', '900', '950', '1000', '1050']
> ['0', '7.4', '11.4', '14.2', '16.3', '18.1', '19.3', '20.6', '21.6', '22.6',
> '23.4', '24.1', '24.9', '25.4', '26.1', '26.5', '26.9', '27.1', '27.3',
> '27.4', '27.4']

You are passing a list of strings in -- convert them to floats first, eg

  ld = np.array(ld, np.float)
  pout = np.array(pout, np.float)

plotting questions using matplotlib should be directed to matplotlib-users

 http://lists.sourceforge.net/mailman/listinfo/matplotlib-users

JDH


More information about the SciPy-user mailing list