subplot with specified heights

Dear list,

I would like to have two subplots in a figure one below each other (so
arranged in a 2x1 matrix). I want the upper subplot to have a very
small height compared to the lower one, say 10 times smaller than the
other one.

How can I do that with matplotlib? I didn't find that with subplot()
command. I also found the add_subplot() function with many parameters,
but I didn't see which of those parameter would help me.

Thanks for any advice,
Holger

···

--
Holger Brandsmeier, SAM, ETH Zürich
http://www.sam.math.ethz.ch/people/bholger

Hi Holger,

I would like to have two subplots in a figure one below each other (so
arranged in a 2x1 matrix). I want the upper subplot to have a very
small height compared to the lower one, say 10 times smaller than the
other one.

How can I do that with matplotlib? I didn't find that with subplot()
command. I also found the add_subplot() function with many parameters,
but I didn't see which of those parameter would help me.

Is this what you need?
http://matplotlib.sourceforge.net/mpl_toolkits/axes_grid/users/overview.html#scatter-hist-py-with-axesdivider

Best regards,

Jean-Louis

···

On Oct 20, 2011, at 11:21 AM, Holger Brandsmeier wrote:

Thanks for any advice,
Holger

--
Holger Brandsmeier, SAM, ETH Zürich
People – Seminar for Applied Mathematics | ETH Zurich

------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@...3822... Self-Assessment and learn
about Cisco certifications, training, and career opportunities.
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options

Indeed, with that link, I was able to make it work.

Thanks a lot,
Holger

···

On Thu, Oct 20, 2011 at 11:30, Jean-Louis Durrieu <jean-louis@...3823...> wrote:

Hi Holger,

On Oct 20, 2011, at 11:21 AM, Holger Brandsmeier wrote:

I would like to have two subplots in a figure one below each other (so
arranged in a 2x1 matrix). I want the upper subplot to have a very
small height compared to the lower one, say 10 times smaller than the
other one.

How can I do that with matplotlib? I didn't find that with subplot()
command. I also found the add_subplot() function with many parameters,
but I didn't see which of those parameter would help me.

Is this what you need?
http://matplotlib.sourceforge.net/mpl_toolkits/axes_grid/users/overview.html#scatter-hist-py-with-axesdivider

Best regards,

Jean-Louis

Thanks for any advice,
Holger

--
Holger Brandsmeier, SAM, ETH Zürich
People – Seminar for Applied Mathematics | ETH Zurich

------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@...3822... Self-Assessment and learn
about Cisco certifications, training, and career opportunities.
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options

--
Holger Brandsmeier, SAM, ETH Zürich