I am using the python graphing library matplotlib to graph several things in a report, and I found myself needing to have several fixed-count graphs above an arbitrary grid of smaller graphs. I searched around, but was unable to find anything that would let me use two gridspec layouts on a single matplotlib figure. What I want essentially:
I know I could hack some solution if the number of graphs per row in the second group is an even number. but if each row has an odd count, then such a solution is not possible. For example, imagine I have 5 graphs per row in the small graph section, then it would be impossible to have two equal size graphs side by side above them, and the gridspec does not let you specify fractional indices(and it shouldn't).
In my mind the proper solution would be to have two separate gridspec layouts on the single figure, one for the fixed count graphs on the top half, and then a programmatically scaled gridspec for the smaller graphs on the bottom half. I have found no such solution in matplotlib with gridspec or subplots, so does anyone have any suggestions for such a graph setup using matplotlib?