matplotlib / matplotlib/mplfinance

Bug Report: Multiprocessing bug

Open
#161 3 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
4.4k
Forks
678
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
When using multiprocessing the images generated have varying plot sizes and adding a lock to the plot function or plotting in a loop works fine.

**To Reproduce**
Steps to reproduce the behavior:
Plot multiple charts using
python multiprocessing.Pool
map, apply, etc

**Expected behavior**
The generated charts should be the same as the charts generated in a non multiproc

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue with Python multiprocessing.Pool using map or apply, then compare the generated charts with charts made in a loop or with a lock around plotting. Done means multiprocessing produces charts with the same plot sizes as the non-multiprocessing case; the issue provides no named files or tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
matplotlib, python
Domain
data-visualization
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.