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.

Bokeh text_align doesn't work, always centered

See original GitHub issue

While http://holoviews.org/user_guide/Plotting_with_Bokeh.html does show some text_align='center', it turns out this can’t be overridden.

hv.Text(.5, .5, "here is some text").opts(style=dict(text_align='left'))

behaves the same as

hv.Text(.5, .5, "here is some text").opts(style=dict(text_align='center'))

namely:

image

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
philippjfrcommented, Dec 11, 2017

Yes, let’s get back to this when adding the MultiText element or whatever we’ll end up calling it.

0reactions
jlstevenscommented, Dec 11, 2017

In that case we would need a more element-like text annotation before we can start deprecating these things…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bokeh text_align doesn't work, always centered #1757 - GitHub
I have always thought of annotations as a way to capture plot options along with the element, at least for things like text....
Read more >
In Bokeh 1.4.0 `xaxis.major_label_text_align` appears broken
Centering the date on midnight doesn't look right. xaxis.major_label_text_align appears to do nothing. It is supposed to take right , left , and ......
Read more >
Adjust alignment, rotation, and position – Figma Help Center
Learn more about Figma's text alignment options →​​ Use the alignment controls in the right sidebar to align an object to its parent...
Read more >
Running a Bokeh server
Bokeh server makes it easy to create interactive web applications that connect front-end UI events to running Python code. Bokeh creates high-level Python ......
Read more >
Plotting with Bokeh — HoloViews v1.15.3
When HoloViews outputs bokeh plots it creates and manipulates bokeh models in ... alignment in a column and can be set to one...
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