Skip to content

Re-instate BboxConnectorPatch fill #8075

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 5 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Check for facecolor and color
  • Loading branch information
dstansby committed Feb 21, 2017
commit b843f9c3ca728bc4f3e07b72111d0aefd132e2e7
5 changes: 4 additions & 1 deletion lib/mpl_toolkits/axes_grid1/inset_locator.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from matplotlib.path import Path
from matplotlib.transforms import Bbox, BboxTransformTo
from matplotlib.transforms import IdentityTransform, TransformedBbox
import matplotlib.cbook as cbook

from . import axes_size as Size
from .parasite_axes import HostAxes
Expand Down Expand Up @@ -312,7 +313,9 @@ def __init__(self, bbox1, bbox2, loc1, loc2=None, **kwargs):
raise ValueError("transform should not be set")

kwargs["transform"] = IdentityTransform()
fill = 'fc' in kwargs
_alias_map = {'color': ['c'], 'facecolor': ['fc']}
kwargs = cbook.normalize_kwargs(kwargs, _alias_map)
fill = ('color' in kwargs) or ('facecolor' in kwargs)
Patch.__init__(self, fill=fill, **kwargs)
self.bbox1 = bbox1
self.bbox2 = bbox2
Expand Down