Skip to content

Commit

Permalink
Minor fix for Chart slicing extent setting
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Nov 9, 2015
1 parent d515cf0 commit 7880598
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions holoviews/element/chart.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ def __getitem__(self, index):
lower_bounds, upper_bounds = [None]*ndims, [None]*ndims
for i, slc in enumerate(index[:ndims]):
if isinstance(slc, slice):
lbound = self.extents[i]
ubound = self.extents[ndims:][i]
lower_bounds[i] = lbound if slc.start is None else slc.start
upper_bounds[i] = ubound if slc.stop is None else slc.stop
sliced.extents = tuple(lower_bounds+upper_bounds)
Expand Down

0 comments on commit 7880598

Please sign in to comment.