|
From: Benjamin R. <ben...@ou...> - 2013-02-01 16:15:55
|
On Fri, Feb 1, 2013 at 11:04 AM, Jeff Layton <lay...@at...> wrote: > Good morning, > > I'm been using matplotlib for a while but it's always been very > simple plots (hey - I'm a simple person). I have a need for some > "fancier" plots using subplots. > > I want to have 3 charts one above the other with a single set of > x-axis labels on the bottom subplot that works for all three charts. > I'd also like to put a legend outside the set of three charts - either > to the top right or horizontally along the bottom. > > I've been reading a number of links and nothing really works. > Most everything is around pylab and I'm using just straight > matploblib. I hate to say it, but I need to have the solution and > I'm looking for some newbie help. One of the frustrating aspects > is I need to make sure it works for version 0.91 :( > > I'm attaching a simple example script that shows the plots > as I currently have achieved them. Apologies for any bad coding. > Just in case the attachment doesn't make it through the code is > below. > > Thanks! > > Jeff > > > I don't know when it was introduced, but ax.label_outer() (called on each axes object) can help you with the axis labeling. If that works, we can then tackle legend placement. Ben Root |