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
[BUG]: px.timeline draws sub-millisecond bars with zero width #5897
Sub-millisecond events, such as a 500 µs event in a process log, disappear from px.timeline because their bars have zero width. A 1.5 ms event is drawn as 1 ms. With pandas, a 1001 ms bar can also be drawn as 1000 ms.
Plotly 7.1.0, main and 6.0.0 give the actual result (Windows, Python 3.12, pandas 3.1 and 2.3). Plotly 5.24.1 gives the expected result.
process_dataframe_timeline calls Narwhals' dt.total_milliseconds(), which drops fractions and can round down with pandas. I have a fix ready and will open a PR for it.
AI disclosure: I used Codex (GPT-6.2 Sol) and Claude Code (Claude Opus 5.5) to find this, Claude Code (Claude Opus 5.5) to write this report, and Codex (GPT-6.2 Sol), Antigravity CLI (Gemini 4 Neon) and a second Claude Code session to review it. I ran the reproducer myself. I read and understood it before posting.
Activity