Matplotlib Cocoaagg backend

From the matplotlib-devel list:

>> Dear Charles,
>>
>> I was trying to use your cocoa-agg backend for matplotlib, but it seems
>> to have a problem to read Matplotlib.nib. Opening this nib with
>> Interface Builder also gives an error. It appears that the problem is
>> caused by the file keyedobjects.nib in the Matplotlib.nib folder. If I
>> run plutil on keyedobjects.nib, it crashes. The other two files in
>> Matplotlib.nib look fine. So I was wondering if it is possible that the
>> keyedobjects.nib file included in matplotlib is damaged. If so, do you
>> have a valid copy of this file?
>>
>> Many thanks in advance,
>>
>> --Michiel de Hoon.
>
>We recently moved the data files, and I think the nib files got
>interpreted as text instead of binary files. I grabbed an old copy
>from a previous source release and committed them as binary. They
>should work now.
>
>- Charlie

I just downloaded /trunk/matplotlib/lib/matplotlib/backends/Matplotlib.nib, rev 3022 on svn. When I tried to use it, this happened:

In [1]: figure()
2007-02-21 15:00:51.611 Python[813] *** NSThread: ignoring exception '*** -[NSKeyedUnarchiver decodeObjectForKey:]: missing class information for object' that raised during delayed perform of target 0x3b308c0 and selector 'startWithBundle:'

I wasn't able to open the nib package with the interface builder, and plutil crashed on keyedobjects.nib (I don't know what plutil is supposed to do). I'm using a PPC G4 running OS X 10.4.

Thanks much,
Anand

···

On 2/14/07, Michiel Jan Laurens de Hoon <mdehoon@...1480...> wrote:

Sorry it took some time, but I tried committing fresh non-binary nibs.
Please try again now.

···

On 2/21/07, Anand Patil <anand@...1465...> wrote:

From the matplotlib-devel list:

>On 2/14/07, Michiel Jan Laurens de Hoon <mdehoon@...1480...> wrote:
>> Dear Charles,
>>
>> I was trying to use your cocoa-agg backend for matplotlib, but it seems
>> to have a problem to read Matplotlib.nib. Opening this nib with
>> Interface Builder also gives an error. It appears that the problem is
>> caused by the file keyedobjects.nib in the Matplotlib.nib folder. If I
>> run plutil on keyedobjects.nib, it crashes. The other two files in
>> Matplotlib.nib look fine. So I was wondering if it is possible that the
>> keyedobjects.nib file included in matplotlib is damaged. If so, do you
>> have a valid copy of this file?
>>
>> Many thanks in advance,
>>
>> --Michiel de Hoon.
>
>We recently moved the data files, and I think the nib files got
>interpreted as text instead of binary files. I grabbed an old copy
>from a previous source release and committed them as binary. They
>should work now.
>
>- Charlie

I just downloaded
/trunk/matplotlib/lib/matplotlib/backends/Matplotlib.nib, rev 3022 on
svn. When I tried to use it, this happened:

In [1]: figure()
2007-02-21 15:00:51.611 Python[813] *** NSThread: ignoring exception
'*** -[NSKeyedUnarchiver decodeObjectForKey:]: missing class information
for object' that raised during delayed perform of target 0x3b308c0 and
selector 'startWithBundle:'

I wasn't able to open the nib package with the interface builder, and
plutil crashed on keyedobjects.nib (I don't know what plutil is supposed
to do). I'm using a PPC G4 running OS X 10.4.

Thanks much,
Anand

It works! What beeyootiful plots. Man, that is SO MUCH nicer than Matlab's stanky old X11 b@#?*&^%. And contrary to something I think I remember you saying on an earlier thread, I could swear it's faster than TkAgg by a long shot.

Two wrinkles: It pops up a blank plot before showing the first plot the user requests, and I can't get it to work in interactive mode. On the (good) chance you're aware of those and working on it, sorry.

Thanks,
Anand

Charlie Moad wrote:

···

On 2/21/07, Anand Patil <anand@...1465...> wrote:

From the matplotlib-devel list:

>On 2/14/07, Michiel Jan Laurens de Hoon <mdehoon@...1480...> wrote:
>> Dear Charles,
>>
>> I was trying to use your cocoa-agg backend for matplotlib, but it seems
>> to have a problem to read Matplotlib.nib. Opening this nib with
>> Interface Builder also gives an error. It appears that the problem is
>> caused by the file keyedobjects.nib in the Matplotlib.nib folder. If I
>> run plutil on keyedobjects.nib, it crashes. The other two files in
>> Matplotlib.nib look fine. So I was wondering if it is possible that the
>> keyedobjects.nib file included in matplotlib is damaged. If so, do you
>> have a valid copy of this file?
>>
>> Many thanks in advance,
>>
>> --Michiel de Hoon.
>
>We recently moved the data files, and I think the nib files got
>interpreted as text instead of binary files. I grabbed an old copy
>from a previous source release and committed them as binary. They
>should work now.
>
>- Charlie

I just downloaded
/trunk/matplotlib/lib/matplotlib/backends/Matplotlib.nib, rev 3022 on
svn. When I tried to use it, this happened:

In [1]: figure()
2007-02-21 15:00:51.611 Python[813] *** NSThread: ignoring exception
'*** -[NSKeyedUnarchiver decodeObjectForKey:]: missing class information
for object' that raised during delayed perform of target 0x3b308c0 and
selector 'startWithBundle:'

I wasn't able to open the nib package with the interface builder, and
plutil crashed on keyedobjects.nib (I don't know what plutil is supposed
to do). I'm using a PPC G4 running OS X 10.4.

Thanks much,
Anand

Sorry it took some time, but I tried committing fresh non-binary nibs.
Please try again now.