[Fwd: cocoaagg]

as a long time matlab/mac user i am all excited to have discovered
pylab and matplotlib as a full fledged alternative (that was a week
ago). i have already converted my first few matlab scripts and i like
it :slight_smile:

i have installed a suite of modules (ipython 2.4.1, numpy, matploblib
0.87; all on os x 10.4.6 residing at [/Library/Frameworks/
Python.framework/Versions/2.4/lib/python2.4/site-packages/]) and now
also pyobjc because i would love to make cocoaagg work (in place of
tkagg which loads kind os slow at times).
however, upon starting the plotwindow, i have see the following
exception:

> % ipython -pylab
> Python 2.4.1 (#2, Mar 31 2005, 00:05:10)
> Type "copyright", "credits" or "license" for more information.
>
> IPython 0.7.1.fix1 -- An enhanced Interactive Python.
> ? -> Introduction to IPython's features.
> %magic -> Information about IPython's 'magic' % functions.
> help -> Python's own help system.
> object? -> Details about 'object'. ?object also works, ?? prints more.
>
> Welcome to pylab, a matplotlib-based Python environment.
> For more information, type 'help(pylab)'.
>
> In [1]: plot([1,4,3])
> 2006-04-15 08:30:39.793 python2.4[4086] *** NSThread: ignoring
> exception '*** -[NSKeyedUnarchiver decodeObjectForKey:]: missing
> class information for object' that raised during delayed perform of
> target 0x3003160 and selector 'startWithBundle:'

can you give me a tip? unfortunately there is hardly any mention/
discussion on cocoaagg on the web.

thanks for a brief note and helping to develop a great scientific
platform

best

ch

   I am replying on the matplotlib-users list, which I strongly
recommend you join.
   The CocoaAgg backend is fairly new, and is missing a few features
that other backends have. This is why there isn't much documentation
online.
   As for the error, it looks as if your setup might not be able to
find the Matplotlib.nib bundle that is used for the CocoaAgg backend.
I can't reproduce this error however, so it is hard to say for sure.
This is included in matplotlib's data folder. You should update to
the new Universal 2.4.3 build of python. It gets rid of the whole
python vs. pythonw.
   As for speed, the CocoaAgg won't be any faster than the TkAgg,
since they both use Agg for the rendering. Speed is also relative to
what you are plotting. The CocoaAgg does not have blitting support
for animation btw.

- Charlie