Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Memory leak with pandas plot #9003
Comments
|
pls |
jreback
added the
Visualization
label
Dec 4, 2014
|
did you try this just plotting using matplotlib (taking the same data)? |
alexisglr
commented
Dec 5, 2014
For your second question, with plt.plot(df.index, df.test), it works without memory leak but it can show axis as datetime like for df.test.plot(). |
|
@TomAugspurger can you have a look? |
jreback
added the
Performance
label
Dec 5, 2014
jreback
added this to the
0.16.0
milestone
Dec 5, 2014
|
pandas
matplotlib:
Might be something here. I've never debugged memory usage in python. This might be useful. |
|
this works nicely in IPython: https://pypi.python.org/pypi/memory_profiler |
alexisglr
referenced
this issue
in matplotlib/matplotlib
Dec 15, 2014
Closed
Matplotlib simple case memory leak #3892
|
I think I've identified the leak - the plotted data is being passed between a few functions via
And after:
|
|
The actual cycle is |
|
@alexis0587 @TomAugspurger Could you guys try out my patch in #9307 when you get a chance? |
alexisglr commentedDec 4, 2014
SO : http://stackoverflow.com/questions/27295220/matplotlib-simple-case-memory-leak-with-pandas
Seems to be a leak memory bug with pandas.plot. It works well with plt.plot(df.index, df.test) (see below)
Simple case here :
And the output is (memory error as of i=6):
Graph of the memory for the computer from launch the script to breack and to kill the console.
