Skip to content

Commit 74fd33e

Browse files
committed
Minor docs cleanup
1 parent 6ea48d5 commit 74fd33e

File tree

4 files changed

+38
-20
lines changed

4 files changed

+38
-20
lines changed

WHATSNEW.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,13 +203,15 @@ Bug fixes
203203
sides ignored due to using booleans instead of ``'x'``, ``'y'`` (:commit:`2ac40715`).
204204
* Fix cartopy >= 0.18 issue where longitude gridlines and labels 360 degrees east of
205205
gridlines on the left edge of the map are unnecessarily removed (:commit:`bcf4fde3`).
206-
* Fix cartopy <= 0.17 issue where longitude gridlines and labels east of dateline are
206+
* Fix cartopy < 0.18 issue where longitude gridlines and labels east of dateline are
207207
not drawn, and remove outdated gridliner monkey patches (:commit:`aa51512b`).
208208
* Fix issue where tight layout algorithm can fail when labels from another subplot
209209
span over an empty gridspec slot (:issue:`313`).
210210
* Fix issue where tight layout algorithm fails in the presence of subplots
211211
with overlapping or identical subplotspecs (:commit:`87f098b6`).
212-
* Fix issue where `proplot.axes.Cartesian.format` keyword arguments cannot be
212+
* Fix issue where super label settings (e.g. size) cannot be updated after they
213+
are initially created (:commit:`2cd72fd3`).
214+
* Fix issue where `proplot.axes.CartesianAxes.format` keyword arguments cannot be
213215
passed to `~proplot.axes.Axes.panel_axes` (:commit:`1b3d0d48`).
214216
* Fix issue where outer colorbars are drawn twice due to adding them as both
215217
figure-wide axes and child axes (:issue:`304`).

docs/colorbars_legends.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -290,19 +290,19 @@
290290
# are restricted based on the axis length using `~proplot.ticker.DiscreteLocator`.
291291
# You can easily toggle minor ticks using ``tickminor=True``.
292292
#
293-
# The geometry of colorbars is also better constrained in proplot. You can set
294-
# the colorbar width in :ref:`physical units <ug_units>` using the `width` keyword
295-
# (physical units help avoid the common issue where colorbars appear "too skinny"
296-
# or "too fat" and preserves their appearance when the figure size changes).
297-
# The default widths for outer and inset colorbars are controlled with
298-
# :rcraw:`colorbar.width` and :rcraw:`colorbar.insetwidth`. Similarly, you can
299-
# control the colorbar length with the `length` keyword. The default length
300-
# for inset colorbars is controlled by :rcraw:`colorbar.insetlength`, and the
301-
# outer colorbar length is always relative to the subplot grid with a default of ``1``.
302-
# You can also specify the size of the colorbar "extensions" in physical units rather
293+
# Similar to :ref:`axes panels <ug_panels>`, the geometry of proplot colorbars is
294+
# specified with :ref:`physical units <ug_units>` (this helps avoid the common issue
295+
# where colorbars appear "too skinny" or "too fat" and preserves their appearance
296+
# when the figure size changes). You can specify the colorbar width locally using the
297+
# `width` keyword or globally using the :rcraw:`colorbar.width` setting (for outer
298+
# colorbars) and the :rcraw:`colorbar.insetwidth` setting (for inset colorbars).
299+
# Similarly, you can specify the colorbar length locally with the `length` keyword or
300+
# globally using the :rcraw:`colorbar.insetlength` setting. The outer colorbar length
301+
# is always relative to the subplot grid and always has a default of ``1``. You
302+
# can also specify the size of the colorbar "extensions" in physical units rather
303303
# than relative units using the `extendsize` keyword rather than matplotlib's
304-
# `extendfrac`. The default sizes for outer and inset colorbars are
305-
# controlled by :rcraw:`colorbar.extend` and :rcraw:`colorbar.insetextend`.
304+
# `extendfrac`. The default `extendsize` values are :rcraw:`colorbar.extend` (for
305+
# outer colorbars) and :rcraw:`colorbar.insetextend` (for inset colorbars).
306306
# See `~proplot.axes.Axes.colorbar` for details.
307307

308308
# %%

docs/configuration.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ you can simply omit the dots. For example, to change the
6666
fig, ax = pplt.subplots()
6767
ax.format(titleloc=value)
6868
69+
.. _ug_rcmatplotlib:
70+
6971
Matplotlib settings
7072
-------------------
7173

@@ -82,7 +84,7 @@ Proplot settings
8284

8385
Proplot settings are natively stored in the `~proplot.config.rc_proplot` dictionary.
8486
They should almost always be changed with `~proplot.config.rc` rather than
85-
`~proplot.config.rc_proplot` to ensure that :ref:`meta-settings <ug_meta>` are
87+
`~proplot.config.rc_proplot` to ensure that :ref:`meta-settings <ug_rcmeta>` are
8688
synced. These settings are not found in `~matplotlib.rcParams` -- they either
8789
control proplot-managed features (e.g., a-b-c labels and geographic gridlines)
8890
or they represent existing matplotlib settings with more clear or succinct names.
@@ -109,7 +111,7 @@ Here's a broad overview of the new settings:
109111
* The ``land``, ``ocean``, ``rivers``, ``lakes``, ``borders``, and ``innerborders``
110112
categories control geographic content managed by `~proplot.axes.GeoAxes`.
111113

112-
.. _ug_meta:
114+
.. _ug_rcmeta:
113115

114116
Meta-settings
115117
-------------
@@ -147,6 +149,8 @@ Here's a broad overview of the "meta-settings":
147149
* Setting :rcraw:`title.border` or :rcraw:`abc.border` to ``True`` automatically
148150
sets :rcraw:`title.bbox` or :rcraw:`abc.bbox` to ``False``, and vice versa.
149151

152+
.. _ug_rctable:
153+
150154
Table of settings
151155
-----------------
152156

docs/why.rst

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -820,6 +820,12 @@ Links
820820

821821
* For more on physical units,
822822
see :ref:`this page <ug_units>`.
823+
* For more on `~proplot.gridspec.GridSpec` spacing units,
824+
see :ref:`this page <ug_tight>`
825+
* For more on colorbar width units,
826+
see :ref:`this page <ug_colorbar>`,
827+
* For more on panel width units,
828+
see :ref:`this page <ug_panels>`,
823829

824830
.. _why_rc:
825831

@@ -840,7 +846,7 @@ Changes
840846
In proplot, you can use the `~proplot.config.rc` object to change both native
841847
matplotlib settings (found in `~proplot.config.rc_matplotlib`) and added proplot
842848
settings (found in `~proplot.config.rc_proplot`). Assigned settings are always
843-
validated, and special settings like ``meta.edgecolor``, ``meta.linewidth``, and
849+
validated, and "meta" settings like ``meta.edgecolor``, ``meta.linewidth``, and
844850
``font.smallsize`` can be used to update many settings all at once. Settings can
845851
be changed with ``pplt.rc.key = value``, ``pplt.rc[key] = value``,
846852
``pplt.rc.update(key=value)``, using `proplot.axes.Axes.format`, or using
@@ -854,8 +860,14 @@ Links
854860

855861
* For an introduction,
856862
see :ref:`this page <ug_rc>`.
857-
* For more on global settings,
863+
* For more on changing settings,
858864
see :ref:`this page <ug_config>`.
865+
* For more on proplot settings,
866+
see :ref:`this page <ug_rcproplot>`.
867+
* For more on meta settings,
868+
see :ref:`this page <ug_rcmeta>`.
869+
* For a table of the new settings,
870+
see :ref:`this page <ug_rctable>`.
859871

860872
.. _why_dotproplot:
861873

@@ -866,8 +878,8 @@ Limitation
866878
----------
867879

868880
Matplotlib `~matplotlib.rcParams` can be changed persistently by placing
869-
``matplotlibrc`` files in the same directory as your python script. But it
870-
can be difficult to design and store your own colormaps and color cycles for
881+
:ref:`matplotlibrc <ug_mplrc>` files in the same directory as your python script.
882+
But it can be difficult to design and store your own colormaps and color cycles for
871883
future use. It is also difficult to get matplotlib to use custom ``.ttf`` and
872884
``.otf`` font files, which may be desirable when you are working on
873885
Linux servers with limited font selections.

0 commit comments

Comments
 (0)