Skip to content

Commit

Permalink
Legend fix for None-handles
Browse files Browse the repository at this point in the history
  • Loading branch information
lukelbd committed Nov 26, 2019
1 parent 544c544 commit c64eae3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions proplot/wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2198,9 +2198,11 @@ def legend_wrapper(self,
self.add_artist(leg)
leg.legendPatch.update(outline) # or get_frame()
for obj in leg.legendHandles:
obj.update(kw_handle)
if isinstance(obj, martist.Artist):
obj.update(kw_handle)
for obj in leg.get_texts():
obj.update(kw_text)
if isinstance(obj, martist.Artist):
obj.update(kw_text)
# Draw manual fancy bounding box for un-aligned legend
# WARNING: The matplotlib legendPatch transform is the default transform,
# i.e. universal coordinates in points. Means we have to transform
Expand Down

0 comments on commit c64eae3

Please sign in to comment.