See if the example below works.
plot([1,2,3], label=test)
a=legend()
import matplotlib.offsetbox as offsetbox
txt=offsetbox.TextArea(Test 2)
box = a._legend_box
box.get_children().append(txt)
box.set_figure(box.figure)
For more control of legend, see the link below.
http://abitofpythonabitofastronomy.blogspot.com/2010/01/customized-legend.html
Regards,
-JJ
On Sun, Jan 31, 2010 at 11:59 AM, Ernest Adrogué eadro...@gmx.net wrote:
Hi,
I would like to add some text relative to the legend,
let's say below it, and I don't know how to get the legend
coordinates so I can pass them to the text() method.
Does anyone know how to do it?
Alternatively, if there was a way to add text inside the
legend itself, it would also do the trick.
Thank you in advance.
Ernest
--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users