Skip to content

Commit 8cf24d1

Browse files
committed
Minor docs updates + typo fixes
1 parent 1a6517f commit 8cf24d1

File tree

9 files changed

+37
-36
lines changed

9 files changed

+37
-36
lines changed

docs/basics.py

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
# so that the figure backgrounds shown by the `matplotlib backend
4949
# <https://matplotlib.org/faq/usage_faq#what-is-a-backend>`__ are light gray
5050
# (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
5252
# using the new :rcraw:`inlinefmt` setting, which is passed to
5353
# `~proplot.config.config_inline_backend` on import. This
5454
# imposes a higher-quality default `"inline" format
@@ -232,8 +232,9 @@
232232
# In other words, if you make a single subplot with ``fig, axs = pplt.subplots()``,
233233
# then ``axs[0].method(...)`` is equivalent to ``axs.method(...)``.
234234
# * `~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).
237238
# * `~proplot.gridspec.SubplotGrid` permits array-like 2D indexing, e.g.
238239
# ``axs[1, 0]`` to return the subplot in the second row, first column, or
239240
# ``axs[:, 0]`` to return a `~proplot.gridspec.SubplotGrid` of every subplot
@@ -242,8 +243,7 @@
242243
#
243244
# `~proplot.gridspec.SubplotGrid` includes methods for working
244245
# 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`,
247247
# `~proplot.gridspec.SubplotGrid.panel_axes`,
248248
# `~proplot.gridspec.SubplotGrid.inset_axes`,
249249
# `~proplot.gridspec.SubplotGrid.altx`, and `~proplot.gridspec.SubplotGrid.alty`.
@@ -257,7 +257,7 @@
257257
# `~proplot.figure.Figure.add_subplot`, a `~proplot.gridspec.SubplotGrid`
258258
# containing the numbered subplots is available via the
259259
# `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`.
261261

262262
# %%
263263
import proplot as pplt
@@ -353,7 +353,9 @@
353353
# a "python-style" object-oriented interface with instance-level commands
354354
# like `matplotlib.axes.Axes.set_title`, and a "MATLAB-style" interface
355355
# 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
357359
# alternative "python-style" command for formatting a variety of plot elements.
358360
# While matplotlib's one-liner commands still work, ``format`` only needs to be
359361
# called once and tends to cut down on boilerplate code. You can call
@@ -399,17 +401,16 @@
399401
# See :ref:`this section <ug_config>` for more on rc settings.
400402
#
401403
# 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)``
408410
# turns on minor ticks for the first two subplots (see
409411
# :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
413414
# used to succinctly and efficiently customize plots.
414415

415416
# %%

docs/cartesian.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,8 +359,8 @@
359359
# axis scales now accept the keywords `base`, `linthresh`, `linscale`, and
360360
# `subs` rather than keywords with trailing ``x`` or ``y``.
361361
#
362-
# Proplot also includes a few new axis scales. The ``'cutoff'`` scale (see
363-
# `~proplot.scale.CutoffScale`) is useful when the statistical distribution
362+
# Proplot also includes a few new axis scales. The ``'cutoff'`` scale
363+
# `~proplot.scale.CutoffScale` is useful when the statistical distribution
364364
# of your data is very unusual. The ``'sine'`` scale `~proplot.scale.SineLatitudeScale`
365365
# scales the axis with a sine function (resulting in an area-weighted spherical latitude
366366
# coordinate) and the ``'mercator'`` scale `~proplot.scale.MercatorLatitudeScale`

docs/colorbars_legends.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,9 @@
117117
# or `~proplot.axes.PlotAxes.contour`). To pass keyword arguments to the colorbar
118118
# and legend commands, use the `legend_kw` and `colorbar_kw` arguments (e.g.,
119119
# ``legend_kw={'ncol': 3}``). Note that `~proplot.axes.Axes.colorbar` can also
120-
# build colorbars from lists of arbitrary matplotlib artists, for example the lines
121-
# generated by `~proplot.axes.PlotAxes.plot` (see :ref:`below <ug_colorbars>`).
120+
# build colorbars from lists of arbitrary matplotlib artists, for example the
121+
# lines generated by `~proplot.axes.PlotAxes.plot` or `~proplot.axes.PlotAxes.line`
122+
# (see :ref:`below <ug_colorbars>`).
122123
#
123124
# .. note::
124125
#

docs/colormaps.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -469,14 +469,14 @@
469469
# `HCLWizard <http://hclwizard.org:64230/hclwizard/>`__,
470470
# `HCL picker <http://tristen.ca/hcl-picker/>`__,
471471
# `SciVisColor <https://sciviscolor.org/home/colormaps/>`__,
472-
# and `CCC-tool <https://ccctool.com>`__,
472+
# and `CCC-tool <https://ccctool.com>`__.
473473
#
474474
# To add colormaps downloaded from any of these sources, save the color data file
475475
# to the ``cmaps`` subfolder inside `~proplot.config.Configurator.user_folder`,
476476
# or to a folder named ``proplot_cmaps`` in the same directory as your python session
477477
# or an arbitrary parent directory (see `~proplot.config.Configurator.local_folders`).
478478
# After adding the file, call `~proplot.config.register_cmaps` or restart your python
479479
# session. You can also use `~proplot.colors.ContinuousColormap.from_file` or manually
480-
# pass `~proplot.config.ContinuousColormap` instances or file paths to
480+
# pass `~proplot.colors.ContinuousColormap` instances or file paths to
481481
# `~proplot.config.register_cmaps`. See `~proplot.config.register_cmaps`
482482
# for a table of recognized file extensions.

docs/subplots.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,8 @@
4545
# A-b-c labels
4646
# ------------
4747
#
48-
# Proplot can quickly add "a-b-c" labels to subplots. This is possible because we
49-
# assign a `~proplot.axes.Axes.number` to each subplot.
50-
#
48+
# Proplot can quickly add "a-b-c" labels using the
49+
# `~proplot.axes.Axes.number` assigned to each subplot.
5150
# If you add subplots one-by-one with `~proplot.figure.Figure.add_subplot`, you can
5251
# manually specify the number with the `number` keyword. By default, the subplot number
5352
# is incremented by ``1`` each time you call `~proplot.figure.Figure.add_subplot`.
@@ -213,8 +212,8 @@
213212
# %% [raw] raw_mimetype="text/restructuredtext"
214213
# .. _ug_tight:
215214
#
216-
# Spaces and tight layout
217-
# -----------------------
215+
# Spacing and tight layout
216+
# ------------------------
218217
#
219218
# Proplot automatically adjusts the spacing between subplots
220219
# by default to accomadate labels using its own `"tight layout" algorithm
@@ -319,8 +318,8 @@
319318
# %% [raw] raw_mimetype="text/restructuredtext" tags=[]
320319
# .. _ug_share:
321320
#
322-
# Axis sharing
323-
# ------------
321+
# Axis label sharing
322+
# ------------------
324323
#
325324
# Figures with lots of subplots often have :ref:`redundant labels <why_redundant>`.
326325
# To help address this, the matplotlib command `matplotlib.pyplot.subplots` includes

docs/why.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -808,8 +808,8 @@ string units for these keywords, for the `~proplot.figure.Figure` keywords
808808
`figsize`, `figwidth`, `figheight`, `refwidth`, and `refheight`, and in a
809809
few other places. This is powered by the physical units engine `~proplot.utils.units`.
810810
Acceptable units include inches, centimeters, millimeters,
811-
pixels, `points <https://en.wikipedia.org/wiki/Point_(typography)>`__, `picas
812-
<https://en.wikipedia.org/wiki/Pica_(typography)>`__, and (a table of acceptable
811+
pixels, `points <https://en.wikipedia.org/wiki/Point_(typography)>`__, and `picas
812+
<https://en.wikipedia.org/wiki/Pica_(typography)>`__ (a table of acceptable
813813
units is found :ref:`here <units_table>`). Note the `~proplot.utils.units` engine
814814
also translates rc settings assigned to `~proplot.config.rc_matplotlib` and
815815
`~proplot.config.rc_proplot`, e.g. :rcraw:`subplots.refwidth`,

proplot/axes/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2874,7 +2874,7 @@ def colorbar(self, mappable, values=None, loc=None, location=None, **kwargs):
28742874
@docstring._snippet_manager
28752875
def legend(self, handles=None, labels=None, loc=None, location=None, **kwargs):
28762876
"""
2877-
Add an *inset* legend or *outer* legend along the edge of the axes.
2877+
Add an inset legend or outer legend along the edge of the axes.
28782878
28792879
Parameters
28802880
----------
@@ -3068,7 +3068,7 @@ def _iter_axes(self, hidden=False, children=False, panels=True):
30683068
def number(self):
30693069
"""
30703070
The axes number. This controls the order of a-b-c labels and the
3071-
order of appearence in the `~proplot.gridspec.SubplotGrid` returned
3071+
order of appearance in the `~proplot.gridspec.SubplotGrid` returned
30723072
by `~proplot.figure.Figure.subplots`.
30733073
"""
30743074
return self._number

proplot/figure.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1607,7 +1607,7 @@ def colorbar(
16071607
space=None, pad=None, width=None, **kwargs
16081608
):
16091609
"""
1610-
Draw a colorbar along the side of the figure.
1610+
Add a colorbar along the side of the figure.
16111611
16121612
Parameters
16131613
----------
@@ -1676,7 +1676,7 @@ def legend(
16761676
space=None, pad=None, width=None, **kwargs
16771677
):
16781678
"""
1679-
Draw a legend along the side of the figure.
1679+
Add a legend along the side of the figure.
16801680
16811681
Parameters
16821682
----------

proplot/scale.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ class ExpScale(_Scale, mscale.ScaleBase):
471471
472472
(\log_a(x) - \log_a(C))/b
473473
474-
which in appearence is equivalent to `LogScale` since it is just a linear
474+
which in appearance is equivalent to `LogScale` since it is just a linear
475475
transformation of the logarithm.
476476
"""
477477
#: The registered scale name

0 commit comments

Comments
 (0)