Labels on Axis do not like ":" character ;-)
See original GitHub issueGood 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()
Issue Analytics
- State:
- Created 9 years ago
- Reactions:1
- Comments:26 (22 by maintainers)
Top Results From Across the Web
Change axis labels in a chart - Microsoft Support
Right-click the category axis labels you want to format, and click Font. On the Font tab, choose the formatting options you want. On...
Read more >Stagger long axis labels and make one label stand out in an ...
In the Axis Options section, under Labels, select the Label Position as None. Using the drop down list on the left side of...
Read more >How to change the x-axis labels from a character to a different ...
You need to first suppress the default text labels using xaxt = "n" in your boxplot function (notice at this point that it...
Read more >Escaping special characters into titles/axis labels
The compromise I have settled on for now is to plot the results on the range -1 to 1 and label the axis...
Read more >Individually Formatted Category Axis Labels - Peltier Tech
You might want to highlight one of the labels by bolding it or using a different color. However, the built-in axis labels can...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
We made categoricals great again
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
: