Agg problem with alpha?

John (Hunter), Paul (Kienzle), Alex (Mont), I have fixed

    > some of the problems with pcolormesh reported by George

I think some of these changes are not playing well with numarray

peds-pc311:~/mpl/examples> python image_demo_na.py
Traceback (most recent call last):
  File
  "/usr/lib/python2.4/site-packages/matplotlib/backends/backend_gtk.py", line 283, in expose_event
    self._render_figure(self._pixmap, w, h)
  File
  "/usr/lib/python2.4/site-packages/matplotlib/backends/backend_gtkagg.py", line 72, in _render_figure
    FigureCanvasAgg.draw(self)
  File
  "/usr/lib/python2.4/site-packages/matplotlib/backends/backend_agg.py", line 389, in draw
    self.figure.draw(renderer)
  File "/usr/lib/python2.4/site-packages/matplotlib/figure.py", line
  529, in draw
    for a in self.axes: a.draw(renderer)
  File "/usr/lib/python2.4/site-packages/matplotlib/axes.py", line
  972, in draw
    im.draw(renderer)
  File "/usr/lib/python2.4/site-packages/matplotlib/image.py", line
  184, in draw im = self.make_image()
  File "/usr/lib/python2.4/site-packages/matplotlib/image.py", line
  115, in make_image
    x = self.to_rgba(self._A, self._alpha)
  File "/usr/lib/python2.4/site-packages/matplotlib/cm.py", line 56,
  in to_rgba
    x = self.norm(x)
  File "/usr/lib/python2.4/site-packages/matplotlib/colors.py", line
  657, in __call__
    mask=val.mask)
  File
  "/home/jdhunter/debs/numarray/usr/lib/python2.4/site-packages/numarray/ma/MA.py", line 649, in __init__
    self._mask = make_mask (mask, flag=ss)
  File
  "/home/jdhunter/debs/numarray/usr/lib/python2.4/site-packages/numarray/ma/MA.py", line 185, in make_mask
    result = Numeric.array(filled(m,1), MaskType, savespace=1)
  File
  "/home/jdhunter/debs/numarray/usr/lib/python2.4/site-packages/numarray/ma/MA.py", line 230, in filled
    return Numeric.array(a)
  File
  "/home/jdhunter/debs/numarray/usr/lib/python2.4/site-packages/numarray/numarraycore.py", line 411, in array
    return fromlist(sequence,type,shape)
  File
  "/home/jdhunter/debs/numarray/usr/lib/python2.4/site-packages/numarray/numarraycore.py", line 247, in fromlist
    if not len(seq) and type is None:
TypeError: len() of unsized object
peds-pc311:~/mpl/examples>

John Hunter wrote:

"Eric" == Eric Firing <efiring@...229...> writes:

    > John (Hunter), Paul (Kienzle), Alex (Mont), I have fixed
    > some of the problems with pcolormesh reported by George

I think some of these changes are not playing well with numarray

Or with Numeric.

It is fixed in svn now. I needed to use Travis's ma.getmaskorNone() trick.

I will breathe a sigh of relief on that happy day when we can drop support for Numeric and numarray...

Eric