[matplotlib-devel] Numeric support broken?

2006-10-22 Thread Edin Salkovic
Hi,

I built and installed the latest matplotlib from SVN.
When I type:

>>> from pylab import *
>>> plot([1,2,3])

I get:

Traceback (most recent call last):
  File "", line 1, in ?
  File "/usr/lib/python2.4/site-packages/matplotlib/pylab.py", line
2027, in plot
ret =  gca().plot(*args, **kwargs)
  File "/usr/lib/python2.4/site-packages/matplotlib/axes.py", line
2131, in plotself.autoscale_view(scalex=scalex, scaley=scaley)
  File "/usr/lib/python2.4/site-packages/matplotlib/axes.py", line
985, in autoscale_view
self.set_xlim(XL)
  File "/usr/lib/python2.4/site-packages/matplotlib/axes.py", line
1227, in set_xlim
self.viewLim.intervalx().set_bounds(xmin, xmax)
TypeError: only length-1 arrays can be converted to Python scalars.

I'm using Numeric as numerix. I'm on a Ubuntu box with python 2.4.

-
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-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] Numeric support broken?

2006-10-22 Thread Darren Dale
Did you try deleting your old mpl directory from site-packages, remove the 
build directory from you mpl sources, and rebuild from scratch?



On Sunday 22 October 2006 6:59 am, Edin Salkovic wrote:
> Hi,
>
> I built and installed the latest matplotlib from SVN.
>
> When I type:
> >>> from pylab import *
> >>> plot([1,2,3])
>
> I get:
>
> Traceback (most recent call last):
>   File "", line 1, in ?
>   File "/usr/lib/python2.4/site-packages/matplotlib/pylab.py", line
> 2027, in plot
> ret =  gca().plot(*args, **kwargs)
>   File "/usr/lib/python2.4/site-packages/matplotlib/axes.py", line
> 2131, in plotself.autoscale_view(scalex=scalex, scaley=scaley)
>   File "/usr/lib/python2.4/site-packages/matplotlib/axes.py", line
> 985, in autoscale_view
> self.set_xlim(XL)
>   File "/usr/lib/python2.4/site-packages/matplotlib/axes.py", line
> 1227, in set_xlim
> self.viewLim.intervalx().set_bounds(xmin, xmax)
> TypeError: only length-1 arrays can be converted to Python scalars.
>
> I'm using Numeric as numerix. I'm on a Ubuntu box with python 2.4.
>
> -
> 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-devel mailing list
> Matplotlib-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

-- 
Darren S. Dale, Ph.D.
[EMAIL PROTECTED]

-
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-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] Numeric support broken?

2006-10-22 Thread Edin Salkovic
Unfortunately, I forgot to do it :(

Then, just after sending the message to the list, it sprang to my
mind. To make it worse, I then mistakenly entered:
rm -Rf /path/to/site-packages

no matplotlib at the end, and hit enter.

There goes my beautiful Python install. :'(

Is there some switch to setup.py to make it remove the mpl dir or does
one allways have to do it by hand?

Cheers,
Edin

On 10/22/06, Darren Dale <[EMAIL PROTECTED]> wrote:
> Did you try deleting your old mpl directory from site-packages, remove the
> build directory from you mpl sources, and rebuild from scratch?
>
>
>
> On Sunday 22 October 2006 6:59 am, Edin Salkovic wrote:
> > Hi,
> >
> > I built and installed the latest matplotlib from SVN.
> >
> > When I type:
> > >>> from pylab import *
> > >>> plot([1,2,3])
> >
> > I get:
> >
> > Traceback (most recent call last):
> >   File "", line 1, in ?
> >   File "/usr/lib/python2.4/site-packages/matplotlib/pylab.py", line
> > 2027, in plot
> > ret =  gca().plot(*args, **kwargs)
> >   File "/usr/lib/python2.4/site-packages/matplotlib/axes.py", line
> > 2131, in plotself.autoscale_view(scalex=scalex, scaley=scaley)
> >   File "/usr/lib/python2.4/site-packages/matplotlib/axes.py", line
> > 985, in autoscale_view
> > self.set_xlim(XL)
> >   File "/usr/lib/python2.4/site-packages/matplotlib/axes.py", line
> > 1227, in set_xlim
> > self.viewLim.intervalx().set_bounds(xmin, xmax)
> > TypeError: only length-1 arrays can be converted to Python scalars.
> >
> > I'm using Numeric as numerix. I'm on a Ubuntu box with python 2.4.
> >
> > -
> > 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-devel mailing list
> > Matplotlib-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>
> --
> Darren S. Dale, Ph.D.
> [EMAIL PROTECTED]
>
> -
> 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-devel mailing list
> Matplotlib-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>

-
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-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel