-
-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Two axes with different intervals #519
Comments
You can fill in null data in the missing time intervals on the second dataframe, then you should be able to display them in the same axis. |
Thank your for your lightning speed reply. I tried that before and i receive "Segmentation fault: 11". I uploaded the used df just in case. this function is used when the errors occurs: fplt.plot(df['pivot_point'], ax=ax, style='o-', color='#ff00ff') |
There is no timestamp on your data. Is this intended? The |
my bad. the df has been indexed after timestamp. df.to_csv doesnt inherit timestamp indexing. I adjusted to normal indexing and inserted timestamp as a column (see dv.csv). |
That sounds like I'm supplying Qt with some bad data, or possibly a bug in Qt. Any chance you could create a minimal example with only the plot call and only the data causing the error? |
I can not currently recreate the error in a single file. I will take some more time to do that. However, going to my main question, how can we align both plots on timestamp x? I provided the csv and the py to show you. Code startimport finplot as fplt data = pd.read_csv('data.csv', parse_dates=['timestamp']) fplt.candlestick_ochl(data[['open', 'close', 'high', 'low']], ax=ax) fplt.show() |
Replace |
Hello,
my question is, how can finplot plot two different df which both have different intervals. Also the second df has no real interval, but sporadic values. I managed to plot both, but both ax do not align. The second df is currently being plotted with equal x spacing between rows, although the timestamp significantly varies between each one.

The text was updated successfully, but these errors were encountered: