Axis tick labels do not work with integer float locations
See original GitHub issueIf ticks are set with location and label, label is not used if location is a float that could be converted to integer.
Example:
import holoviews as hv
hv.extension('bokeh')
hv.Curve([(1, 2), (2, 2)]).options(yticks=[(1.3434, 'hi'), (2., 'ho')])
yields
whereas it is correctly displayed for integer position:
hv.Curve([(1, 2), (2, 2)]).options(yticks=[(1.3434, 'hi'), (2, 'ho')])
The same holds for xticks.
I have holoviews 1.11.3
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
How to force integer tick labels - python - Stack Overflow
The idea is to force the tick labels to a .5 spacing, then replace every .5 tick with its integer counterpart, and others...
Read more >Increasing the precision of integer tick labels on a logarithmic ...
I have tried to solve this problem in 2 ways. First: changing the x tick label style with formatting options. See the example...
Read more >Restrict axis ticks labels to only show int values - plotly.js
I have a plot with a y axis. It should only show integer values such as 1,2,3,4. Unfortunately when I zoom in floats...
Read more >How do I control axis tick labels, limits, and axes tick locations?
You can control the placement of the tick marks along an axis using the "xticks", "yticks", and "zticks" functions. Specify the tick mark...
Read more >How xticks and xticklabels Really Work: a Walkthrough
I was recently creating visualizations in Seaborn, which is based on Matplotlib, and when labeling the x-axis, I wasn't getting the results ...
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 FreeTop 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
Top GitHub Comments
No problem. I’m just nudging here so that we can get the Philipp and his gang to focus their energy on fixing the issue instead of understanding, reproducing, making test examples etc. 😃
And again thanks for taking the time to contribute to making HoloViz better for all of us. A well described new issue is a “gift” to a project 👍
ps. screenshots and gifs make it even more clear what the issue is 😃
Hi @Sieboldianus . Thanks for reporting. Please open a new issue. This one has been closed.
And please include a minimum, reproducible example that can run end to end. It will make it much easier for the volunteers and contributors that contribute in their limited spare time to understand, reproduce and fix. Thanks.