Annotation on an axis

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


Subject: Re: [Matplotlib-users] Annotation on an axis

Drawing box around a text is quite easy.

To place a text in a way like ticklabels, you need to use blended transform.

The short example may give you some starting point.


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”,



        bbox=dict(boxstyle="round", fc="cyan"),


On Fri, Jul 17, 2009 at 12:51 PM, Christophe Dupre<christophe.dupre@…2631…> wrote:


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.



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:

Matplotlib-users mailing list