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)
>
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
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