Create a subplot at a specific location inside a regular grid.
Number of rows and of columns of the grid in which to place axis.
Row number and column number of the axis location within the grid.
Number of rows for the axis to span downwards.
Number of columns for the axis to span to the right.
Figure
, optional
Figure to place the subplot in. Defaults to the current figure.
Additional keyword arguments are handed to add_subplot
.
Axes
The Axes of the subplot. The returned Axes can actually be an instance of a subclass, such as projections.polar.PolarAxes
for polar projections.
Notes
The following call
ax = subplot2grid((nrows, ncols), (row, col), rowspan, colspan)
is identical to
fig = gcf() gs = fig.add_gridspec(nrows, ncols) ax = fig.add_subplot(gs[row:row+rowspan, col:col+colspan])
matplotlib.pyplot.subplot2grid
#
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