You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
x axis ticks are misaligned in bar charts that have more than 10 ticks #5086
Here is how matplotlib handles this situation, for instance:
They always generate ticks at a regular interval: 1 tick for every bar, then 1 every 2 bars, then 5, then 10...
They do not necessarily have a tick below both the first and the last bar.
Every tick always falls exactly below a bar.
Activity
lovasoa commentedon Aug 4, 2025
Here is how matplotlib handles this situation, for instance:
They always generate ticks at a regular interval: 1 tick for every bar, then 1 every 2 bars, then 5, then 10...
They do not necessarily have a tick below both the first and the last bar.
Every tick always falls exactly below a bar.