On Fri, Jan 9, 2009 at 9:28 PM, helstreak <helstr...@hotmail.com> wrote:

> I would like to use the plotfile but it's returning the error:
>
> File "/usr/lib/python2.5/site-packages/matplotlib/pyplot.py", line 1228, in
> plotfile
>  ax1 = fig.add_subplot(N,1,i)
> UnboundLocalError: local variable 'N' referenced before assignment
>
> Any help on making this work would be greatly appreciated.


It looks like you may have an old version of matplotlib, as this does
not appear to be a problem in recent versions:


In [3]: !cat test.dat
1
2
3
4

In [4]: plotfile('test.dat')


You may want to look into upgrading.

JDH

------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to