RE: [Matplotlib-users] Annotation on an axis
That’s great, thanks.
···
-----Original Message-----
From: Jae-Joon Lee [mailto:lee.j.joon@…287…]
Sent: Fri 17/07/2009 15:33
To: Christophe Dupre
Cc: matplotlib-users@lists.sourceforge.net
Subject: Re: [Matplotlib-users] Annotation on an axis
Drawing box around a text is quite easy.
http://matplotlib.sourceforge.net/examples/pylab_examples/fancytextbox_demo.html
To place a text in a way like ticklabels, you need to use blended transform.
The short example may give you some starting point.
-JJ
from matplotlib.transforms import blended_transform_factory
ax = subplot(111)
x position in axes coordinate : 1.02
y position in data coordinate : 0.3
t = ax.text(1.02, 0.3, “label”, ha=“left”,
transform=blended_transform_factory(ax.transAxes,
ax.transData),
bbox=dict(boxstyle="round", fc="cyan"),
)
On Fri, Jul 17, 2009 at 12:51 PM, Christophe Dupre<christophe.dupre@…2631…> wrote:
Hello,
I am trying to add some annotations onto an axis as shown in the attached picture.
Is that do-able? If yes, any pointers on how to achieve this are welcome.
Thanks,
Christophe
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World™ will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
Matplotlib-users mailing list
https://lists.sourceforge.net/lists/listinfo/matplotlib-users