Skip to content

Commit 2289bcc

Browse files
authored
Merge pull request #91 from lukelbd/rc-cleanup-fixes
Clean up rc_configurator
2 parents df46de0 + 22af8f9 commit 2289bcc

25 files changed

+2629
-1948
lines changed

CHANGELOG.rst

Lines changed: 25 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@ ProPlot v0.5.0 (2020-##-##)
1919
===========================
2020
.. rubric:: Deprecated
2121

22-
- Remove ``subplots.innerspace``, ``subplots.titlespace``,
23-
``subplots.xlabspace``, and ``subplots.ylabspace`` spacing arguments,
24-
automatically calculate default non-tight spacing using `~proplot.subplots._get_space`
25-
based on current tick lengths, label sizes, etc.
2622
- Rename `basemap_defaults` to `~proplot.projs.basemap_kwargs` and `cartopy_projs`
2723
to `~proplot.projs.cartopy_names` (:commit:`431a06ce`).
2824

@@ -32,22 +28,12 @@ ProPlot v0.5.0 (2020-##-##)
3228
*or* `~proplot.subplots.subplots` (:pr:`50`). This is a major improvement!
3329
- `~proplot.subplots.GridSpec` now accepts physical units, rather than having
3430
`~proplot.subplots.subplots` handle the units (:pr:`50`).
35-
- Add `xlinewidth`, `ylinewidth`, `xgridcolor`, `ygridcolor` keyword
36-
args to `~proplot.axes.XYAxes.format` (:pr:`50`).
3731
- Allow "hanging" twin *x* and *y* axes as members of the `~proplot.subplots.EdgeStack`
3832
container. Arbitrarily many siblings are now permitted.
3933
- Use `~proplot.subplots.GeometrySolver` for calculating various automatic layout
4034
stuff instead of having 1000 hidden `~proplot.subplots.Figure` methods (:pr:`50`).
4135
- Use `~proplot.subplots.EdgeStack` class for handling
4236
stacks of colorbars, legends, and text (:pr:`50`).
43-
- `~proplot.rctools.rc` `~proplot.rctools.rc_configurator.__getitem__` always
44-
returns the setting; "caching" can only be used *explicitly* by passing ``cache=True`` to
45-
`~proplot.rctools.rc_configurator.get`, `~proplot.rctools.rc_configurator.fill`, and
46-
`~proplot.rctools.rc_configurator.category` (:pr:`50`).
47-
48-
.. rubric:: Bug fixes
49-
50-
- Fix `~proplot.rctools.rc_configurator.context` fatal bug (:issue:`80`).
5137

5238
.. rubric:: Internals
5339

@@ -56,23 +42,33 @@ ProPlot v0.5.0 (2020-##-##)
5642
- Panels, colorbars, and legends are now members of `~proplot.subplots.EdgeStack`
5743
stacks rather than getting inserted directly into
5844
the main `~proplot.subplots.GridSpec` (:pr:`50`).
59-
- Define `~proplot.rctools.rc` default values with inline dictionaries rather than
60-
with a default ``.proplotrc`` file, change the auto-generated user ``.proplotrc``
61-
(:pr:`50`).
6245

6346
ProPlot v0.4.0 (2020-##-##)
6447
===========================
6548
.. rubric:: Deprecated
6649

6750
- Remove redundant `~proplot.rctools.use_fonts`, use ``rcParams['sans-serif']``
6851
precedence instead (:pr:`95`).
69-
- `~proplot.axes.Axes.dualx` and `~proplot.axes.Axes.dualx` no longer accept "scale-spec" arguments, must be a function, two functions, or an axis scale instance (:pr:`96`).
52+
- `~proplot.axes.Axes.dualx` and `~proplot.axes.Axes.dualx` no longer accept "scale-spec" arguments.
53+
Must be a function, two functions, or an axis scale instance (:pr:`96`).
54+
- Remove ``subplots.innerspace``, ``subplots.titlespace``,
55+
``subplots.xlabspace``, and ``subplots.ylabspace`` spacing arguments,
56+
automatically calculate default non-tight spacing using `~proplot.subplots._get_space`
57+
based on current tick lengths, label sizes, etc.
7058

7159
.. rubric:: Features
7260

7361
- Add Fira Math as DejaVu Sans-alternative (:pr:`95`). Has complete set of math characters.
7462
- Add TeX Gyre Heros as Helvetica-alternative (:pr:`95`). This is the new open-source default font.
75-
- Add `~proplot.subplots.Figure` ``fallback_to_cm`` kwarg. This is used by `~proplot.styletools.show_fonts` to show dummy glyphs to clearly illustrate when fonts are missing characters, but preserve graceful fallback for end user.
63+
- Add `xlinewidth`, `ylinewidth`, `xgridcolor`, `ygridcolor` keyword
64+
args to `~proplot.axes.XYAxes.format` (:pr:`95`).
65+
- Add `~proplot.subplots.Figure` ``fallback_to_cm`` kwarg. This is used by
66+
`~proplot.styletools.show_fonts` to show dummy glyphs to clearly illustrate when fonts are
67+
missing characters, but preserve graceful fallback for end user.
68+
- `~proplot.rctools.rc` `~proplot.rctools.rc_configurator.__getitem__` always
69+
returns the setting. To get context block-restricted settings, you must explicitly pass
70+
``context=True`` to `~proplot.rctools.rc_configurator.get`, `~proplot.rctools.rc_configurator.fill`,
71+
or `~proplot.rctools.rc_configurator.category` (:pr:`91`).
7672

7773
.. rubric:: Bug fixes
7874

@@ -84,7 +80,16 @@ ProPlot v0.4.0 (2020-##-##)
8480
.. rubric:: Documentation
8581

8682
- Imperative mood for docstring summaries (:pr:`92`).
87-
- Fix `~proplot.styletools.show_cycles` bug (:pr:`90`) and show cycles using colorbars rather than lines.
83+
- Fix `~proplot.styletools.show_cycles` bug (:pr:`90`) and show cycles using colorbars
84+
rather than lines.
85+
86+
.. rubric:: Internals
87+
88+
- Define `~proplot.rctools.rc` default values with inline dictionaries rather than
89+
with a default ``.proplotrc`` file, change the auto-generated user ``.proplotrc``
90+
(:pr:`91`).
91+
- Remove useless `panel_kw` keyword arg from `~proplot.wrappers.legend_wrapper` and
92+
`~proplot.wrappers.colorbar_wrapper` (:pr:`91`).
8893

8994
ProPlot v0.3.1 (2019-12-16)
9095
===========================

INSTALL.rst

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,18 @@
11
Installation
22
============
33

4-
ProPlot can be installed with `pip <https://pypi.org>`__ or `conda <https://anaconda-project.readthedocs.io/en/latest/>`__:
4+
ProPlot is published on `PyPi <https://pypi.org/project/proplot/>`__ and `conda-forge <https://conda-forge.org>`__. It can be installed with ``pip`` or ``conda`` as follows:
55

66
.. code-block:: bash
77
88
pip install proplot
9-
10-
.. code-block:: bash
11-
129
conda install -c conda-forge proplot
1310
14-
An existing installation of ProPlot can be upgraded to the latest version with:
11+
Likewise, an existing installation of ProPlot can be upgraded to the latest version with:
1512

1613
.. code-block:: bash
1714
1815
pip install --upgrade proplot
19-
20-
.. code-block:: bash
21-
2216
conda upgrade proplot
2317
2418

README.rst

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,20 @@ A comprehensive, easy-to-use `matplotlib <https://matplotlib.org/>`__ wrapper fo
88
Installation
99
============
1010

11-
ProPlot can be installed with `pip <https://pypi.org>`__ or `conda <https://anaconda-project.readthedocs.io/en/latest/>`__:
11+
ProPlot is published on `PyPi <https://pypi.org/project/proplot/>`__ and `conda-forge <https://conda-forge.org>`__. It can be installed with ``pip`` or ``conda`` as follows:
1212

1313
.. code-block:: bash
1414
1515
pip install proplot
16-
17-
.. code-block:: bash
18-
1916
conda install -c conda-forge proplot
2017
21-
An existing installation of ProPlot can be upgraded to the latest version with:
18+
Likewise, an existing installation of ProPlot can be upgraded to the latest version with:
2219

2320
.. code-block:: bash
2421
2522
pip install --upgrade proplot
26-
27-
.. code-block:: bash
28-
2923
conda upgrade proplot
3024
31-
3225
If you used ``pip install git+https://github.com/lukelbd/proplot.git`` to install ProPlot before it was released on PyPi, you may need to run ``pip uninstall proplot`` before upgrading.
3326
To install a development version of ProPlot, you can use this same method, or clone the repository and run ``pip install --upgrade .`` inside the ``proplot`` folder.
3427

0 commit comments

Comments
 (0)