|
298 | 298 | # the `~proplot.constructor.Locator`, `~proplot.constructor.Formatter`, |
299 | 299 | # and `~proplot.constructor.Scale` :ref:`constructor functions <ug_cartesian>`. |
300 | 300 | # You can also call ``format`` for several subplots at once using |
301 | | -# `proplot.figure.Figure.format` or `proplot.figure.SubplotGrid.format` (see below). |
| 301 | +# `proplot.figure.Figure.format` or `proplot.gridspec.SubplotGrid.format` (see below). |
302 | 302 | # |
303 | 303 | # The below example shows the many different keyword arguments accepted by |
304 | 304 | # ``format``, and demonstrates how ``format`` can be used to succinctly and |
|
338 | 338 | # In matplotlib, `~matplotlib.figure.Figure.subplots` returns a 2D `~numpy.ndarray` for |
339 | 339 | # figures with more than one column and row, a 1D `~numpy.ndarray` for single-column or |
340 | 340 | # row figures, or an `~matplotlib.axes.Axes` for single-subplot figures. In ProPlot, |
341 | | -# `~proplot.figure.Figure.subplots` returns a `~proplot.figure.SubplotGrid` that |
| 341 | +# `~proplot.figure.Figure.subplots` returns a `~proplot.gridspec.SubplotGrid` that |
342 | 342 | # unifies these three possible return values: |
343 | 343 | # |
344 | | -# * `~proplot.figure.SubplotGrid` permits array-like 2D indexing, e.g. |
345 | | -# ``axs[1, 0]``. Indexing the `~proplot.figure.SubplotGrid` is similar |
| 344 | +# * `~proplot.gridspec.SubplotGrid` permits array-like 2D indexing, e.g. |
| 345 | +# ``axs[1, 0]``. Indexing the `~proplot.gridspec.SubplotGrid` is similar |
346 | 346 | # to indexing a `~proplot.gridspec.GridSpec`. The result is a |
347 | | -# `~proplot.figure.SubplotGrid` of subplots that occupy the indexed |
| 347 | +# `~proplot.gridspec.SubplotGrid` of subplots that occupy the indexed |
348 | 348 | # `~proplot.gridspec.GridSpec` slot(s). |
349 | | -# * `~proplot.figure.SubplotGrid` permits list-like 1D indexing, e.g. ``axs[0]``. |
| 349 | +# * `~proplot.gridspec.SubplotGrid` permits list-like 1D indexing, e.g. ``axs[0]``. |
350 | 350 | # The default order can be switched from row-major to column-major by passing |
351 | 351 | # ``order='F'`` to `~proplot.ui.subplots`. |
352 | | -# * `~proplot.figure.SubplotGrid` behaves like a scalar when it is singleton. |
| 352 | +# * `~proplot.gridspec.SubplotGrid` behaves like a scalar when it is singleton. |
353 | 353 | # That is, if you make a single subplot with ``fig, ax = pplt.subplots()``, |
354 | 354 | # ``ax[0].method(...)`` is equivalent to ``ax.method(...)``. |
355 | 355 | # |
356 | 356 | # If you added subplots one-by-one with `~proplot.figure.Figure.subplot` or |
357 | | -# `~proplot.figure.Figure.add_subplot`, a `~proplot.figure.SubplotGrid` containing |
| 357 | +# `~proplot.figure.Figure.add_subplot`, a `~proplot.gridspec.SubplotGrid` containing |
358 | 358 | # the numbered subplots is available via the `proplot.figure.Figure.subplotgrid` |
359 | | -# property. `~proplot.figure.SubplotGrid` is especially useful because it lets you |
| 359 | +# property. `~proplot.gridspec.SubplotGrid` is especially useful because it lets you |
360 | 360 | # call ``format``, ``colorbar``, ``legend``, ``panel``, ``inset``, and the various |
361 | 361 | # twin axis commands simultaneously for all subplots in the grid. In the below |
362 | | -# example, we use `~proplot.figure.SubplotGrid.format` command on the grid |
| 362 | +# example, we use `~proplot.gridspec.SubplotGrid.format` command on the grid |
363 | 363 | # returned by `~proplot.ui.subplots` to format several subplots all at once. |
364 | 364 |
|
365 | 365 | # %% |
|
0 commit comments