question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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()

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Reactions:1
  • Comments:26 (22 by maintainers)

github_iconTop GitHub Comments

4reactions
bryevdvcommented, Aug 8, 2017

WAAAAATTTTTTT - well done team.

We made categoricals great again

1reaction
bryevdvcommented, Apr 2, 2016

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 :

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found