Skip to content

Commit 8c01866

Browse files
authored
Merge pull request #254 from lukelbd/successive-legend-calls
Refactor legend+colorbar internals, support "queueing" and location-based replacements
2 parents c19e637 + bb61827 commit 8c01866

File tree

5 files changed

+1473
-1457
lines changed

5 files changed

+1473
-1457
lines changed

WHATSNEW.rst

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,12 @@ ProPlot v0.7.0 (2021-06-30)
9191
Make the ``Browns1`` map the most colorful/vibrant one, just like ``Greens1`` and
9292
``Blues1``; split up the ``RedPurple`` maps into ``Reds`` and ``Purples``; and add
9393
the ``Yellows`` category from the ``Oranges`` maps (:commit:`8be0473f`).
94-
* Rename `abovetop` keyword for moving title/abc labels above or below top panels,
95-
colorbars, and legends to :rcraw:`title.above` (:commit:`9ceacb7b`).
94+
* Reduce matplotlib conflicts by replacing legends drawn in the same location
95+
rather than drawing two legends (:pr:`254`).
96+
* Until centered-row legends become a class, stop returning the ad hoc background patch,
97+
consistent with inaccessible background patches for inset colorbars (:pr:`254`).
98+
* Rename `abovetop` keyword for moving title/abc labels above top panels, colorbars,
99+
and legends to :rcraw:`title.above` (:commit:`9ceacb7b`).
96100
* Rename seldom-used `Figure` argument `fallback_to_cm` to more understandable
97101
`mathtext_fallback` (:pr:`251`).
98102

@@ -102,6 +106,8 @@ ProPlot v0.7.0 (2021-06-30)
102106
users have a cartopy vs. basemap preference, they probably want to use it globally.
103107
* Add :rcraw:`cartopy.circular` setting for optionally disabling the "circular bounds
104108
on polar projections" feature (:commit:`c9ca0bdd`).
109+
* Add `queue` keyword to `colorbar` and `legend` to support workflow where users
110+
successively add handles to location (:pr:`254`).
105111
* Add `titlebbox` and `abcbbox` as alternatives to `titleborder` and `abcborder`
106112
for "inner" titles and a-b-c labels (:pr:`240`) by `Pratiman Patel`_.
107113
Default behavior uses borders.
@@ -160,6 +166,8 @@ ProPlot v0.7.0 (2021-06-30)
160166
(:pr:`251`).
161167
* Fix issue where "twin" ("alternate") axes content always hidden beneath "parent"
162168
content due to adding as children (:issue:`223`).
169+
* Fix issue where simple `pandas.DataFrame.plot` calls with ``legend=True`` fail
170+
(:pr:`254`, :issue:`198`).
163171
* Fix issue where cannot set `rc.style = 'default'` (:pr:`240`) by `Pratiman Patel`_.
164172
* Fix issue where `get_legend` returns None even with legends present (:issue:`224`).
165173
* Fix issue where `~xarray.DataArray` string coordinates are not extracted from
@@ -210,6 +218,8 @@ ProPlot v0.7.0 (2021-06-30)
210218

211219
.. rubric:: Internals
212220

221+
* Significantly refactor `colorbar` and `legend` code to make more manageable and
222+
expand the "queueing" feature beyond wrappers (:pr:`254`).
213223
* Add prefix ``'proplot_'`` to registered axes "projections" (:commit:`be7ef21e`). More
214224
clear and guards against conflicts with external packages and other mpl versions.
215225

0 commit comments

Comments
 (0)