|
From: John H. <jdh...@ac...> - 2003-08-26 15:15:41
|
>>>>> "Charles" == Charles Twardy <ct...@ma...> writes:
Charles> Hi there, I've just started playing with matplot and am
Charles> VERY impressed.
Thanks.
Charles>However, I thought I'd mention two items
Charles> in case no one else has seen them.
Charles> 1) There are a lot of Deprecation warnings on loading.
Thanks for the alert. Are you using python2.3? I've heard that 2.3
generates deprecation warnings and I plan to get them cleaned up in
the near future and do a bug-fix release, probably 0.21.
Charles> 2) I can generate an X Window Error via a gdk
Charles> crash. Here's the tail of the trace: [------ File
Charles> "/usr/lib/python2.3/site-packages/matplotlib/text.py",
Charles> line 310, in _set_font self._layout =
Charles> self._drawingArea.create_pango_layout(self._text)
Charles> TypeError: GtkWidget.create_pango_layout() argument 1
Charles> must be string, not int The program 'stats.py' received
Looks like you passed an integer to a text label command in the
set(gca..., command that is causing your troubles. If you are trying
to set a ticklabel, note that they must be strings, not ints. Eg,
set(gca(), 'xticklabels', ['%d' % val for val in arange(8)])
not
set(gca(), 'xticklabels', arange(8))
Is this the source of your troubles (The example code you meant to
send didn't come through)? Check it out. If not, send me the script
that generates the error and I'll take a look. I haven't seen this
bug before (and I use the library a lot <wink>).
John Hunter
|