### Navigation

- index
- modules |
- next |
- previous |
- home|
- examples|
- tutorials|
- pyplot|
- docs »
- The Matplotlib API »
- gridspec »

# matplotlib.gridspec.SubplotSpec

class `matplotlib.gridspec.``SubplotSpec`(gridspec, num1, num2=None)

  specifies the location of the subplot in the given GridSpec.

  The subplot will occupy the num1-th cell of the given gridspec. If num2 is provided, the subplot will span between num1-th cell and num2-th cell.

  The index stars from 0.