Pseudo 3D plot

Hi Robert,

* Robert Hetland <hetland@...760...>
  wrote:

In my ubuntu 0.3.2 and archlinux 0.4.8 version there is no
such delauny directory. There exists a sandbox directory,
but this looks like:

__init__.py __init__.pyc __init__.pyo build setup.py
setup.pyc setup.pyo

Do I miss any package or should I download it by hand from
http://projects.scipy.org/scipy/scipy/browser/trunk/Lib/sandbox

This is in the scipy source, not in the scipy directory installed in
python/lib. This should be downloaded by default if you download
from svn. BTW, kudos to Robert Kern for making this excellent
griding package.

I could install the package using the svn version, thanks!
But now, I am not sure, if it works. It seems for me that it
is a different problem compared to Nils. I get:

`--> python gridding_matpl.py
/usr/lib/python2.4/site-packages/matplotlib/__init__.py:719: UserWarning: Bad val "numpy" on line #33
        "numerix : numpy #Numeric # Numeric or numarray"
        in file "/etc/matplotlibrc"
        Numerix must be Numeric or numarray
  warnings.warn('Bad val "%s" on line #%d\n\t"%s"\n\tin file "%s"\n\t%s' % (val, cnt, line , fname, msg))
Traceback (most recent call last):
  File "gridding_matpl.py", line 43, in ?
    plot_data(xi,yi,zi)
  File "gridding_matpl.py", line 16, in plot_data
    pcolor(xi,yi,zim,shading='interp',cmap=cm.gray)
  File "/usr/lib/python2.4/site-packages/matplotlib/pylab.py", line 1941, in pcolor
    ret = gca().pcolor(*args, **kwargs)
  File "/usr/lib/python2.4/site-packages/matplotlib/axes.py", line 2142, in pcolor
    C = ma.asarray(C)
  File "/usr/lib/python2.4/site-packages/Numeric/MA/MA.py", line 2090, in asarray
    return array(data, typecode=typecode, copy=0)
  File "/usr/lib/python2.4/site-packages/Numeric/MA/MA.py", line 591, in __init__
    c = Numeric.array(data, tc, savespace=ss)
  File "/usr/lib/python2.4/site-packages/numpy/core/ma.py", line 613, in __array__
    raise MAError, \
numpy.core.ma.MAError: Cannot automatically convert masked array to numeric because data
                          is masked in one or more locations.

As you see, I am not 'allowed' to change 'numerix' to
'numpy' and printing the values from 'zi' with 'print zi' gives me:

[[ nan nan nan ..., nan nan
          nan]
[ nan nan nan ..., nan nan
          nan]
[ nan nan nan ..., nan nan
          nan]
...,
[ nan nan nan ..., nan nan
          nan]
[ nan nan nan ..., nan nan
          nan]
[ nan nan nan ..., nan nan
          nan]]

Sorry, but do you have some more suggestions?

Greetings!
Fabian

···

On Apr 11, 2006, at 11:27 AM, Robert Kern wrote:

Fabian Braennstroem wrote:

Hi Robert,

* Robert Hetland <hetland@...760...>
  wrote:

In my ubuntu 0.3.2 and archlinux 0.4.8 version there is no
such delauny directory. There exists a sandbox directory,
but this looks like:

__init__.py __init__.pyc __init__.pyo build setup.py
setup.pyc setup.pyo

Do I miss any package or should I download it by hand from
http://projects.scipy.org/scipy/scipy/browser/trunk/Lib/sandbox

This is in the scipy source, not in the scipy directory installed in
python/lib. This should be downloaded by default if you download
from svn. BTW, kudos to Robert Kern for making this excellent
griding package.

I could install the package using the svn version, thanks!
But now, I am not sure, if it works. It seems for me that it
is a different problem compared to Nils. I get:

`--> python gridding_matpl.py
/usr/lib/python2.4/site-packages/matplotlib/__init__.py:719: UserWarning: Bad val "numpy" on line #33
        "numerix : numpy #Numeric # Numeric or numarray"
        in file "/etc/matplotlibrc"
        Numerix must be Numeric or numarray

You have an old version of matplotlib. I would suggest upgrading if you want to
use numpy with matplotlib.

···

On Apr 11, 2006, at 11:27 AM, Robert Kern wrote:

--
Robert Kern
robert.kern@...287...

"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
  -- Umberto Eco