Re: [Matplotlib-users] text annotation

2010-12-21 Thread Benoist Laurent
Nice! Still some stuff to enhance but got it! Thanks a lot. Ben Le 19 déc. 10 à 05:30, Jae-Joon Lee a écrit : > I don't think "polar" is a good fit for your case. Instead, you can > simply use "data" coordinate with explicit coordinate transformation. > Try something like; > >for i in xrange

Re: [Matplotlib-users] text annotation

2010-12-18 Thread Jae-Joon Lee
I don't think "polar" is a good fit for your case. Instead, you can simply use "data" coordinate with explicit coordinate transformation. Try 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.s

Re: [Matplotlib-users] text annotation

2010-12-16 Thread Benoist Laurent
Sorry for the delay.This is the script is used (modified so that it include the data). from matplotlib import pyplot from matplotlib import patches import math def getCenter(points): """Return the center of a list of 2D points.""" meanX = sum(p[0] for p in points) / len(points) meanY

Re: [Matplotlib-users] text annotation

2010-12-15 Thread Benjamin Root
On Wed, Dec 15, 2010 at 9:46 AM, Benoist Laurent wrote: > Hi all, > > I'm still a bit stuck with this probleme of polar annotation. > Let me present the problem in a different way. > > I've got the center of my circle, its radius and even some points on the > circle. > Actually, I'd like to annot

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 wrote: >> How can I ma

Re: [Matplotlib-users] text annotation

2010-11-26 Thread Alan G Isaac
On 11/26/2010 8:12 AM, Benoist Laurent wrote: > How can I manage the annotation of points forming a circle if I have > their coordinates? http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.annotate http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.text

[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

Re: [Matplotlib-users] Text annotation misaligned with png backend.

2009-10-30 Thread Jae-Joon Lee
I don't see such problem in my installations. I may be wrong but It seems to me that it is a font issue (I believe you're not using usetex mode). Can you try to use other fonts? For example, my current installation picks up the following font (Vera Serif?). In [10]: matplotlib.font_manager.findf