Pseudo 3D plot

verbose.level helpful interactive is False platform is

    > linux2 numerix numarray 1.5.1 font search path

Your numerix setting is numarray

    > line 832, in __getitem__ if self._data.rank == 0:
    > AttributeError: 'numpy.ndarray' object has no attribute
    > 'rank'

You are using numpy arrays

    > How can I resolve this problem ?

  from numpy import *
  from pylab import *
  from scipy.sandbox.delaunay import *

This is bad form. The first line is bringing in the numpy namespace,
pylab then imports the numerix namespace, in your case it is import
numarray, and then the scipy import overrides that, leaving you some
godawful mash of symbols.

Make sure your numerix setting agrees with the array objects you are
using. Perhaps you want to change your matplotlib 'numerix' setting
to 'numpy' or else use the numarray ndimage package.

In general, you will be safer doing something like

import matplotlib.numerix as nx
from pylab import figure, show, etc...

Ie, make sure you know where the various functions you are using come from.

JDH

Dr.-Ing. Nils Wagner

Universität Stuttgart
Institut für Angewandte und Experimentelle Mechanik

Pfaffenwaldring 9
D-70550 Stuttgart

Phone: +49 (0)711 685 6262
Fax: +49 (0)711 685 6282

E-mail: nwagner@...56...
URL: http://www.mecha.uni-stuttgart.de

···

On Mon, 10 Apr 2006 13:14:07 -0500 John Hunter <jdhunter@...4...> wrote:

"Nils" == Nils Wagner <nwagner@...56...> writes:

   > verbose.level helpful interactive is False platform is
   > linux2 numerix numarray 1.5.1 font search path

Your numerix setting is numarray

   > line 832, in __getitem__ if self._data.rank == 0:
   > AttributeError: 'numpy.ndarray' object has no attribute
   > 'rank'

You are using numpy arrays

   > How can I resolve this problem ?

from numpy import *
from pylab import *
from scipy.sandbox.delaunay import *

This is bad form. The first line is bringing in the numpy namespace,
pylab then imports the numerix namespace, in your case it is import
numarray, and then the scipy import overrides that, leaving you some
godawful mash of symbols.

Make sure your numerix setting agrees with the array objects you are
using. Perhaps you want to change your matplotlib 'numerix' setting
to 'numpy' or else use the numarray ndimage package.

In general, you will be safer doing something like

import matplotlib.numerix as nx
from pylab import figure, show, etc...

Ie, make sure you know where the various functions you are using come from.

JDH

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options

Sorry for my empty reply.

I have changed my matplotlibrc.
numerix : numpy #
It works fine for me.
Thank you again.

Nils

···

On Mon, 10 Apr 2006 13:14:07 -0500 John Hunter <jdhunter@...4...> wrote:

"Nils" == Nils Wagner <nwagner@...56...> writes:

   > verbose.level helpful interactive is False platform is
   > linux2 numerix numarray 1.5.1 font search path

Your numerix setting is numarray

   > line 832, in __getitem__ if self._data.rank == 0:
   > AttributeError: 'numpy.ndarray' object has no attribute
   > 'rank'

You are using numpy arrays

   > How can I resolve this problem ?

from numpy import *
from pylab import *
from scipy.sandbox.delaunay import *

This is bad form. The first line is bringing in the numpy namespace,
pylab then imports the numerix namespace, in your case it is import
numarray, and then the scipy import overrides that, leaving you some
godawful mash of symbols.

Make sure your numerix setting agrees with the array objects you are
using. Perhaps you want to change your matplotlib 'numerix' setting
to 'numpy' or else use the numarray ndimage package.

In general, you will be safer doing something like

import matplotlib.numerix as nx
from pylab import figure, show, etc...

Ie, make sure you know where the various functions you are using come from.

JDH

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options