GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — [Bug]: High memory usage in `Figure.savefig` · Issue #29434 · matplotlib/matplotlib Open Labels DescriptionBug summaryWhen saving figures with large data images ( Code for reproduction#!/usr/bin/env -S uv run --with humanize --with numpy --with "matplotlib==3.10" import tracemalloc import humanize import matplotlib.pyplot as plt import numpy as np tracemalloc.start() fig, ax = plt.subplots() ax.imshow(np.zeros((10_000, 10_000))) fig.savefig("test.png") _, peak = tracemalloc.get_traced_memory() print(f"Memory usage peaked at {humanize.naturalsize(peak)}") Actual outcomeExpected outcomeThis is the result when the shebang in the code example is changed to "matplotlib<3.10", or when the Additional informationMay be related to #28904, although switching the backend to Cairo doesn't affect the results. Operating systemArch Matplotlib Version3.10.0 Matplotlib Backendagg Python versionPython 3.13.0 Jupyter versionNo response InstallationNone Activity
MetadataMetadataAssigneesLabelsTypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |