Skip to content

Commit

Permalink
Fixed unreferenced variable
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Aug 21, 2018
1 parent c1ffe1d commit 96db735
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions holoviews/plotting/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -871,18 +871,19 @@ def _get_range_extents(self, element, ranges, range_type, xdim, ydim, zdim):
elif ydim is None:
y0, y1 = np.NaN, np.NaN

if range_type == 'soft':
z0, z1 = zsrange
elif range_type == 'data':
z0, z1 = zhrange
elif range_type=='combined':
z0, z1 = util.dimension_range(z0, z1, zhrange, zsrange, zpad, self.logz)
elif zdim == 'categorical':
z0, z1 = '', ''
elif zdim is None:
z0, z1 = np.NaN, np.NaN

return (x0, y0, z0, x1, y1, z1) if self.projection == '3d' else (x0, y0, x1, y1)
if self.projection == '3d':
if range_type == 'soft':
z0, z1 = zsrange
elif range_type == 'data':
z0, z1 = zhrange
elif range_type=='combined':
z0, z1 = util.dimension_range(z0, z1, zhrange, zsrange, zpad, self.logz)
elif zdim == 'categorical':
z0, z1 = '', ''
elif zdim is None:
z0, z1 = np.NaN, np.NaN
return (x0, y0, z0, x1, y1, z1)
return (x0, y0, x1, y1)


def get_extents(self, element, ranges, range_type='combined', xdim=None, ydim=None, zdim=None):
Expand Down

0 comments on commit 96db735

Please sign in to comment.