Skip to content

Commit

Permalink
make it a no-op if it doesn't include any Chart
Browse files Browse the repository at this point in the history
  • Loading branch information
maximlt committed Apr 17, 2024
1 parent 1195466 commit b3965b4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions holoviews/operation/normalization.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,12 +192,17 @@ class subcoordinate_group_ranges(Operation):
def _process(self, overlay, key=None):
vmins = defaultdict(list)
vmaxs = defaultdict(list)
include_chart = False
for el in overlay:
if not isinstance(el, Chart):
continue
vmin, vmax = el.range(1)
vmins[el.group].append(vmin)
vmaxs[el.group].append(vmax)
include_chart = True

if not include_chart:
return overlay

minmax = {
group: (np.min(vmins[group]), np.max(vmaxs[group]))
Expand Down

0 comments on commit b3965b4

Please sign in to comment.