|
48 | 48 | # so that the figure backgrounds shown by the `matplotlib backend |
49 | 49 | # <https://matplotlib.org/faq/usage_faq#what-is-a-backend>`__ are light gray |
50 | 50 | # (the :rcraw:`savefig.facecolor` applied to saved figures is still white). |
51 | | -# Proplot also controls the appearence of figures in Jupyter notebooks |
| 51 | +# Proplot also controls the appearance of figures in Jupyter notebooks |
52 | 52 | # using the new :rcraw:`inlinefmt` setting, which is passed to |
53 | 53 | # `~proplot.config.config_inline_backend` on import. This |
54 | 54 | # imposes a higher-quality default `"inline" format |
|
232 | 232 | # In other words, if you make a single subplot with ``fig, axs = pplt.subplots()``, |
233 | 233 | # then ``axs[0].method(...)`` is equivalent to ``axs.method(...)``. |
234 | 234 | # * `~proplot.gridspec.SubplotGrid` permits list-like 1D indexing, e.g. ``axs[1]`` |
235 | | -# to return the second subplot. The subplots in the grid are sorted by `number` |
236 | | -# (see :ref:`this page <ug_abc>` for details on changing the `number` order). |
| 235 | +# to return the second subplot. The subplots in the grid are sorted by |
| 236 | +# `~proplot.axes.Axes.number` (see :ref:`this page <ug_abc>` for details |
| 237 | +# on changing the `~proplot.axes.Axes.number` order). |
237 | 238 | # * `~proplot.gridspec.SubplotGrid` permits array-like 2D indexing, e.g. |
238 | 239 | # ``axs[1, 0]`` to return the subplot in the second row, first column, or |
239 | 240 | # ``axs[:, 0]`` to return a `~proplot.gridspec.SubplotGrid` of every subplot |
|
242 | 243 | # |
243 | 244 | # `~proplot.gridspec.SubplotGrid` includes methods for working |
244 | 245 | # simultaneously with different subplots. Currently, this includes |
245 | | -# the `~proplot.gridspec.SubplotGrid` commands |
246 | | -# `~proplot.gridspec.SubplotGrid.format`, |
| 246 | +# the commands `~proplot.gridspec.SubplotGrid.format`, |
247 | 247 | # `~proplot.gridspec.SubplotGrid.panel_axes`, |
248 | 248 | # `~proplot.gridspec.SubplotGrid.inset_axes`, |
249 | 249 | # `~proplot.gridspec.SubplotGrid.altx`, and `~proplot.gridspec.SubplotGrid.alty`. |
|
257 | 257 | # `~proplot.figure.Figure.add_subplot`, a `~proplot.gridspec.SubplotGrid` |
258 | 258 | # containing the numbered subplots is available via the |
259 | 259 | # `proplot.figure.Figure.subplotgrid` property. As with subplots made |
260 | | -# all-at-once, the subplots in the grid are sorted by `number`. |
| 260 | +# all-at-once, the subplots in the grid are sorted by `~proplot.axes.Axes.number`. |
261 | 261 |
|
262 | 262 | # %% |
263 | 263 | import proplot as pplt |
|
353 | 353 | # a "python-style" object-oriented interface with instance-level commands |
354 | 354 | # like `matplotlib.axes.Axes.set_title`, and a "MATLAB-style" interface |
355 | 355 | # that tracks current axes and provides global commands like |
356 | | -# `matplotlib.pyplot.title`. Proplot provides the ``format`` command as an |
| 356 | +# `matplotlib.pyplot.title`. |
| 357 | +# |
| 358 | +# Proplot provides the ``format`` command as an |
357 | 359 | # alternative "python-style" command for formatting a variety of plot elements. |
358 | 360 | # While matplotlib's one-liner commands still work, ``format`` only needs to be |
359 | 361 | # called once and tends to cut down on boilerplate code. You can call |
|
399 | 401 | # See :ref:`this section <ug_config>` for more on rc settings. |
400 | 402 | # |
401 | 403 | # A ``format`` command is available on every figure and axes. |
402 | | -# Notably, `proplot.figure.Figure.format` accepts both figure and axes |
403 | | -# settings (applying them to each numbered subplot by default). Likewise, |
404 | | -# `proplot.axes.Axes.format` accepts both axes and figure settings. |
405 | | -# There is also a `proplot.gridspec.SubplotGrid.format` command |
406 | | -# that can be used to change settings for a subset of subplots |
407 | | -# -- for example, ``axs[:2].format(xtickminor=True)`` |
| 404 | +# `proplot.figure.Figure.format` accepts both figure and axes |
| 405 | +# settings (applying them to each numbered subplot by default). |
| 406 | +# Similarly, `proplot.axes.Axes.format` accepts both axes and figure |
| 407 | +# settings. There is also a `proplot.gridspec.SubplotGrid.format` |
| 408 | +# command that can be used to change settings for a subset of |
| 409 | +# subplots -- for example, ``axs[:2].format(xtickminor=True)`` |
408 | 410 | # turns on minor ticks for the first two subplots (see |
409 | 411 | # :ref:`this section <ug_subplotgrid>` for more on subplot grids). |
410 | | -# |
411 | | -# The below example shows the many different keyword arguments |
412 | | -# accepted by ``format``, and demonstrates how ``format`` can be |
| 412 | +# The below example shows the many keyword arguments accepted |
| 413 | +# by ``format``, and demonstrates how ``format`` can be |
413 | 414 | # used to succinctly and efficiently customize plots. |
414 | 415 |
|
415 | 416 | # %% |
|
0 commit comments