【发布时间】:2021-10-20 23:24:46
【问题描述】:
我正在使用 mplfinance 模块来绘制烛台图。问题是 mplfinance 在生成绘图时使用了太多内存。我已经尝试了free up the memory used by matplotlib 中提到的说明,但没有任何改变,我的代码仍在填满我的计算机内存。这是我的代码:
fig, axlist = mpf.plot(hloc,hlines=hlines,
ylabel='Price(USDT)',type='candle',
style='binance',title=my_title,closefig=True,returnfig=True)
非常感谢任何建议。
【问题讨论】:
-
请显示您的其余代码。像这样对
mpf.plot()的一次调用应该不会占用太多内存。
标签: python out-of-memory candlestick-chart mplfinance