1

I have 4 subplots (created by using add_subplot) organised in a 2x2 rectangular grid. The two in the second row do not need to take up as much space and I wish to change it such that the top row takes up two thirds of the space and the bottom row takes up the remaining third.

I've found that you can arbitrarily place subplots by creating them with the axes function that takes a list of [top, left, width, height], but this would make the code a little messy and arbitrary.

Is there a "nice" way to do it? Or will I have to resort to individually placing each subplot?

2 Answers 2

1

Use subplot2grid, where you specify a 3x3 grid but make subplots in the first row have rowspan=2.

Sign up to request clarification or add additional context in comments.

Comments

1

Maybe AxisGrid toolkit will help. It seems to offer more control than subplot()

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.