File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -247,6 +247,8 @@ Bug fixes
247
247
`~proplot.colors.DiscreteColormap ` incorrectly samples the color list (:issue: `299 `).
248
248
* Fix issue where `~proplot.axes.Axes.legend ` ignores the user-input `fontsize `
249
249
(:issue: `331 `).
250
+ * Fix issue where passing invalid rc setting to ``.format `` results in persistent
251
+ invalid `rc ` state requiring restarting the session/configurator (:issue: `348 `).
250
252
* Fix issue where ``proplotrc `` settings are ignored if a subsequent line contains
251
253
an overlapping meta-setting (:issue: `333 `).
252
254
* Fix issue where setting :rcraw: `legend.facecolor ` or :rcraw: `legend.edgecolor ` to
Original file line number Diff line number Diff line change @@ -790,7 +790,11 @@ def __enter__(self):
790
790
rc_new = context .rc_new # used for context-based _get_item_context
791
791
rc_old = context .rc_old # used to re-apply settings without copying whole dict
792
792
for key , value in kwargs .items ():
793
- kw_proplot , kw_matplotlib = self ._get_item_dicts (key , value )
793
+ try : # TODO: consider moving setting validation to .context()
794
+ kw_proplot , kw_matplotlib = self ._get_setting_dicts (key , value )
795
+ except ValueError as error :
796
+ self .__exit__ ()
797
+ raise error
794
798
for rc_dict , kw_new in zip (
795
799
(rc_proplot , rc_matplotlib ),
796
800
(kw_proplot , kw_matplotlib ),
You can’t perform that action at this time.
0 commit comments