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] ColorBar tick labels display inappropriate precision #12618
Comments
This will need some investigation into what scenarios give good results and what give bad results. I suspect it is only |
Probably you're looking for a different tick formatter, the same as you would do with any other kind axis. Or do you want fewer ticks in general? |
The number of ticks seems fine to me, but I think the precision should be limited to whatever is needed to distinguish each tick from the others. I think the example above is an unusual worst case where very many decimal points are needed to distinguish values; a more typical one has ticks like 0.239, 1.980, 10.254, 100.897 where what is most useful for the user would be 0.2, 2.0, 10.2, and 100.9, i.e. enough to clearly indicate that each tick is a different level without being meaninglessly precise. |
Software versions
Python version : 3.10.6 | packaged by conda-forge | (main, Aug 22 2022, 20:41:22) [Clang 13.0.1 ]
IPython version : 8.5.0
Tornado version : 6.2
Bokeh version : 3.0.0+29.ga35573f0
BokehJS static path : /Users/iant/github/bokeh/src/bokeh/server/static
node.js version : v18.11.0
npm version : 8.19.2
Operating system : macOS-12.6.1-arm64-arm-64bit
Browser name and version
No response
Jupyter notebook / Jupyter Lab version
No response
Expected behavior
Better choice of numerical precision to display tick labels.
Observed behavior
Example code
Stack traceback or browser console output
No response
Screenshots
No response
The text was updated successfully, but these errors were encountered: