From 997df05bdc0e9eb65ee3fd88ab6ef1ee5e3a8533 Mon Sep 17 00:00:00 2001
From: Philipp Rudiger
Date: Wed, 5 Oct 2016 15:29:22 +0100
Subject: [PATCH] Fixed extents on bokeh HistogramPlot
---
holoviews/plotting/bokeh/chart.py | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/holoviews/plotting/bokeh/chart.py b/holoviews/plotting/bokeh/chart.py
index 5446e3d8c3..13b5e113a0 100644
--- a/holoviews/plotting/bokeh/chart.py
+++ b/holoviews/plotting/bokeh/chart.py
@@ -231,6 +231,13 @@ def get_data(self, element, ranges=None, empty=None):
self._get_hover_data(data, element, empty)
return (data, mapping)
+ def get_extents(self, element, ranges):
+ x0, y0, x1, y1 = super(HistogramPlot, self).get_extents(element, ranges)
+ y0 = np.nanmin([0, y0])
+ y1 = np.nanmax([0, y1])
+ return (x0, y0, x1, y1)
+
+
class SideHistogramPlot(HistogramPlot, ColorbarPlot):