Re: [Matplotlib-users] text annotation

2010-12-21 Thread Benoist Laurent
ry something like; > >for i in xrange(5): >theta = i*1.3+1.5 >xx = center[0]+(radius-4)*math.cos(theta) >yy = center[1]+(radius-4)*math.sin(theta) >pyplot.annotate(str(i+1), (xx, yy), color='g', va="center", > ha="cent

Re: [Matplotlib-users] text annotation

2010-12-16 Thread Benoist Laurent
x1, x2 = pyplot.xlim() y1, y2 = pyplot.ylim() bounds = (min(x1,y1), max(x2,y2)) pyplot.xlim(bounds) pyplot.ylim(bounds) for i in xrange(5): theta = i*1.3+1.5 pyplot.annotate(str(i+1), (theta, radius-4), textcoords='polar', color='g') pyplot.sho

Re: [Matplotlib-users] text annotation

2010-11-26 Thread Benoist Laurent
Thank you for your answer. I read the text and annotate manual pages. I don't understand how the "polar" xycoords/textcoords works. I guess I should use this but its not clear to me. Le 26 nov. 10 à 14:13, Alan G Isaac a écrit : > On 11/26/2010 8:12 AM, Benoist Laurent w

[Matplotlib-users] text annotation

2010-11-26 Thread Benoist Laurent
Hi, I'm a new matplotlib user and I'm already impressed by matplotlib's features! But I can't find how to do something that looks quite easy. I have several points making something that looks like a circle. I would like to anotate these point. How can I manage the annotation of points forming a