Re: [Matplotlib-users] how to add text below the legend

2010-02-03 Thread Ernest Adrogué
1/02/10 @ 16:15 (-0500), thus spake Jae-Joon Lee: > 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) >

Re: [Matplotlib-users] how to add text below the legend

2010-02-01 Thread Jae-Joon Lee
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://abitofpythonabito

[Matplotlib-users] how to add text below the legend

2010-01-31 Thread Ernest Adrogué
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 tr