Mplfinance: How to set time to close plot window?

Created on 10 Oct 2020  路  3Comments  路  Source: matplotlib/mplfinance

How to set time to close automatically plot window??

Regards

question

Most helpful comment

fig, axlist = mpf.plot(data,block=False,returnfig=True)
plt.pause(interval)
plt.close(fig)

Thanks for the idea. I think I will add a kwarg to pause and close. In the meantime, the above example code should work.

All 3 comments

I do not understand your question. Please provide more detail.

On matplotlib You can:

plt.show(block=False)
plt.pause(3)
plt.close()

and chart will be closed automatically after n seconds.

fig, axlist = mpf.plot(data,block=False,returnfig=True)
plt.pause(interval)
plt.close(fig)

Thanks for the idea. I think I will add a kwarg to pause and close. In the meantime, the above example code should work.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

andresberejnoi picture andresberejnoi  路  6Comments

tmcguire65 picture tmcguire65  路  6Comments

cleitonmoya picture cleitonmoya  路  5Comments

simonholzapfel picture simonholzapfel  路  5Comments

jainraje picture jainraje  路  4Comments