From: John H. <jdh...@ac...> - 2005-09-30 13:41:35
|
>>>>> "Ryan" == Ryan Krauss <rya...@co...> writes: Ryan> And can I make one legend that includes the plots from both Ryan> axes? Save a list of lines and a list of labels and then call ax.legend(lines, labels) lines and labels can be from different axes; eg, lines = [] lines.extend( ax1.plot(something)) lines.extend( ax2.plot(something_else)) See also the figure legend capability in http://matplotlib.sf.net/matplotlib.figure.html Ryan> Thanks for your help John. I think I am getting close to a Ryan> really nice graph with a lot of useful information on it. Your welcome -- good luck. JDH |