Take the 2-minute tour ×

I'm trying to put both a plot and a table in a figure, but I want some whitespace to separate the two. How do I position the table/plot at arbitrary positions? What I have now is the table of values showing up IMMEDIATELY under the x-axis (so that it's actually colliding into my axis labels...)

I don't know matplotlib at all...The documentation is not written very well either...

share|improve this question
use subplot? play with hspace? please post what you're currently doing. debugging invisible code is hard. –  matt Jul 26 '11 at 16:15
Is this a duplicate of stackoverflow.com/questions/6835650/… ? –  samb8s Jul 28 '11 at 6:59

1 Answer 1

To position something in a figure you have to use the function set_position([left, bottom, width, height]). Example:

matplotlib.pyplot.axes().set_position([0.15, 0.20, 0.80, 0.70]) 
share|improve this answer

Your Answer


