Plotting time axis misplaced
Open
Nobody has claimed this yet.
bug
- Dominant language
- Python
- Stars
- 9k
- Forks
- 1.5k
- PR merge metrics
- No merged PRs in 30d
Description
I'm watching a misplaced time axis for 1min OHLC candles.
As seen in the image below, the minutes of the time axis do not match with that of the tooltip.
Actual Behavior
Steps to Reproduce
bt = Backtest(1minute_ohlc_candles, Strat)
bt.plot(plot_equity=True, superimpose=False, show_legend=True, plot_return=False, plot_drawdown=False)
- Backtesting version: 0.3.1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with the provided 1-minute OHLC candles and the Backtest.plot() call, then trace the plotting and tooltip time-axis handling. Done means the chart's minute labels align with the tooltip times for this case, with no regression in the other plot options shown.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100