How to create space between two subplots?

Hi,

I am trying to create two subplots in the same figure. Currently, the x-axis of first plot overlaps with the title of second plot.

I was wondering if there is a function for figure object that allows to create vertical space between two plots so that the axis and title text doesn’t overlap?

Regards

omer

Hi Omer,

use the subplots_adjust keyword argument (or click on the adjust
subplots icon in the navigation toolbar at the bottom of the figure).

http://matplotlib.sourceforge.net/api/figure_api.html#matplotlib.figure.Figure.subplots_adjust

-Aman

···

On Tue, Feb 15, 2011 at 6:05 AM, Omer Khalid <okhalid.cern@...287...> wrote:

Hi,
I am trying to create two subplots in the same figure. Currently, the x-axis
of first plot overlaps with the title of second plot.
I was wondering if there is a function for figure object that allows to
create vertical space between two plots so that the axis and title text
doesn't overlap?
Regards
omer
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options

Hi Aman,

Thanks a lot for your help and providing me the link to the function. It sorted out my query :slight_smile:

Cheers

Omer

···

On Tue, Feb 15, 2011 at 14:44, Aman Thakral <aman.thakral@…287…> wrote:

Hi Omer,

use the subplots_adjust keyword argument (or click on the adjust

subplots icon in the navigation toolbar at the bottom of the figure).

http://matplotlib.sourceforge.net/api/figure_api.html#matplotlib.figure.Figure.subplots_adjust

-Aman

On Tue, Feb 15, 2011 at 6:05 AM, Omer Khalid <okhalid.cern@…287…> wrote:

Hi,

I am trying to create two subplots in the same figure. Currently, the x-axis

of first plot overlaps with the title of second plot.

I was wondering if there is a function for figure object that allows to

create vertical space between two plots so that the axis and title text

doesn’t overlap?

Regards

omer


The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:

Pinpoint memory and threading errors before they happen.

Find and fix more than 250 security defects in the development cycle.

Locate bottlenecks in serial and parallel code that limit performance.

http://p.sf.net/sfu/intel-dev2devfeb


Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users