mplfinance
mplfinance copied to clipboard
mplfinance savefig MemoryError
Hi, Happy new year!
MplFinance very nice! It brings great convenience to my work! Thank you for your hard work!
However, when savfig several times, a memory error occurs, The current test is an error after savfig 9 pictures in succession,as shown in the figure below:
Please give guidance on how to deal with this problem!
If you are saving many figures, without exiting your program, you must use matplotlib Agg backend. Near the very beginning of your code, do the following:
import matplotlib
matplotlib.use("Agg")