From 9889d780cf02b4eb9a80b53c70a71dc1272493f4 Mon Sep 17 00:00:00 2001
From: Philipp Rudiger
Date: Wed, 10 Oct 2018 14:19:04 +0100
Subject: [PATCH] Fixed bug in HLine/VLine datetime handling
---
holoviews/plotting/bokeh/annotation.py | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/holoviews/plotting/bokeh/annotation.py b/holoviews/plotting/bokeh/annotation.py
index 1b13ce5620..d0efcc1669 100644
--- a/holoviews/plotting/bokeh/annotation.py
+++ b/holoviews/plotting/bokeh/annotation.py
@@ -14,13 +14,13 @@
arrow_end = {'->': NormalHead, '-[': OpenHead, '-|>': NormalHead,
'-': None}
-from ...core.util import datetime_types, dimension_sanitizer, basestring
+from ...core.util import dimension_sanitizer, basestring
from ...element import HLine
from ..plot import GenericElementPlot
from .element import (ElementPlot, CompositeElementPlot, ColorbarPlot,
text_properties, line_properties)
from .plot import BokehPlot
-from .util import date_to_integer
+
class TextPlot(ElementPlot):
@@ -126,8 +126,6 @@ def get_data(self, element, ranges, style):
dim = 'width' if dim == 'height' else 'height'
mapping['dimension'] = dim
loc = element.data
- if isinstance(loc, datetime_types):
- loc = date_to_integer(loc)
mapping['location'] = loc
return (data, mapping, style)