Skip to content

Commit

Permalink
Drop DataRange1d from BoxWhisker and Violin plots
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Nov 11, 2017
1 parent 51439af commit a404253
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions holoviews/plotting/bokeh/stats.py
Expand Up @@ -60,9 +60,6 @@ class BoxWhiskerPlot(CompositeElementPlot, ColorbarPlot, LegendPlot):
# X-axis is categorical # X-axis is categorical
_x_range_type = FactorRange _x_range_type = FactorRange


# Declare that y-range should auto-range if not bounded
_y_range_type = DataRange1d

# Map each glyph to a style group # Map each glyph to a style group
_style_groups = {'rect': 'whisker', 'segment': 'whisker', _style_groups = {'rect': 'whisker', 'segment': 'whisker',
'vbar': 'box', 'hbar': 'box', 'circle': 'outlier'} 'vbar': 'box', 'hbar': 'box', 'circle': 'outlier'}
Expand All @@ -78,7 +75,7 @@ def get_extents(self, element, ranges):
Extents are set to '' and None because x-axis is categorical and Extents are set to '' and None because x-axis is categorical and
y-axis auto-ranges. y-axis auto-ranges.
""" """
yrange = element.range(element.vdims[0], data_range=False) yrange = ranges.get(element.vdims[0].name)
return ('', yrange[0], '', yrange[1]) return ('', yrange[0], '', yrange[1])


def _get_axis_labels(self, *args, **kwargs): def _get_axis_labels(self, *args, **kwargs):
Expand Down

0 comments on commit a404253

Please sign in to comment.