Nested Gridspecs
GridSpecs can be nested, so that a subplot from a parent GridSpec can set the position for a nested grid of subplots.
Note that the same functionality can be achieved more directly with
subfigures; see
Figure subfigures.
import matplotlib.pyplot as plt
import matplotlib.gridspec as gridspec
def
