Skip to content

Commit

Permalink
Further HoloViews API compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Jan 24, 2020
1 parent 3710c8d commit 838e91c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions geoviews/plotting/plot.py
Expand Up @@ -33,9 +33,9 @@ def _get_projection(self, obj):
opts = self._traverse_options(obj, 'plot', ['projection', 'infer_projection'],
[CompositeOverlay, Element],
keyfn=isoverlay, defaults=False)
from_overlay = not all(p is None for p in opts[True]['projection'])
projections = opts[from_overlay]['projection']
infer = any(opts[from_overlay]['infer_projection']) or self.infer_projection
from_overlay = not all(p is None for p in opts.get(True, {}).get('projection', []))
projections = opts.get(from_overlay, {}).get('projection', [])
infer = any(opts.get(from_overlay, {}).get('infer_projection', [])) or self.infer_projection
custom_projs = [p for p in projections if p is not None]

if len(set([type(p) for p in custom_projs])) > 1:
Expand Down

0 comments on commit 838e91c

Please sign in to comment.