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.

Tick formatting depending on x range

See original GitHub issue

Use case: Timeseries with zooming/unknown X range.

Want to show only dates when I have data of multiple days (but the full timestamps in tooltips), and more fine grained x values if I have data only of a few hours, or I have zoomed.

Easiest solution would be have the axis.x.tick.format function take three arguments value, minValue, maxValue, with the latter specifying the currently shown X range.

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
jonashaagcommented, Dec 3, 2014

How do you update tick values? (in the onzoom function)

Thanks

0reactions
myfbonecommented, Mar 20, 2019

I was wondering if it’s possible now out of box or should I use hack?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Changing the tick frequency on the x or y axis - Stack Overflow
This solution give you explicit control of the tick spacing via the number given to ticker.MultipleLocater() , allows automatic limit determination, and is...
Read more >
Customizing Ticks | Python Data Science Handbook
This section will give several examples of adjusting the tick locations and formatting for the particular plot type you're interested in.
Read more >
Specify Axis Tick Values and Labels - MATLAB & Simulink
Change the tick value locations along the x-axis and y-axis. Specify the locations as a vector of increasing values. The values do not...
Read more >
Formatting ticks in Python - Plotly
Detailed examples of Formatting Ticks including changing color, size, log axes, and more in Python.
Read more >
Tick formatters — Matplotlib 3.6.2 documentation
Tick formatters define how the numeric value associated with a tick on an axis is formatted as a string. This example illustrates the...
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