문제

I want to make a plot in matplotlib with subplots arranged like so:

Layout

Where each of the colored squares represents a different subplot. How can I get matplotlib to make two subplots, one of which has several sub-subplots?

도움이 되었습니까?

해결책

You can use subplot():

pl.figure(figsize=(12, 6))
pl.subplot(1, 2, 1)
for axeid in (3, 4, 7, 8):
    pl.subplot(2, 4, axeid)

the output is:

enter image description here

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top