Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Bad formatting of y axis labels with theme different from standard #11110

Closed
gioarma opened this issue Mar 29, 2021 · 0 comments · Fixed by #11397
Closed

[BUG] Bad formatting of y axis labels with theme different from standard #11110

gioarma opened this issue Mar 29, 2021 · 0 comments · Fixed by #11397

Comments

@gioarma
Copy link

gioarma commented Mar 29, 2021

ALL software version info (bokeh, python, notebook, OS, browser, any other relevant packages)

  • bokeh 2.3.0
  • python 3.8.5
  • jupyterlab 3.0.10
  • macOS Catalina (10.15.7)
  • Google Chrome (89.0.4389.90)

Description of expected behavior and the observed behavior

When using a theme that is different from default, if the data are in sceintific notation along the y axis the numbers overlap with the y axis

Complete, minimal, self-contained example code that reproduces the issue

Using the axample code provided in the docs (https://docs.bokeh.org/en/latest/docs/reference/themes.html)

from bokeh.plotting import figure, output_file, show
from bokeh.themes import built_in_themes
from bokeh.io import curdoc

x = [1, 2, 3, 4, 5]
y = [6e-5, 7e-5, 6e-5, 4e-5, 5e-5]

output_file("caliber.html")
p = figure(title='caliber', plot_width=300, plot_height=300)
p.line(x, y)
show(p)

Schermata 2021-03-29 alle 10 50 47

BUT if I set:

curdoc().theme = 'light_minimal'

The same code yields:
Schermata 2021-03-29 alle 10 50 56

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants