Mads,

I recommend trying a text object[1], with a transform which is a blended 
transform from a transform factory[2].  Also, you probably want the x 
coordinate in axes coordinates, with a left horizontal alignment.

-Sterling

[1] http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.text
[2] http://matplotlib.org/users/transforms_tutorial.html#blended-transformations


On Nov 28, 2012, at 4:27AM, Mads Ipsen wrote:

> Hi,
> 
> I would like to add a label or tick label for an axhline(), in such a way 
> that the labels follows the location of the hline.
> 
> The x-coordinate of the label should be in screen coordinates (a little to 
> the right of the plot) - but the y-coordinate should be in data coordinates.
> 
> Any good suggestions?
> 
> Best regards,
> 
> Mads
>  
> -- 
> +-----------------------------------------------------+
> | Mads Ipsen                                          |
> +----------------------+------------------------------+
> | Gåsebæksvej 7, 4. tv |                              |
> | DK-2500 Valby        | phone:          +45-29716388 |
> | Denmark              | email:  
> mads.ip...@gmail.com
>  |
> +----------------------+------------------------------+
> 
> 
> ------------------------------------------------------------------------------
> Keep yourself connected to Go Parallel: 
> INSIGHTS What's next for parallel hardware, programming and related areas?
> Interviews and blogs by thought leaders keep you ahead of the curve.
> http://goparallel.sourceforge.net_______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users


------------------------------------------------------------------------------
Keep yourself connected to Go Parallel: 
INSIGHTS What's next for parallel hardware, programming and related areas?
Interviews and blogs by thought leaders keep you ahead of the curve.
http://goparallel.sourceforge.net
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to