Jump to content

Talk:Matplotlib

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Connelly (talk | contribs) at 00:58, 14 October 2005 (memory leaks). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

Claim of memory leaks

On the article page, I claimed that "as of October 2005, basic plotting commands in Matplotlib suffer from memory leaks." Someone will probably dispute me on that (or perhaps show how it can be avoided). Here's how I tested for memory leaks:

>>> from pylab import *
>>> plot(range(10000), range(10000))
>>> show()
>>> plot(range(10000), range(10000))
>>> plot(range(10000), range(10000))
>>> plot(range(10000), range(10000))
>>> plot(range(10000), range(10000))
>>> plot(range(10000), range(10000))
>>> plot(range(10000), range(10000))

Note how the process memory usage increases continuously with each new plot command. - Connelly 00:58, 14 October 2005 (UTC)[reply]