Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Memory issue when plotting large arrays with pcolormesh #3095

Closed
@DPeterK

Description

@DPeterK

Plotting large-ish arrays using pcolormesh with current (e2c5918) matplotlib master looks like it might have a memory leak. Running the following code on matplotlib v1.3.1 produces a QuadMesh in approximately a second. However running the same code on matplotlib master floods the memory until either the pcolormesh call is aborted or it runs out of memory.

import matplotlib.pyplot as plt
import numpy as np

data = np.random.rand(3000*3000).reshape(3000, 3000)
plt.pcolormesh(data)
plt.show()

Metadata

Metadata

Assignees

Labels

Release criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.status: confirmed bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions