Hi,
due to limited white space in my figures, I would like to be
able to split up a single big legend into multiple (usually 2) smaller ones.
###############################
Example (adapted from simple_plot.py):
from pylab import *
t = arange(0.0, 2.0, 0.01)
s = sin(2*pi*t)
plot(t, s, linewidth=1.0)
s = sin(4*pi*t)
plot(t, s, color='r',linewidth=1.0)
grid(True)
mylegend = legend(('Graph 1','Graph 2'),
loc='lower right',axespad=0.07,labelsep=0.04)
# modify legend
mylegend.draw_frame(False)
mylegendtext = mylegend.get_texts()
mylegendlines = mylegend.get_lines()
setp(mylegendtext, fontsize=15)
setp(mylegendlines, linewidth=1.2)
show()
##############################
I would like to split the legend up to into two.
One for "Graph 1" and one for "Graph 2" to be
able to place them where white space is available.
Is there an easy way to do this in matplotlib?
Thanks.
- Christian
P.S.: I have asked the same question 3 months ago and did not get
any replies. Perhaps someone else has stumbled over this by now...
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users