matplotlib / matplotlib/mplfinance

mplfinance savefig MemoryError

Open
#495 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
Dominant language
Python
Stars
4.4k
Forks
678
PR merge metrics
No merged PRs in 30d

Description

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:

![p1](https://user-images.githubusercontent.com/48607893/149693884-94cba6bd-21c4-4f1a-8d7b-6a1ba67bf5ec.png)

Please give guidance on how to deal with this problem!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported MemoryError after saving nine mplfinance plots in succession, using the example context and screenshot in the issue. Trace the repeated savefig path and determine whether the failure is in mplfinance or Matplotlib; done means documenting or fixing the cause and verifying repeated saves no longer exhaust memory.

Written by the indexing model from the issue text.

Assessment

Tech stack
matplotlib, python
Domain
data-visualization, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.