GridSpec.__getitem__

GridSpec.__getitem__(key)[source]

Get a SubplotSpec. Slots allocated for axes panels, colorbars, and legends are ignored. For example, given a gridspec with 3 subplot rows, 3 subplot columns, and 3 “bottom” panel rows, calling gs[1, 1] returns a SubplotSpec corresponding to the second subplot row and column rather than a panel row or column.