Closed MarcoTrevisiol closed 8 months ago
You can set your plot.resamp = None
temporarily to circumvent the issue, and I'll have a look when I have time. Please keep this issue opened, thanks!
Nice catch, sorry about the delay. Fix in 86469fd.
Now it is working! Thank you very much!
Requirements
pip install -U finplot
).Code to reproduce
Describe the bug
Application crush when attempting to plot two volumes in the same ax, when there is enough data to issue a resample.
The above example gets me the following exception:
Findings
The problem is caused by the method PandasDataSource._resample, only when there is more than "lod_candles" in ._rows method, and only when I added the second volume chart. The problem with such method is due to a mismatch between the resample procedure and the computation of the "colidxs" on the basis of "self.col_data_offset", which works correctly if "df" is not resampled.
I think it should be easy to correct this bug by resampling every columns in "df" and not only the required columns, but I do not know the implications of such a change.
Reproducible in:
OS: Windows 11 (conda installation) finplot version: 1.9.4 pyqtgraph version: 0.13.4 pyqt version: 6.4.0