Talk:Matplotlib

Latest comment: 5 years ago by Kazkaskazkasako in topic Where the name "matplotlib" comes from?

Claim of memory leaks

edit

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

Yep, someone will dispute you:-). matplotlib by default does not clear the previous plot, so you are adding many equivalent lines to the same plot. memory leaks in matplotlib have been hunted down agressively for many releases: there are FAQs about them and unit tests to detect them. To prevent the so-called leak in your example, set the hold rc property to False., or plor with plot(x,y,hold=False).

May I humbly suggest that you learn matplotlib, read it FAQ, and post to the user's list before posting disparaging comments on the wikipedia. Your, the matplotlib author, John Hunter.

I tried hold(False) and plot(..., hold=False), to no avail. See bug 1366913. Anyway, I probably shouldn't have been complaining about memory leaks in a pre-1.0 library on Wikipedia, so apologies for that, it was rude. - Connelly 09:30, 5 February 2006 (UTC)Reply

The above is original research81.174.255.69 (talk) 13:25, 29 June 2009 (UTC)Reply

Sales pitch?

edit

This article seems a whole lot like a sales pitch to me... -Kevin Holzer

Python 2.6

edit

I am using mathplot with 2.6.2 and it just works (tm) —Preceding unsigned comment added by 91.97.79.3 (talk) 12:39, 1 July 2009 (UTC)Reply

Python 3

edit

The current version of the library (1.1.1) has been ported to python 3.

http://pythonsprints.com/2011/04/8/matplotlib-python-3-thanks-cape-town-group/ — Preceding unsigned comment added by 46.11.12.15 (talk) 13:37, 28 July 2012 (UTC)Reply

"Matplotlib" or "matplotlib"?

edit

Shouldn't it be "Matplotlib" (not "matplotlib")? --Mortense (talk) 08:04, 5 June 2016 (UTC)Reply

Where the name "matplotlib" comes from?

edit

I think if this wiki page would be more complete if someone explains where the name comes from, or short for.

I think the "plot" and "lib" part is quiet esay to understand, the key difficulty is what is mat. Snail123815 (talk) 06:59, 18 December 2018 (UTC)Reply

mathematics plotting library Kazkaskazkasako (talk) 00:32, 30 December 2018 (UTC)Reply