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
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
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()
--
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
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
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