Re: [Matplotlib-users] to much points

2009-07-03 Thread Markus Feldmann
Michael Droettboom schrieb: > This should now be fixed on the maintenance branch and trunk. A Numpy > array allocation was not being NULL-checked in _path.cpp:affine_transform. > > I know a MemoryError doesn't help the user much more than a segfault, > but it always makes me feel better to get

Re: [Matplotlib-users] to much points

2009-07-01 Thread Michael Droettboom
This should now be fixed on the maintenance branch and trunk. A Numpy array allocation was not being NULL-checked in _path.cpp:affine_transform. I know a MemoryError doesn't help the user much more than a segfault, but it always makes me feel better to get a real Python exception rather than

Re: [Matplotlib-users] to much points

2009-07-01 Thread Jae-Joon Lee
I tracked this down do line 962 of the _path.cpp. double* vertex_out = (double*)PyArray_DATA(result); My guess is that PyArray_SimpleNew at line 957 returns NULL for a memory error instead of raising an exception, which makes result=NULL and causes a segfault at line 962. Since I'm n

Re: [Matplotlib-users] to much points

2009-07-01 Thread Jae-Joon Lee
On Wed, Jul 1, 2009 at 2:34 PM, Michael Droettboom wrote: > I agree with Jae-Joon here -- try to reduce the number of points before > passing it to matplotlib. > > However, I'm a little concerned about the segfault -- I'd rather matplotlib > give a MemoryError exception if that's in fact what is ha

Re: [Matplotlib-users] to much points

2009-07-01 Thread Michael Droettboom
I agree with Jae-Joon here -- try to reduce the number of points before passing it to matplotlib. However, I'm a little concerned about the segfault -- I'd rather matplotlib give a MemoryError exception if that's in fact what is happening. Jae-Joon -- can you share your test that causes the s

Re: [Matplotlib-users] to much points

2009-07-01 Thread Jae-Joon Lee
A snippet of code does not help much. Please try to post a small concise standalone example that we can run and test. A general advise is to try to reduce the number of plot call, i.e., plot as may points as possible with a single plot call. However, 50million points seems to be awful a lot. 6 i

[Matplotlib-users] to much points

2009-06-30 Thread Markus Feldmann
Hi All, my program lets slow down my cpu. This only appears if i plot to much points. I am not sure how many point i need to get this, normally i plot 3*14e6 + 8e3, that is round about 50million points. My system is a dual core 2GHz cpu with 2Gbyte Ram. Here is my method to plot, def drawtra