Re: [Matplotlib-users] TypeError on CocoaAgg backend

2007-12-05 Thread John Hunter
On Dec 5, 2007 12:36 PM, Barry Wark <[EMAIL PROTECTED]> wrote: > Chris, > > I appologize for cryptic language and quickly written emails leading > you astray. I've included the diff of backend_cocoaagg.py (which has > also been sent to the mpl devs) which seems to work for me. I committed in r4571

Re: [Matplotlib-users] TypeError on CocoaAgg backend

2007-12-05 Thread Barry Wark
Chris, I appologize for cryptic language and quickly written emails leading you astray. I've included the diff of backend_cocoaagg.py (which has also been sent to the mpl devs) which seems to work for me. Barry backend_cocoaagg.py.diff Description: Binary data On Dec 3, 2007, at 8:00 PM

Re: [Matplotlib-users] TypeError on CocoaAgg backend

2007-12-03 Thread Chris Fonnesbeck
On Dec 3, 2007 7:34 PM, Barry Wark <[EMAIL PROTECTED]> wrote: > sorry instances of self.plotView.image > > On Dec 3, 2007 3:38 PM, Chris Fonnesbeck <[EMAIL PROTECTED]> wrote: > > I replaced the one instance of this that I found. I now get the following error: In [7]: show() --

Re: [Matplotlib-users] TypeError on CocoaAgg backend

2007-12-03 Thread Barry Wark
sorry instances of self.plotView.image On Dec 3, 2007 3:38 PM, Chris Fonnesbeck <[EMAIL PROTECTED]> wrote: > OK, I'm having a bad backend day (insert joke here). > > Since I am on OSX, I decided to switch over to the CocoaAgg backend, > but it fails when trying to show a histogram, yielding the fo

Re: [Matplotlib-users] TypeError on CocoaAgg backend

2007-12-03 Thread Barry Wark
Chris, This error is due to more stringent error checking in pyobjc2 which ships with Leopard. I was just preparing a patch to send to the matplotlib dev guys, but if you replace all instances of self.image with self._image in backend_cocoaagg.py, things should work. Because PlotView is an NSImage

[Matplotlib-users] TypeError on CocoaAgg backend

2007-12-03 Thread Chris Fonnesbeck
OK, I'm having a bad backend day (insert joke here). Since I am on OSX, I decided to switch over to the CocoaAgg backend, but it fails when trying to show a histogram, yielding the following TypeError: In [4]: from matplotlib import use In [5]: use('CocoaAgg') In [6]: from pylab import hist, sh