I meant to be copying an annotation example from
http://matplotlib.sourceforge.net/examples/annotation_demo.bak.py
but it is not working.  Am I just too bleary eyed because it 
is later here, or is there a problem with the example?

Thank you,
Alan Isaac


%%%%%%%%%%%%  Illustrate Annotation Problem  %%%%%%%%%%%%%%%%%%%%%
import pylab
import matplotlib as mpl
test = pylab.figure()
test_ax = test.gca()
test_ax.plot([1,2,3])

#the following line fails with "ValueError: too many values to unpack" 
a = mpl.text.Annotation(
test,
'F: a figure title (points)',
loc=(-10, -10),
coords='figure points',
horizontalalignment='right',
verticalalignment='top',
fontsize=20)

test_ax.add_artist(f)
test.savefig(r'c:\temp\temp.eps')




-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to