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
Ask anything you want about mplfinance usage, project philosophy and/or priorities, or anything else related to mplfinance.
Display the following animation graph on the tkinter,environment:python3.6 +windows10 desktop
Below is mpf_animation_demo1.py:
importpandasaspdimportmplfinanceasmpfimportmatplotlib.animationasanimationidf=pd.read_csv('data/SPY_20110701_20120630_Bollinger.csv',index_col=0,parse_dates=True)
idf.shapeidf.head(3)
idf.tail(3)
df=idf.loc['2011-07-01':'2011-12-30',:]
fig=mpf.figure(style='charles',figsize=(7,8))
ax1=fig.add_subplot(2,1,1)
ax2=fig.add_subplot(3,1,3)
defanimate(ival):
if (20+ival) >len(df):
print('no more data to plot')
ani.event_source.interval*=3ifani.event_source.interval>12000:
exit()
returndata=df.iloc[0:(20+ival)]
ax1.clear()
ax2.clear()
mpf.plot(data,ax=ax1,volume=ax2,type='candle')
ani=animation.FuncAnimation(fig, animate, interval=250)
mpf.show()
The text was updated successfully, but these errors were encountered:
I would like to have a one or two good mplfinance tkinter demos to post here in the repository, but for me to do it myself I would probably have to spend a full couple of days learning tkinter and creating the demos, and I just don't have that time presently. Hopefully someone reading this who is well versed in tkinter will decide to help our and contribute an example or two to this repository.
Please let me know if the above links help out. All the best. --Daniel
Ask anything you want about mplfinance usage, project philosophy and/or priorities, or anything else related to mplfinance.
Display the following animation graph on the tkinter,environment:python3.6 +windows10 desktop
Below is mpf_animation_demo1.py:
The text was updated successfully, but these errors were encountered: