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.

Axis tick labels do not work with integer float locations

See original GitHub issue

If 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 image

whereas it is correctly displayed for integer position: hv.Curve([(1, 2), (2, 2)]).options(yticks=[(1.3434, 'hi'), (2, 'ho')]) image

The same holds for xticks.

I have holoviews 1.11.3

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
MarcSkovMadsencommented, Aug 25, 2021

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 😃

1reaction
MarcSkovMadsencommented, Aug 25, 2021

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.

Read more comments on GitHub >

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

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