Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #54497
| X-Received | by 10.224.7.129 with SMTP id d1mr2772317qad.6.1379697476228; Fri, 20 Sep 2013 10:17:56 -0700 (PDT) |
|---|---|
| X-Received | by 10.49.72.65 with SMTP id b1mr78267qev.21.1379697476210; Fri, 20 Sep 2013 10:17:56 -0700 (PDT) |
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!d5no1274564qap.0!news-out.google.com!gv3ni775qab.0!nntp.google.com!d5no1274562qap.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail |
| Newsgroups | comp.lang.python |
| Date | Fri, 20 Sep 2013 10:17:56 -0700 (PDT) |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | glegroupsg2000goo.googlegroups.com; posting-host=174.44.9.226; posting-account=lOEuBgoAAAD6Qw4dpoqeBAJHKoD58tcK |
| NNTP-Posting-Host | 174.44.9.226 |
| User-Agent | G2/1.0 |
| MIME-Version | 1.0 |
| Message-ID | <863fd2f3-7855-4afd-a735-bda8e35bb91a@googlegroups.com> (permalink) |
| Subject | matplotlib question: OverflowError: Allocated too many blocks |
| From | Ray <rui.vapps@gmail.com> |
| Injection-Date | Fri, 20 Sep 2013 17:17:56 +0000 |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Xref | csiph.com comp.lang.python:54497 |
Show key headers only | View raw
hi,
i'm using matplotlib to generate chart from audio wave file, and I had a problem with it.
test code as:
from scipy.io import wavfile
import matplotlib.pyplot as plt
rate, x = wavfile.read('test2.wav')
plt.plot(x)
plt.savefig('test2.png')
the len of x= 19531840 (as len(x) )
matplotlib give exception: OverflowError: Allocated too many blocks
if I display it by:
plt.draw()
plt.show()
everything works fine. it seems I just can't save the output to a file.
I know if I reduce the figsize would make it work. [aka plt.subplots(figsize=(5,2)) ] but this is not what I need. I need to generate the large chart. (depends on size of input file)
anyone know if there's another way to "save" big output file?
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
matplotlib question: OverflowError: Allocated too many blocks Ray <rui.vapps@gmail.com> - 2013-09-20 10:17 -0700
csiph-web