Skip to content
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

Fix for AttributeError in _compute_group_range for linked plots #4742

Merged
merged 1 commit into from
Dec 15, 2020
Merged
Changes from all commits
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
6 changes: 4 additions & 2 deletions holoviews/plotting/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -870,14 +870,16 @@ def _compute_group_range(cls, group, elements, ranges, framewise,
prev_ids = prev_frame.traverse(lambda o: id(o))
for d, dranges in dim_ranges:
values = prev_ranges.get(d, {}).get('values', None)
ids = values.get('id')
if values is None:

if values is None or 'id' not in values:
for g, drange in dranges.items():
if d not in prev_ranges:
prev_ranges[d] = {}
prev_ranges[d][g] = drange
continue

ids = values.get('id')

# Filter out ranges of updated elements and append new ranges
merged = {}
for g, drange in dranges['values'].items():
Expand Down