From 8ad686f9c7f413b2d6323ad274d04dd991a983e0 Mon Sep 17 00:00:00 2001 From: Philipp Rudiger Date: Wed, 10 Oct 2018 20:00:56 +0100 Subject: [PATCH] Fixed bug in HLine/VLine datetime handling (#3075) --- 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 03674316ae..0d12a77840 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)