Hello, I never noticed the 'annotate' option in pylab.
I have been trying unsuccesfully to get it to work.
I am working in interactive mode and get the following error.
Thanks for any help, Mark
plot([1,2,3])
annotate( 'Mark', (1,2), (1,2.5) )
Traceback (most recent call last):
File "<pyshell#4>", line 1, in ?
annotate('Mark',(1,2),(1,2.5))
File "C:\Python24\lib\site-packages\matplotlib\pylab.py", line 2383, in
annotate
draw_if_interactive()
File "C:\Python24\lib\site-packages\matplotlib\backends\backend_tkagg.py",
line 59, in draw_if_interactive
figManager.show()
File "C:\Python24\lib\site-packages\matplotlib\backends\backend_tkagg.py",
line 305, in show
self.canvas.draw()
File "C:\Python24\lib\site-packages\matplotlib\backends\backend_tkagg.py",
line 154, in draw
FigureCanvasAgg.draw(self)
File "C:\Python24\lib\site-packages\matplotlib\backends\backend_agg.py",
line 392, in draw
self.figure.draw(renderer)
File "C:\Python24\lib\site-packages\matplotlib\figure.py", line 569, in
draw
for a in self.axes: a.draw(renderer)
File "C:\Python24\lib\site-packages\matplotlib\axes.py", line 1155, in
draw
a.draw(renderer)
File "C:\Python24\lib\site-packages\matplotlib\text.py", line 1762, in
draw
self.update_positions(renderer)
File "C:\Python24\lib\site-packages\matplotlib\text.py", line 1720, in
update_positions
self._x, self._y = self._get_xy(x, y, self.textcoords)
TypeError: unpack non-sequence
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users