Jeff Whitaker wrote: > > Jeremy Conlin wrote: >> >> >> Thanks for that information, that is what I needed. But now I come up >> with a separate problem. I have the following in my code: >> >> pylab.plot(n, S, 'b.', label='x') >> pylab.legend() >> ax2 = pylab.twinx() >> pylab.plot(n, mean, 'r',label="mean") >> ax2.yaxis.tick_right() >> pylab.legend() >> >> Both plots are shown with the appropriate axes, but only the second >> plot is listed in the legend. If I only have the first, then only the >> first plot will be listed. Please help. >> >> Jeremy > Jeremy: The problem is that the legends are plotting on top of each > other. Try using 'loc=1' for the first one and 'loc=2' for the second > one. >
What if I wanted one legend with both entries in it, rather than two separate legends with a different entry in each? Is that possible? That's more desirable than two separate legends. JDO -- View this message in context: http://www.nabble.com/Two-questions-regarding-axis-scaling-tp19463338p20654006.html Sent from the matplotlib - users mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users