image_nonuniform.py broken in trunk HEAD

examples/pylab_examples/image_nonuniform.py is broken in HEAD

An attempt to access "self._oldxslice" in _get_unsampled_image is
implicated: JJ is this related to your commit in r8035 : "support
unsampled image for ps backend"

  File "/home/jdhunter/dev/lib/python2.6/site-packages/matplotlib/backends/backend_wx.py",
line 1156, in _onPaint
    self.draw(drawDC=drawDC)
  File "/home/jdhunter/dev/lib/python2.6/site-packages/matplotlib/backends/backend_wxagg.py",
line 59, in draw
    FigureCanvasAgg.draw(self)
  File "/home/jdhunter/dev/lib/python2.6/site-packages/matplotlib/backends/backend_agg.py",
line 394, in draw
    self.figure.draw(self.renderer)
  File "/home/jdhunter/dev/lib/python2.6/site-packages/matplotlib/artist.py",
line 55, in draw_wrapper
    draw(artist, renderer, *args, **kwargs)
  File "/home/jdhunter/dev/lib/python2.6/site-packages/matplotlib/figure.py",
line 802, in draw
    func(*args)
  File "/home/jdhunter/dev/lib/python2.6/site-packages/matplotlib/artist.py",
line 55, in draw_wrapper
    draw(artist, renderer, *args, **kwargs)
  File "/home/jdhunter/dev/lib/python2.6/site-packages/matplotlib/axes.py",
line 1774, in draw
    a.draw(renderer)
  File "/home/jdhunter/dev/lib/python2.6/site-packages/matplotlib/artist.py",
line 55, in draw_wrapper
    draw(artist, renderer, *args, **kwargs)
  File "/home/jdhunter/dev/lib/python2.6/site-packages/matplotlib/image.py",
line 306, in draw
    self._draw_unsampled_image(renderer, gc)
  File "/home/jdhunter/dev/lib/python2.6/site-packages/matplotlib/image.py",
line 250, in _draw_unsampled_image
    self._get_unsampled_image(self._A, self.get_extent(), self.axes.viewLim)
  File "/home/jdhunter/dev/lib/python2.6/site-packages/matplotlib/image.py",
line 184, in _get_unsampled_image
    if xslice != self._oldxslice or yslice != self._oldyslice:
AttributeError: 'NonUniformImage' object has no attribute '_oldxslice'

It seems to be.
I'll take a look.

Regards,

-JJ

···

On Wed, Mar 3, 2010 at 4:48 PM, John Hunter <jdh2358@...149...> wrote:

JJ is this related to your commit in r8035 : "support
unsampled image for ps backend"

Should be fixed with r8178.

Regards,

-JJ

···

On Wed, Mar 3, 2010 at 5:19 PM, Jae-Joon Lee <lee.j.joon@...149...> wrote:

On Wed, Mar 3, 2010 at 4:48 PM, John Hunter <jdh2358@...149...> wrote:

JJ is this related to your commit in r8035 : "support
unsampled image for ps backend"

It seems to be.
I'll take a look.

Regards,

-JJ