bokeh: Labels on Axis do not like ":" character ;-)

Good afternoon,

While settings label axis with character “:”, labels was not displayed on the screen. My need was to display time (format H:M:S) as xaxis label. Nothing change if I add x_axis_type = “datetime”.

Many thanks for Bokeh library and your works …

Pegase92

Code example that is running correctly :

from bokeh.plotting import *
output_file("boxplot.html")
figure()
hold()
Etiquette=['A','B','C','D','E']

segment(Etiquette,[0,0,0,0,0,0,0,0,0,0,0],Etiquette,[-1,2,3,2,0],x_range=Etiquette,line_width=2, line_color="black",plot_width=1200,plot_height=500)  

rect(x=Etiquette,y=[-.5,1,1.5,1,0],width=0.5,height=[-1,2,3,2,0],fill_color='blue',plot_width=1200,plot_height=500,tools=TOOLS)

show()

Code example that is not running correctly (xaxis labels are not displayed) :

from bokeh.plotting import *
output_file("boxplot.html")
figure()
hold()
Etiquette=['00:00:00-00:00:01','00:00:01-00:00:02','00:00:02-00:00:03','00:00:03-00:00:04','00:00:04-00:00:05']

segment(Etiquette,[0,0,0,0,0,0,0,0,0,0,0],Etiquette,[-1,2,3,2,0],x_range=Etiquette,line_width=2, line_color="black",plot_width=1200,plot_height=500)  

rect(x=Etiquette,y=[-.5,1,1.5,1,0],width=0.5,height=[-1,2,3,2,0],fill_color='blue',plot_width=1200,plot_height=500,tools=TOOLS)

show()

About this issue

  • Original URL
  • State: closed
  • Created 13 years ago
  • Reactions: 1
  • Comments: 26 (21 by maintainers)

Most upvoted comments

Long term solution is to support nested coordinate systems, which is seprate work. This issue should be considered restricted to track an effort on the short-term fix: to make the separator optionally configurable to something other than :