Luca, It is a bug that appears when recent mpl is used with Numeric as opposed to numpy or numarray. It is fixed in svn. Your possible solutions are:
1) Use numpy or numarray instead of Numeric 2) Build mpl from svn 3) Edit axes.py as indicated in this diff chunk: @@ -1217,7 +1217,7 @@ ACCEPTS: len(2) sequence of floats """ - if xmax is None and hasattr(xmin,'__len__'): + if xmax is None and iterable(xmin): xmin,xmax = xmin old_xmin,old_xmax = self.get_xlim() @@ -1330,7 +1330,7 @@ ACCEPTS: len(2) sequence of floats """ - if ymax is None and hasattr(ymin,'__len__'): + if ymax is None and iterable(ymin): ymin,ymax = ymin old_ymin,old_ymax = self.get_ylim() Eric [EMAIL PROTECTED] wrote: > Hello I have installed matplotlib on su 10.0 > > when i do only this example > > from pylab import * > plot([1,2,3]) > > i get this error: > only length-1 attays can be converted to Python scalars. > > How i have made wrong? > > Regards > > Luca > > > > > ------------------------------------------------------ > Mutui a tassi scontati da 40 banche. Richiedi online e risparmia...Servizio > gratuito. www.mutuionline.it > http://click.libero.it/mutuionline13nov > > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users