[Matplotlib-users] two y axes via twinx and legends

2006-12-09 Thread belinda thom
Hi, This mailing list is great---I've gotten a couple very useful replies from others in a very short time period. Thanks! And now, onto my next question. I need to construct a two-y-axis plot. I've found some hints on how to do this on the mailing archive (Subject: secondary y-axis, Date:

Re: [Matplotlib-users] two y axes via twinx and legends

2006-12-09 Thread belinda thom
Looks like I've been able to help myself on this one. I'll post this here b/c others had asked about this in prior emails and I never saw an answer given. You can make your own custom legend by keeping the return values from each plot command: e.g. l1 = plot(y1's stuff) twinx() l2 =