Skip to content

Commit 8987839

Browse files
committed
Minor cleanup of rcsetup and whatsnew
1 parent 54acfb1 commit 8987839

File tree

2 files changed

+27
-20
lines changed

2 files changed

+27
-20
lines changed

WHATSNEW.rst

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,10 @@ Style changes
6060
(:commit:`ba405ac0`). This also silences a matplotlib >= 3.5 deprecation warning.
6161
* Change the default fallback font from the serif font Computer Modern to the
6262
sans-serif font STIX Sans (:commit:`d619b5f2`).
63-
* Change the default font used in ``'$LaTeX equations$'`` from the value of
64-
:rcraw:`font.sans` to STIX Sans (:commit:`5b9029d4`).
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`).
6567
* Use `~proplot.ticker.DiscreteLocator` for major/minor discrete colorbar ticks instead
6668
of `~matplotlib.ticker.FixedLocator` and auto-update the tick selection whenever
6769
the axes is drawn (:commit:`b94a9b1e`, :commit:`92bb937e`, :commit:`302c239e`).
@@ -71,11 +73,14 @@ Style changes
7173

7274
Features
7375
--------
74-
* Adding custom abc and titles (:pr:`294`) by `Pratiman Patel`.
76+
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`.
7580
* Significantly improve "tight layout" performance in geographic plots by skipping
76-
artists with clipping paths/boxes set to the subplot bounds (:commit:`f891e4f0`).
77-
* Add modifiable `proplot.figure.Figure.tight` property to retrieve/change the
78-
tight layout setting (:commit:`46f46c26`).
81+
artists with clipping paths equivalent to the axes patch path (:commit:`f891e4f0`).
82+
* Add modifiable `proplot.figure.Figure.tight` property to retrieve and optionally
83+
toggle the tight layout setting (:commit:`46f46c26`).
7984
* Add top-level `~proplot.ui.subplot` command that returns a figure and a single
8085
subplot, analogous to `~proplot.ui.subplots` (:commit:`8459c24c`).
8186
* Support specifying `transform` keyword arguments as registered cartopy
@@ -128,18 +133,18 @@ Bug fixes
128133
due to a new default date converter (:commit:`63deee21`).
129134
* Fix matplotlib >= 3.4 issue where position of child axes in presence of
130135
subfigures is incorrect (:commit:`9246835f`).
131-
* Fix matplotlib >= 3.4 issue where alternate axes are drawn twice
132-
due to using `~matplotlib.figure.Figure.add_child_axes` and failing to
133-
remove axes from the ``fig._localaxes`` stack (:issue:`303`).
134-
* Fix issue where outer colorbars are drawn twice
135-
due to using both `~matplotlib.figure.Figure.add_subplot` and
136-
`~matplotlib.axes.Axes.add_child_axes` (:issue:`304`).
136+
* Fix matplotlib >= 3.4 issue where alternate axes are drawn twice due to adding them
137+
as child axes and failing to remove from the ``fig._localaxes`` stack (:issue:`303`).
138+
* Fix issue where outer colorbars are drawn twice due to adding them as both
139+
figure-wide axes and child axes (:issue:`304`).
137140
* Fix issue where silently-deprecated `aspect` parameter passed to
138141
`proplot.ui.subplots` is not translated to `refaspect` (:commit:`2406a2ae`).
139142
* Fix issue where `proplot.gridspec.GridSpec.figure` is allowed to change -- instead
140143
raise error that recommends `~proplot.gridspec.GridSpec.copy` (:commit:`d8898f5f`).
141144
* Fix issue where `proplot.gridspec.GridSpec.update` cannot be called
142145
on gridspecs without companion `~proplot.figure.Figure`\ s (:commit:`e69fd041`).
146+
* Fix issues passing pandas datetime coordinates and object-type coordinate
147+
arrays to plotting methods (:issue:`320`).
143148
* Fix issue where list-of-string colors passed to `~proplot.axes.Axes.scatter`
144149
are interpreted as data values (:issue:`316`).
145150
* Fix issue where background properties like `color` and `linewidth` cannot be
@@ -158,6 +163,8 @@ Documentation
158163

159164
* Indicate default values in type-specification rather than
160165
parameter descriptions (:commit:`50546dee`).
166+
* Improve website style: lighter headers, wider text, and no more
167+
clumsy boxes around code literals (:commit:`450ede53`).
161168
* Improve colorbar and legend documentation, expound
162169
added features more carefully (:commit:`43631840`).
163170

proplot/internals/rcsetup.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,14 @@
2222
# colors that were most likely a failed literal string evaluation during startup.
2323
REGEX_NAMED_COLOR = re.compile(r'\A[a-zA-Z0-9:_ -]*\Z')
2424

25+
# Configurable validation settings
26+
# NOTE: These are set to True inside __init__.py
27+
# NOTE: We really cannot delay creation of 'rc' until after registration because
28+
# colormap creation depends on rc['cmap.lut'] and rc['cmap.listedthresh'].
29+
# And anyway to revoke that dependence would require other uglier kludges.
30+
VALIDATE_REGISTERED_CMAPS = False
31+
VALIDATE_REGISTERED_COLORS = False
32+
2533
# Initial synced properties
2634
# NOTE: Important that LINEWIDTH is less than matplotlib default of 0.8.
2735
# In general want axes lines to look about as thick as text.
@@ -150,14 +158,6 @@
150158
)
151159
FONT_KEYS = set() # dynamically add to this below
152160

153-
# Configurable validation settings
154-
# NOTE: These are set to True inside __init__.py
155-
# NOTE: We really cannot delay creation of 'rc' until after registration because
156-
# colormap creation depends on rc['cmap.lut'] and rc['cmap.listedthresh'].
157-
# And anyway to revoke that dependence would require other uglier kludges.
158-
VALIDATE_REGISTERED_CMAPS = False
159-
VALIDATE_REGISTERED_COLORS = False
160-
161161

162162
def _get_default_param(key):
163163
"""

0 commit comments

Comments
 (0)