问题
I'm have some trouble with the DatetimeTickFormatter
object from Bokeh
. Plots randomly won't generate/update.
I have been searching and found this post at Bokeh
, where it states that Plot not shown if DatetimeTickFormatter partially defined. I need some help with how to define it properly. Currently I'm doing this:
from bokeh.models.formatters import DatetimeTickFormatter
from bokeh.plotting import figure
DTF = DatetimeTickFormatter()
DTF.hours = ["%H:%M"]
DTF.days = ["%d/%m/%Y"]
DTF.months = ["%d/%m/%Y"]
DTF.years = ["%d/%m/%Y"]
and
p = figure()
p.xaxis.formatter = DTF
How should I define DTF “properly”?
来源:https://stackoverflow.com/questions/41836196/bokeh-datetimetickformatter