Skip to content

Commit b82e315

Browse files
committed
Update whatsnew and fix typos
1 parent 66db52a commit b82e315

File tree

5 files changed

+75
-41
lines changed

5 files changed

+75
-41
lines changed

WHATSNEW.rst

Lines changed: 67 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,21 @@ Version 1.0.0 (2022-XX-XX)
2828
This will be published when more comprehensive testing is completed
2929
and stability is improved.
3030

31-
Version 0.10.0 (2021-XX-XX)
31+
Version 0.10.0 (2022-##-##)
3232
===========================
3333

3434
Deprecated
3535
----------
3636

37-
* Rename `rasterize` and :rcraw:`colorbar.rasterize` to `rasterized`,
38-
consistent with the existing matplotlib ``rasterized`` property (:commit:`31efafea`).
39-
* Remove the obscure `proplot.figure.Figure.format` keyword `mathtext_fallback`
40-
(:commit:`5ce23a59`). This can now only be modified with the `rc` dictionary.
37+
* Remove the obscure `proplot.figure.Figure.format` keyword `mathtext_fallback`,
38+
so that :rcraw:`mathtext.fallback` can only be changed globally (:commit:`5ce23a59`).
39+
* Rename `rasterize` and :rcraw:`colorbar.rasterize` to `rasterized`, consistent
40+
with the existing matplotlib ``rasterized`` property (:commit:`31efafea`).
41+
* Rename `basemap` and :rcraw:`basemap` to `backend` and :rcraw:`geo.backend`, which
42+
can take either of the values ``'cartopy'`` or ``'basemap'`` (:commit:`613ab0ea`).
43+
* Rename :rcraw:`cartopy.autoextent`, :rcraw:`cartopy.circular` to :rcraw:`geo.extent`,
44+
:rcraw:`geo.round`, with :rcraw:`geo.extent` taking either of the values ``'globe'``
45+
or ``'auto'`` (``cartopy.autoextent`` is translated when used) (:commit:`c4b93c9d`).
4146
* Improve the `~proplot.gridspec.GridSpec` "panel" obfuscation by
4247
renaming `~proplot.gridspec.GridSpec.get_subplot_geometry` to
4348
`~proplot.gridspec.GridSpec.get_geometry`, `~proplot.gridspec.GridSpec.get_geometry`
@@ -47,23 +52,27 @@ Deprecated
4752
``gs.hratios``, ``gs.wspace``, ``gs.hspace``, ``gs.wpad``, and ``gs.hpad`` refer to
4853
the reduced non-panel geometry (:commit:`52f57094`).
4954
* Deprecate `maxn` and `maxn_minor` passed to `~proplot.axes.Axes.colorbar` and
50-
recommend alternative ``locator_kw={'nbins': n}`` (:commit:`b94a9b1e`).
51-
The new default locator `~proplot.ticker.DiscreteLocator` means these
55+
recommend the alternative ``locator_kw={'nbins': n}`` (:commit:`b94a9b1e`).
56+
The new default locator `~proplot.ticker.DiscreteLocator` means that these
5257
settings should not need to be used as much (see below).
5358

5459
Style changes
5560
-------------
5661

57-
* Disable automatic reversal of dependent variable coordinates when axis limits
58-
are fixed, and add documentation for this feature (:issue:`300`).
59-
* Prevent auto-disabling of gridlines in presence of `pcolor` plots in matplotlib < 3.5
60-
(:commit:`ba405ac0`). This also silences a matplotlib >= 3.5 deprecation warning.
61-
* Change the default fallback font from the serif font Computer Modern to the
62-
sans-serif font STIX Sans (:commit:`d619b5f2`).
63-
* Change the default math text style :rcraw:`mathtext.default` from ``'regular'`` to
64-
``'rm'`` (i.e., upright version of the math fontset), and change the math text fontset
65-
:rcraw:`mathtext.fontset` from ``'custom'`` to ``'stixsans'`` (i.e., use STIX sans
66-
for math text instead of the default sans-serif font) (:commit:`5b9029d4`).
62+
* Disable auto-reversal of dependent variable coordinates when the axis limits
63+
were previously fixed, and add documentation for this feature (:issue:`300`).
64+
* Disable auto-removal of gridlines in presence of `pcolor` plots in all matplotlib
65+
versions and silence the matplotlib 3.5 deprecation warning (:commit:`ba405ac0`).
66+
* Apply the :rcraw:`geo.round` setting when instantiating basemap projections
67+
(previously this was only used for cartopy projections) (:commit:`5f1c67cc`).
68+
* Change :rcraw:`grid.labelpad` from ``4.0`` to ``3.0`` (:commit:`f95b828a`). This
69+
makes cartopy grid labels and polar axes labels a bit more compact.
70+
* Change :rcraw:`mathtext.default` from ``'regular'`` to ``'it'`` and change ``'sans'``
71+
to ``'regular'`` in :rcraw:`mathtext.rm`, :rcraw:`mathtext.sf`, :rcraw:`mathtext.bf`,
72+
and :rcraw:`mathtext.it` (:commit:`323`). See below for details.
73+
* Change the sample `~proplot.demos.show_fonts` text with `math` keyword to show math
74+
or non-math, sort fonts by input order or by their appearance in the `rc` list, and
75+
permit `FontProperties` or fontspec input and property keywords (:commit:`34d6ec14`).
6776
* Use `~proplot.ticker.DiscreteLocator` for major/minor discrete colorbar ticks instead
6877
of `~matplotlib.ticker.FixedLocator` and auto-update the tick selection whenever
6978
the axes is drawn (:commit:`b94a9b1e`, :commit:`92bb937e`, :commit:`302c239e`).
@@ -74,17 +83,23 @@ Style changes
7483
Features
7584
--------
7685

77-
* Support passing abc and title lists to `proplot.axes.Axes.format`, where
78-
the label is picked by indexing the list with `~proplot.axes.Axes.number`
79-
(:pr:`294`) by `Pratiman Patel`.
80-
* Significantly improve "tight layout" performance in geographic plots by skipping
81-
artists with clipping paths equivalent to the axes patch path (:commit:`f891e4f0`).
86+
* Support passing lists for the `proplot.axes.Axes.format` keywords `abc` and `title`,
87+
in which case the label is picked by selecting the `~proplot.axes.Axes.number`
88+
(minus 1) entry from the list (:pr:`294`) by `Pratiman Patel`.
89+
* Move the `extent` and `round` keywords (formerly `autoextent` and `circular` --
90+
see above) from `~proplot.axes.GeoAxes.__init__` to `proplot.axes.GeoAxes.format`,
91+
supporting toggling and passage to e.g. `~proplot.ui.subplots` (:commit:`5f1c67cc`).
92+
* Add :rcraw:`grid.geolabels` setting that auto-includes cartopy >= 0.20 ``'geo'``
93+
location when toggling labels with e.g. ``lonlabels='left'`` or ``labels=True``, and
94+
support passing passing it explicitly with e.g. ``labels='geo'`` (:commit:`9040cde0`).
95+
* Allow using the `~proplot.constructor.Proj` keyword `latlim` as Mercator projection
96+
limits and `lon0`, `lat0` aliases for `lon_0`, `lat_0` (:commit:`5f1c67cc`).
8297
* Add modifiable `proplot.figure.Figure.tight` property to retrieve and optionally
8398
toggle the tight layout setting (:commit:`46f46c26`).
84-
* Add top-level `~proplot.ui.subplot` command that returns a figure and a single
99+
* Add a top-level `~proplot.ui.subplot` command that returns a figure and a single
85100
subplot, analogous to `~proplot.ui.subplots` (:commit:`8459c24c`).
86-
* Support specifying `transform` keyword arguments as registered cartopy
87-
projections rather than `~cartopy.crs.CRS` instances (:commit:`c7a9fc95`).
101+
* Improve performance of the "tight layout" algorithm in geographic plots by skipping
102+
artists clipped by the axes background patch boundary (:commit:`f891e4f0`).
88103
* Permit passing `~proplot.gridspec.GridSpec` instances to
89104
`~proplot.figure.Figure.add_subplots` to quickly draw a subplot
90105
inside each gridspec slot in row or column-major order (:commit:`a9ad7429`).
@@ -107,6 +122,8 @@ Features
107122
as ``'discrete'`` in `proplot.constructor.Locator` (:commit:`b94a9b1e`).
108123
* Auto disable minor colorbar and axis ticks when major ticks have non-numeric
109124
labels set by `~matplotlib.ticker.FixedFormatter` (:commit:`c747ae44`).
125+
* Support specifying `transform` plotting command arguments as registered cartopy
126+
projections rather than `~cartopy.crs.CRS` instances (:commit:`c7a9fc95`).
110127
* Permit passing `vmin` and `vmax` to `proplot.axes.Axes.colorbar`, as quick
111128
alternative to using `norm_kw` (:commit:`eb9565bd`).
112129
* Permit discretizing continuous colormaps passed to `~proplot.axes.Axes.colorbar` using
@@ -115,6 +132,9 @@ Features
115132
instances to `~proplot.axes.Axes.colorbar` (:commit:`503af4be`).
116133
* Emit warning when both a scalar mappable and `vmin`, `vmax`, `norm`, or `values`
117134
are passed to `~proplot.axes.Axes.colorbar` (:commit:`503af4be`).
135+
* Support TeX modifiers :rcraw:`mathtext.it`, :rcraw:`mathtext.bf`, etc. that act on
136+
the "regular" font ``'regular'`` rather than a global font family like ``'sans'``
137+
when :rcraw:`mathtext.fontset` is ``'custom'`` (:pr:`323`).
118138
* Automatically load from "local" folders named ``proplot_cmaps``, ``proplot_cycles``,
119139
``proplot_colors``, and ``proplot_fonts`` in current or parent directories,
120140
consistent with "local" ``proplotrc`` files (:commit:`a3a7bb33`).
@@ -131,10 +151,16 @@ Bug fixes
131151
and colorbars scaled by `proplot.colors.DiscreteNorm` (:issue:`302`).
132152
* Fix matplotlib >= 3.5 issue where date axes are not correctly detected
133153
due to a new default date converter (:commit:`63deee21`).
154+
* Fix matplotlib >= 3.4 issue with fixed-aspect log-log axes due to deprecation
155+
of `~matplotlib.axes.Axes.get_data_ratio_log` (:commit:`29ed6cce`).
134156
* Fix matplotlib >= 3.4 issue where position of child axes in presence of
135157
subfigures is incorrect (:commit:`9246835f`).
136158
* Fix matplotlib >= 3.4 issue where alternate axes are drawn twice due to adding them
137159
as child axes and failing to remove from the ``fig._localaxes`` stack (:issue:`303`).
160+
* Fix cartopy >= 0.20 issue where added projections like ``'wintri'`` fail
161+
due to an ImportError (:issue:`324`).
162+
* Fix cartopy >= 0.20 issue where inline longitude and latitude gridline labels
163+
can no longer be turned on (:issue:`307`).
138164
* Fix issue where outer colorbars are drawn twice due to adding them as both
139165
figure-wide axes and child axes (:issue:`304`).
140166
* Fix issue where silently-deprecated `aspect` parameter passed to
@@ -157,6 +183,10 @@ Bug fixes
157183
`~proplot.colors.DiscreteColormap` incorrectly samples the color list (:issue:`299`).
158184
* Fix issue where setting :rcraw:`legend.facecolor` or :rcraw:`legend.edgecolor` to
159185
``'inherit'`` (or passing as keyword argument) raises error (:issue:`298`).
186+
* Fix issue where settings :rcraw:`grid.pad` and :rcraw:`grid.labelpad` and settings
187+
:rcraw:`tick.pad` and :rcraw:`tick.labelpad` are not synced (:commit:`2b96eb0d`).
188+
* Fix issue where the unchanged :rcraw:`figure.figsize` setting is incorrectly included
189+
in the `~proplot.rconfig.Configurator.changed` dictionary (:commit:`d862395b`).
160190

161191
Documentation
162192
-------------
@@ -722,8 +752,8 @@ Deprecated
722752
* Rename confusing :rcraw:`text.labelsize` and :rcraw:`text.titlesize` settings
723753
to clearer :rcraw:`font.smallsize` and :rcraw:`font.largesize` with shorthands
724754
:rcraw:`font.small` and :rcraw:`font.large` (analogous to :rcraw:`font.size`)
725-
(:pr:`a50d5264`). Previous names were bad because "label size" applies to more than
726-
just axis or tick labels and "title size" applies to more than just axes titles.
755+
(:commit:`a50d5264`). Previous names were bad because "label size" applies to more
756+
than just axis or tick labels and "title size" applies to more than just axes titles.
727757
* Rename :rcraw:`tick.ratio` to :rcraw:`tick.widthratio` and add missing
728758
:rcraw:`tick.width` setting (:commit:`a50d5264`).
729759
* Rename vague shorthands :rcraw:`alpha` and :rcraw:`facecolor` back to native
@@ -793,8 +823,8 @@ Style changes
793823
* Set default linewidth to 0.3 when adding "edges" to filled contours
794824
(:commit:`6382cf91`). This matches matplotlib behavior when passing
795825
edgecolor to a ``pcolor`` command.
796-
* Only modify `heatmap` major and minor tick locations if the
797-
default tickers are active (:pr:`6382cf91`). Do not override user tickers.
826+
* Only modify `heatmap` major and minor tick locations if the default
827+
tickers are active (:commit:`6382cf91`). Do not override user tickers.
798828
* Use default luminance of ``90`` rather than ``100`` for auto-colormaps generated
799829
for barb, scatter, and streamline plots (:commit:`6382cf91`).
800830
* Sync 3D axes figure background color with axes background to avoid weird
@@ -976,10 +1006,10 @@ Features
9761006
ticks with those string labels (:commit:`02fbda45`). This may be a common
9771007
use case for parametric plots.
9781008
* Add `ignore` keyword to omit specific ``show_cmaps``, ``show_cycles``, and
979-
``show_colors`` categories from the tables (:issue:`c45d5fa1`).
1009+
``show_colors`` categories from the tables (:commit:`c45d5fa1`).
9801010
* Allow case-insensitive specification of ``show_cmaps``, ``show_cycles``, and
9811011
``show_colors`` categories and never ignore input colormaps even if they
982-
match an ignored name like ``'jet'`` (:issue:`c45d5fa1`).
1012+
match an ignored name like ``'jet'`` (:commit:`c45d5fa1`).
9831013
* Support restricting cartopy bounds in cartopy 0.19 by leveraging the
9841014
`ylim` `~cartopy.mpl.gridliner.Gridliner` property (:commit:`e190b66c`).
9851015
* Add `xlabelpad`, `ylabelpad`, `xticklabelpad`, `yticklabelpad` keywords
@@ -1491,10 +1521,11 @@ Bug fixes
14911521
Documentation
14921522
-------------
14931523

1494-
* Various improvements to website and API docstrings.
1495-
* Document `proplot.figure.Figure.save` method (:commit:`da25266a`).
1496-
* Darker "dark mode" (:commit:`979c8188`).
1524+
* Various improvements the API docstrings.
1525+
* Improve overall website style (:commit:`89d6f5bd`).
1526+
* Make website "dark mode" darker (:commit:`979c8188`).
14971527
* Prevent website from flashing light mode when changing pages (:commit:`75e4d6a1`).
1528+
* Add documentation for `proplot.figure.Figure.save` method (:commit:`da25266a`).
14981529
* Remove `~proplot.figure.Figure` setters like `set_sharex`, replace with
14991530
read-only properties (:commit:`7b455008`). The getters were only for object
15001531
introspection. The setters never worked properly/were unused in examples.
@@ -1525,6 +1556,8 @@ Deprecated
15251556
* Remove the ``lonstep`` and ``latstep`` settings -- we now use
15261557
`~proplot.ticker.LongitudeLocator` and `~proplot.ticker.LatitudeLocator`
15271558
to select "nice" gridline locations even when zoomed in (:pr:`168`)
1559+
* Rename the ``cartopy.global`` rc setting to ``cartopy.autoextent``
1560+
(:commit:`7c0f118a`) and add an `autoextent` keyword (:commit:`23db0498`).
15281561
* Rename several "error indication" keyword arguments and rename `add_errorbars`
15291562
wrapper to `~proplot.axes.indicate_error` (:pr:`166`, :commit:`d8c50a8d`).
15301563
* Remove ``'rgbcycle'`` setting (:pr:`166`, :commit:`6653b7f0`).

docs/colormaps.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
#
3434
# Proplot defines **continuous colormaps** as color palettes that sample some
3535
# *continuous function* between two end colors. They are generally used
36-
# to encode data values on a pseudo-third dimension. They are are implemented
37-
# with the `~proplot.colors.ContinuousColormap` and
36+
# to encode data values on a pseudo-third dimension. They are implemented
37+
# in proplot with the `~proplot.colors.ContinuousColormap` and
3838
# `~proplot.colors.PerceptualColormap` classes, which are
3939
# :ref:`subclassed from <ug_cmaps_new>`
4040
# `matplotlib.colors.LinearSegmentedColormap`.

docs/conf.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,10 @@
2727
print(', '.join(os.path.basename(font.fname) for font in fontManager.ttflist))
2828

2929

30-
# -- Project information -----------------------------------------------------
31-
32-
_today = datetime.datetime.today()
30+
# -- Project information -------------------------------------------------------
31+
# The basic info
3332
project = 'ProPlot'
34-
copyright = f'{_today.year}, Luke L. B. Davis'
33+
copyright = f'{datetime.datetime.today().year}, Luke L. B. Davis'
3534
author = 'Luke L. B. Davis'
3635

3736
# The short X.Y version

docs/environment.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
# use 3.2.1. Probably lots of basemap holdouts for next ~5 years.
55
# * basemap geography is weird with the geos >= 3.9.0 required by cartopy >=
66
# 0.19, but important to use 0.19 becuase it fixes padding, so live with it.
7+
# * cartopy 0.20 makes grid labels look nicer, but it requires python 3.9.
8+
# will wait a couple years to catch up to them and keep python 3.6 for now.
79
# * pyqt5 is needed by pyplot, RTD server *happens* to already have it
810
# but creating local environment will fail.
911
# * jinja >= 3.0 and nbsphinx >= 0.8.2 seem to break default ReST roles when

docs/projections.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@
184184
# * By default, proplot gives circular boundaries to polar cartopy and basemap
185185
# projections like `~cartopy.crs.NorthPolarStereo` (see `this example
186186
# <https://scitools.org.uk/cartopy/docs/latest/gallery/lines_and_polygons/always_circular_stereo.html>`__
187-
# from the carotpy website). To disable this feature, set :rcraw:`geo.round` to
187+
# from the cartopy website). To disable this feature, set :rcraw:`geo.round` to
188188
# ``False`` or pass ``round=False` to `~proplot.axes.GeoAxes.format`. Please note
189189
# that cartopy cannot add gridline labels to polar plots with circular boundaries.
190190
# * To make things more consistent, the `~proplot.constructor.Proj` constructor

0 commit comments

Comments
 (0)