Skip to content

Commit f863afd

Browse files
committed
Support background patch format() props passed to __init__
1 parent 0f660de commit f863afd

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

proplot/axes/base.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,9 @@ def __init__(self, *args, **kwargs):
674674
autoshare = kwargs.pop('autoshare', None)
675675
autoshare = _not_none(autoshare, True)
676676
rc_kw, rc_mode = _pop_rc(kwargs)
677-
kw_format = {}
677+
kw_format = _pop_props(kwargs, 'patch') # background properties
678+
if 'zorder' in kw_format: # special case: refers to entire axes
679+
kwargs['zorder'] = kw_format.pop('zorder')
678680
for sig in (self._format_signature, self._format_signature_base):
679681
if sig is not None:
680682
kw_format.update(_pop_params(kwargs, sig))

0 commit comments

Comments
 (0)