A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://proplot.readthedocs.io/en/latest/api/proplot.gridspec.SubplotGrid.__getitem__.html below:

SubplotGrid.__getitem__ — ProPlot documentation

ProPlot SubplotGrid.__getitem__
SubplotGrid.__getitem__(key)[source]

Get an axes.

Parameters

key (int, slice, or 2-tuple) – The index. If 1D then the axes in the corresponding sublist are returned. If 2D then the axes that intersect the corresponding gridspec slots are returned.

Returns

axs (proplot.axes.Axes or SubplotGrid) – The axes. If the index included slices then another SubplotGrid is returned.

Example

>>> import proplot as pplt
>>> fig, axs = pplt.subplots(nrows=3, ncols=3)
>>> axs[5]  # the subplot in the second row, third column
>>> axs[1, 2]  # the subplot in the second row, third column
>>> axs[:, 0]  # a SubplotGrid containing the subplots in the first column

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4