anyplotlib.GridSpec#
- class anyplotlib.GridSpec(nrows, ncols, *, width_ratios=None, height_ratios=None)[source]#
Bases:
objectDefine a grid of subplot cells.
- Parameters:
Examples
>>> gs = GridSpec(2, 3, width_ratios=[2, 1, 1]) >>> spec = gs[0, :] # top row spanning all columns >>> spec = gs[1, 1:3] # bottom-right 2 columns