I'm using a lenovo laptop with fedora 16. It has 2.9 GiB memory and 4  
intel core CPUs @ 2.3GHz each. Available disk space is 147.9GiB.
numpy 1.6.0
matplotlib 1.0.1


On 6 Feb 2012, at 10:29, Fabrice Silva wrote:

> On Sat, Feb 4, 2012 at 9:44 AM, Fabrice Silva <si...@lma.cnrs- 
> mrs.fr> wrote:
>>         Le vendredi 03 février 2012 à 17:39 +0000, David Craig a  
>> écrit :
>>> sure how to get it to plot the outputs from specgram. I use
>>> specgram as follows,
>>> Pxx, freqs, bins, im = plt.specgram(......)
>>> what am I trying imshow??
>>
>>
>>         plt.specgram computes the spectrogram and when calls  
>> imshow to display
>>         the resulting array into an image
>>
>>         Please tell the shape of Pxx, and try the following
>>
>>         import numpy as np
>>         import matplotlib.pyplot as plt
>>         a = np.empty((12000, 14400), dtype=float)
>>         plt.imshow(a)
>>         plt.show()
>
> Le samedi 04 février 2012 à 10:30 +0000, David Craig a écrit :
>> Pxx has shape (6001, 1430) and when I tried the lines of code it  
>> returned the following memory error,
>>
>> Traceback (most recent call last):
>>   File "/usr/lib/python2.7/site-packages/matplotlib/backends/ 
>> backend_gtk.py", line 394, in expose_event
>>     self._render_figure(self._pixmap, w, h)
>>   File "/usr/lib/python2.7/site-packages/matplotlib/backends/ 
>> backend_gtkagg.py", line 75, in _render_figure
>>     FigureCanvasAgg.draw(self)
>>   File "/usr/lib/python2.7/site-packages/matplotlib/backends/ 
>> backend_agg.py", line 394, in draw
>>     self.figure.draw(self.renderer)
>>   File "/usr/lib/python2.7/site-packages/matplotlib/artist.py",  
>> line 55, in draw_wrapper
>>     draw(artist, renderer, *args, **kwargs)
>>   File "/usr/lib/python2.7/site-packages/matplotlib/figure.py",  
>> line 798, in draw
>>     func(*args)
>>   File "/usr/lib/python2.7/site-packages/matplotlib/artist.py",  
>> line 55, in draw_wrapper
>>     draw(artist, renderer, *args, **kwargs)
>>   File "/usr/lib/python2.7/site-packages/matplotlib/axes.py", line  
>> 1946, in draw
>>     a.draw(renderer)
>>   File "/usr/lib/python2.7/site-packages/matplotlib/artist.py",  
>> line 55, in draw_wrapper
>>     draw(artist, renderer, *args, **kwargs)
>>   File "/usr/lib/python2.7/site-packages/matplotlib/image.py",  
>> line 354, in draw
>>     im = self.make_image(renderer.get_image_magnification())
>>   File "/usr/lib/python2.7/site-packages/matplotlib/image.py",  
>> line 569, in make_image
>>     transformed_viewLim)
>>   File "/usr/lib/python2.7/site-packages/matplotlib/image.py",  
>> line 201, in _get_unsampled_image
>>     x = self.to_rgba(self._A, self._alpha)
>>   File "/usr/lib/python2.7/site-packages/matplotlib/cm.py", line  
>> 193, in to_rgba
>>     x = self.norm(x)
>>   File "/usr/lib/python2.7/site-packages/matplotlib/colors.py",  
>> line 802, in __call__
>>     val = ma.asarray(value).astype(np.float)
>>   File "/usr/lib/python2.7/site-packages/numpy/ma/core.py", line  
>> 2908, in astype
>>     output = self._data.astype(newtype).view(type(self))
>> MemoryError
>
> Please, answer on the mailing list,
> It confirms that the troubles lie in the rendering of images. Could  
> you
> tell the versions of numpy and matplotlib you are using, and the
> characteristics of the computer you are working on ?
>
>
> ---------------------------------------------------------------------- 
> --------
> Try before you buy = See our experts in action!
> The most comprehensive online learning library for Microsoft  
> developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3,  
> MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-dev2
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users


------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to