Skip to content

Commit

Permalink
Allow bbox for label_props
Browse files Browse the repository at this point in the history
  • Loading branch information
Chilipp committed Mar 23, 2017
1 parent 5fc31a5 commit bc93ab4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions psy_simple/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,8 +388,11 @@ def update(self, fontprops):
# at the same time)
if not self._todefault:
for key in fontprops:
self.default_props.setdefault(
key, getattr(text, 'get_' + key)())
if key == 'bbox':
default = dict(facecolor='none', edgecolor='none')
else:
default = getattr(text, 'get_' + key)()
self.default_props.setdefault(key, default)
else:
fontprops = self.default_props.copy()
self.default_props.clear()
Expand Down

0 comments on commit bc93ab4

Please sign in to comment.