2013/2/1 Benjamin Root <ben.r...@ou.edu>

>
>
> On Fri, Feb 1, 2013 at 11:04 AM, Jeff Layton <layto...@att.net> 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.
>

if it does not work should be possible to do for ax1 and ax2

[t.set_visible(False) for t in ax.get_xticklabels()]

Francesco



> Ben Root
>
>
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_jan
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to