You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(33) |
Dec
(20) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(7) |
Feb
(44) |
Mar
(51) |
Apr
(43) |
May
(43) |
Jun
(36) |
Jul
(61) |
Aug
(44) |
Sep
(25) |
Oct
(82) |
Nov
(97) |
Dec
(47) |
2005 |
Jan
(77) |
Feb
(143) |
Mar
(42) |
Apr
(31) |
May
(93) |
Jun
(93) |
Jul
(35) |
Aug
(78) |
Sep
(56) |
Oct
(44) |
Nov
(72) |
Dec
(75) |
2006 |
Jan
(116) |
Feb
(99) |
Mar
(181) |
Apr
(171) |
May
(112) |
Jun
(86) |
Jul
(91) |
Aug
(111) |
Sep
(77) |
Oct
(72) |
Nov
(57) |
Dec
(51) |
2007 |
Jan
(64) |
Feb
(116) |
Mar
(70) |
Apr
(74) |
May
(53) |
Jun
(40) |
Jul
(519) |
Aug
(151) |
Sep
(132) |
Oct
(74) |
Nov
(282) |
Dec
(190) |
2008 |
Jan
(141) |
Feb
(67) |
Mar
(69) |
Apr
(96) |
May
(227) |
Jun
(404) |
Jul
(399) |
Aug
(96) |
Sep
(120) |
Oct
(205) |
Nov
(126) |
Dec
(261) |
2009 |
Jan
(136) |
Feb
(136) |
Mar
(119) |
Apr
(124) |
May
(155) |
Jun
(98) |
Jul
(136) |
Aug
(292) |
Sep
(174) |
Oct
(126) |
Nov
(126) |
Dec
(79) |
2010 |
Jan
(109) |
Feb
(83) |
Mar
(139) |
Apr
(91) |
May
(79) |
Jun
(164) |
Jul
(184) |
Aug
(146) |
Sep
(163) |
Oct
(128) |
Nov
(70) |
Dec
(73) |
2011 |
Jan
(235) |
Feb
(165) |
Mar
(147) |
Apr
(86) |
May
(74) |
Jun
(118) |
Jul
(65) |
Aug
(75) |
Sep
(162) |
Oct
(94) |
Nov
(48) |
Dec
(44) |
2012 |
Jan
(49) |
Feb
(40) |
Mar
(88) |
Apr
(35) |
May
(52) |
Jun
(69) |
Jul
(90) |
Aug
(123) |
Sep
(112) |
Oct
(120) |
Nov
(105) |
Dec
(116) |
2013 |
Jan
(76) |
Feb
(26) |
Mar
(78) |
Apr
(43) |
May
(61) |
Jun
(53) |
Jul
(147) |
Aug
(85) |
Sep
(83) |
Oct
(122) |
Nov
(18) |
Dec
(27) |
2014 |
Jan
(58) |
Feb
(25) |
Mar
(49) |
Apr
(17) |
May
(29) |
Jun
(39) |
Jul
(53) |
Aug
(52) |
Sep
(35) |
Oct
(47) |
Nov
(110) |
Dec
(27) |
2015 |
Jan
(50) |
Feb
(93) |
Mar
(96) |
Apr
(30) |
May
(55) |
Jun
(83) |
Jul
(44) |
Aug
(8) |
Sep
(5) |
Oct
|
Nov
(1) |
Dec
(1) |
2016 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
(2) |
Jul
|
Aug
(3) |
Sep
(1) |
Oct
(3) |
Nov
|
Dec
|
2017 |
Jan
|
Feb
(5) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(3) |
Aug
|
Sep
(7) |
Oct
|
Nov
|
Dec
|
2018 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Russell E. O. <ro...@uw...> - 2012-07-05 19:44:08
|
In article <EF3...@uw...>, Russell Owen <ro...@uw...> wrote: > I just uploaded the Mac binaries. > > Several minor concerns: > - Many unit tests failed on Mac OS X 10.4 (which is where I build the 10.3.9 > version) due to "too many files open", but the same binary looks fine on > 10.5. > - The 64-bit version (10.6 and later) had one unexpected failure on 10.7 (I > have not yet had time to test it on 10.6)... When I tested on Mac OS X 10.6 I found that most unit tests were somehow missing. Rather than try to diagnose the problem, I built a new binary on 10.6, confirmed that it installed properly (with all unit tests) on 10.6 and 10.7, then uploaded it to replace the earlier 10.6 binary. The same test I mentioned in my previous post still fails using the new binary, on both 10.6 and 10.7. -- Russell |
From: Russell O. <ro...@uw...> - 2012-07-05 16:56:58
|
I just uploaded the Mac binaries. Several minor concerns: - Many unit tests failed on Mac OS X 10.4 (which is where I build the 10.3.9 version) due to "too many files open", but the same binary looks fine on 10.5. - The 64-bit version (10.6 and later) had one unexpected failure on 10.7 (I have not yet had time to test it on 10.6) localhost$ python -c "import matplotlib as m ; m.test(verbosity=1)" ..K..............KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK..KK.KK.KK.KK.KK.KK.KKK...KK...KK.KK..KKKK..KK.KK.KK.KK.KK.KK..KK.KK.KK.............................................................................F..........................................................................................................KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK...KK.KK.KK.KK.KK.KK.KK.KK..............................................................KK.KK ====================================================================== FAIL: matplotlib.tests.test_mathtext.mathfont_stix_14_test.test ---------------------------------------------------------------------- Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/testing/decorators.py", line 36, in failer result = f(*args, **kwargs) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/testing/decorators.py", line 140, in do_test '(RMS %(rms).3f)'%err) ImageComparisonFailure: images not close: /Users/rowen/result_images/test_mathtext/mathfont_stix_14.png vs. /Users/rowen/result_images/test_mathtext/expected-mathfont_stix_14.png (RMS 3377.889) ---------------------------------------------------------------------- Ran 1068 tests in 161.293s -- Russell On Jun 9, 2012, at 2:14 PM, John Hunter wrote: > I just uploaded the v1.1.1rc2 tarballs to the sourceforge site > > https://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.1.1/ > > As soon as we get binaries, I'll send out another call for testing on > the users list. Russell and Christoph, easiest if you just upload the > binaries directly. You should both have permissions on the sf site. > > A copy of the site docs are available at > http://matplotlib.sourceforge.net/rc/v1.1.1rc2/ |
From: Christoph G. <cg...@uc...> - 2012-07-03 16:49:16
|
On 6/30/2012 1:24 PM, Christoph Gohlke wrote: > On 6/30/2012 12:55 PM, John Hunter wrote: >> >> >> On Sat, Jun 30, 2012 at 2:40 PM, Fernando Perez <fpe...@gm... >> <mailto:fpe...@gm...>> wrote: >> >> On Sat, Jun 30, 2012 at 11:46 AM, John Hunter <jd...@gm... >> <mailto:jd...@gm...>> wrote: >> > Well, looks like we better get moving then ;-) >> >> Go MPL! It would be great to have matching releases of IPython and >> MPL, just in time for the Debian freeze and SciPy 2012 :) >> >> >> OK, the v1.1.1 tarball is up at >> https://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.1.1 >> and this is now the download folder the main site points to. I'm >> leaving up the rc2 binaries til Russell and Christoph can build v1.1.1 >> binaries and we get them uploaded. Sandro, if you're around, you are >> good to go for including this in debian, hopefully squeaking in under >> the freeze (sorry for the last minute push). >> >> I will hold off on the users and announce list emails til the updated >> binaries are up. >> >> Tagged: git tag v1.1.1 7e47149a7b05f8e5cf1cc899a7e4e7c90dd4244f >> >> Thanks to all! >> JDH > > Here are the Windows installers, built against numpy 1.6.2. Sorry, I can > not upload them to SF. There seems to be some permission problems that > the SF admins would need to fix manually. > > <http://www.lfd.uci.edu/~gohlke/pythonlibs/#matplotlib> > > Christoph > Sourceforge has fixed the permissions. I uploaded the Windows installers. Christoph |
From: Ryan M. <rm...@gm...> - 2012-07-03 15:19:17
|
On Tue, Jul 3, 2012 at 10:03 AM, Tony Yu <ts...@gm...> wrote: > > > On Tue, Jul 3, 2012 at 10:22 AM, Ryan May <rm...@gm...> wrote: >> >> On Tue, Jul 3, 2012 at 9:14 AM, Tony Yu <ts...@gm...> wrote: >> > On Mon, Jul 2, 2012 at 11:42 PM, Tony Yu <ts...@gm...> wrote: >> >> On Sun, Jun 24, 2012 at 10:02 AM, Tony Yu <ts...@gm...> wrote: >> >>> >> >>> I'm having a tough time figuring this out: Saving an animation seems >> >>> to >> >>> hang when using `streamplot`. The exact same animation runs without >> >>> issue >> >>> when calling show. >> >>> >> >>> On my system, the example below hangs consistently at frame 173. >> >>> However, >> >>> the number of saved frames (before hanging) varies with density of >> >>> stream >> >>> lines (i.e. number of line segments in streamplot): More frames saved >> >>> for >> >>> lower density. >> >>> >> >>> Seems to be a memory or file-size issue, but >> >>> >> >>> * Memory use doesn't seem to grow. (this suggests that ffmpeg adds >> >>> frames to disk as opposed to memory.) >> >>> * Saving the animation up to the frame just before it hangs gives >> >>> modest (~1MB) videos. >> >>> Maybe this is a limitation of `ffmpeg`? >> >>> >> >>> Can someone confirm that the example hangs on their system? (Somehow, >> >>> I >> >>> often run into bugs that are not reproducible.) >> >>> >> >>> In case this is system dependent: >> >>> * OSX 10.6 >> >>> * Python 2.6.1 (system install) >> >>> * matplotlib master >> >>> * ffmpeg 0.10 >> >>> >> >>> Simple plots seem to work fine, but I should probably try to reproduce >> >>> using something other than streamplot (maybe create the equivalent >> >>> number of >> >>> line and arrow collections). >> >>> >> >>> -Tony >> >>> >> >>> #~~~ Example >> >>> import numpy as np >> >>> import matplotlib.pyplot as plt >> >>> import matplotlib.animation as animation >> >>> >> >>> fig, ax = plt.subplots() >> >>> >> >>> # do nothing function that prints frame >> >>> def update(frame_num): >> >>> print frame_num >> >>> return [] >> >>> >> >>> Y, X = np.mgrid[:1:100j, :1:100j] >> >>> U = np.ones_like(X) >> >>> V = np.ones_like(X) >> >>> ax.streamplot(X, Y, U, V, density=1) >> >>> >> >>> ani = animation.FuncAnimation(fig, update, save_count=500) >> >>> >> >>> # save hangs at frame 173 (this probably varies by system, if it's >> >>> reproducible). >> >>> ani.save('animation.avi') >> >>> # show animates all frames w/o issue. >> >>> #plt.show() >> >>> >> >>> >> >> >> >> I finally had some time to revisit this issue. It seems that subprocess >> >> PIPEs have fairly limited buffers [1] (also see docs for >> >> `subprocess.Popen.communicate` [2]) and ffmpeg tends to generate a >> >> decent >> >> amount of output to stderr. A simple solution is to redirect stderr to >> >> a >> >> temporary file. This change fixes the issue on my system. >> >> >> >> If this bug is reproducible, I can submit a PR. The temporary file here >> >> could be created using tempfile so it gets cleaned up automatically, or >> >> maybe a more permanent log file for debugging. Thoughts? >> >> >> >> -Tony >> >> >> >> [1] >> >> >> >> http://thraxil.org/users/anders/posts/2008/03/13/Subprocess-Hanging-PIPE-is-your-enemy/ >> >> >> >> [2] >> >> >> >> http://docs.python.org/library/subprocess.html#subprocess.Popen.communicate >> >> >> > >> > And just to clarify: My original email mentioned that saving would hang >> > only >> > when `streamplot` was used to create the figure. It turns out that >> > ffmpeg >> > prints more output (keyframes?) for more complex images, so when I ran >> > simpler plots, they didn't produce enough output to fill the subprocess >> > `PIPE` (although they would eventually). >> > >> > Also, theres's a simpler fix than piping ffmpeg output to a file: Just >> > set >> > `-loglevel quiet` in the ffmpeg command. >> > >> > -Tony >> >> It's not a bad idea to have it logged to a file in a temp directory. >> We could potentially just do this if debug is set to verbose, however, >> and just use -loglevel quiet otherwise. Can you manage PR for this or >> do I need to? >> >> Ryan >> > > Hey Ryan, > > If you have time, that'd be great. Otherwise, I should have some time at the > end of the week to submit a PR. > > -Tony > I might be able to squeeze it in. If you don't see anything by the end of the week, hit me up. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma |
From: Tony Yu <ts...@gm...> - 2012-07-03 15:04:35
|
On Tue, Jul 3, 2012 at 10:22 AM, Ryan May <rm...@gm...> wrote: > On Tue, Jul 3, 2012 at 9:14 AM, Tony Yu <ts...@gm...> wrote: > > On Mon, Jul 2, 2012 at 11:42 PM, Tony Yu <ts...@gm...> wrote: > >> On Sun, Jun 24, 2012 at 10:02 AM, Tony Yu <ts...@gm...> wrote: > >>> > >>> I'm having a tough time figuring this out: Saving an animation seems to > >>> hang when using `streamplot`. The exact same animation runs without > issue > >>> when calling show. > >>> > >>> On my system, the example below hangs consistently at frame 173. > However, > >>> the number of saved frames (before hanging) varies with density of > stream > >>> lines (i.e. number of line segments in streamplot): More frames saved > for > >>> lower density. > >>> > >>> Seems to be a memory or file-size issue, but > >>> > >>> * Memory use doesn't seem to grow. (this suggests that ffmpeg adds > >>> frames to disk as opposed to memory.) > >>> * Saving the animation up to the frame just before it hangs gives > >>> modest (~1MB) videos. > >>> Maybe this is a limitation of `ffmpeg`? > >>> > >>> Can someone confirm that the example hangs on their system? (Somehow, I > >>> often run into bugs that are not reproducible.) > >>> > >>> In case this is system dependent: > >>> * OSX 10.6 > >>> * Python 2.6.1 (system install) > >>> * matplotlib master > >>> * ffmpeg 0.10 > >>> > >>> Simple plots seem to work fine, but I should probably try to reproduce > >>> using something other than streamplot (maybe create the equivalent > number of > >>> line and arrow collections). > >>> > >>> -Tony > >>> > >>> #~~~ Example > >>> import numpy as np > >>> import matplotlib.pyplot as plt > >>> import matplotlib.animation as animation > >>> > >>> fig, ax = plt.subplots() > >>> > >>> # do nothing function that prints frame > >>> def update(frame_num): > >>> print frame_num > >>> return [] > >>> > >>> Y, X = np.mgrid[:1:100j, :1:100j] > >>> U = np.ones_like(X) > >>> V = np.ones_like(X) > >>> ax.streamplot(X, Y, U, V, density=1) > >>> > >>> ani = animation.FuncAnimation(fig, update, save_count=500) > >>> > >>> # save hangs at frame 173 (this probably varies by system, if it's > >>> reproducible). > >>> ani.save('animation.avi') > >>> # show animates all frames w/o issue. > >>> #plt.show() > >>> > >>> > >> > >> I finally had some time to revisit this issue. It seems that subprocess > >> PIPEs have fairly limited buffers [1] (also see docs for > >> `subprocess.Popen.communicate` [2]) and ffmpeg tends to generate a > decent > >> amount of output to stderr. A simple solution is to redirect stderr to a > >> temporary file. This change fixes the issue on my system. > >> > >> If this bug is reproducible, I can submit a PR. The temporary file here > >> could be created using tempfile so it gets cleaned up automatically, or > >> maybe a more permanent log file for debugging. Thoughts? > >> > >> -Tony > >> > >> [1] > >> > http://thraxil.org/users/anders/posts/2008/03/13/Subprocess-Hanging-PIPE-is-your-enemy/ > >> > >> [2] > >> > http://docs.python.org/library/subprocess.html#subprocess.Popen.communicate > >> > > > > And just to clarify: My original email mentioned that saving would hang > only > > when `streamplot` was used to create the figure. It turns out that ffmpeg > > prints more output (keyframes?) for more complex images, so when I ran > > simpler plots, they didn't produce enough output to fill the subprocess > > `PIPE` (although they would eventually). > > > > Also, theres's a simpler fix than piping ffmpeg output to a file: Just > set > > `-loglevel quiet` in the ffmpeg command. > > > > -Tony > > It's not a bad idea to have it logged to a file in a temp directory. > We could potentially just do this if debug is set to verbose, however, > and just use -loglevel quiet otherwise. Can you manage PR for this or > do I need to? > > Ryan > > Hey Ryan, If you have time, that'd be great. Otherwise, I should have some time at the end of the week to submit a PR. -Tony |
From: Ryan M. <rm...@gm...> - 2012-07-03 14:22:40
|
On Tue, Jul 3, 2012 at 9:14 AM, Tony Yu <ts...@gm...> wrote: > On Mon, Jul 2, 2012 at 11:42 PM, Tony Yu <ts...@gm...> wrote: >> On Sun, Jun 24, 2012 at 10:02 AM, Tony Yu <ts...@gm...> wrote: >>> >>> I'm having a tough time figuring this out: Saving an animation seems to >>> hang when using `streamplot`. The exact same animation runs without issue >>> when calling show. >>> >>> On my system, the example below hangs consistently at frame 173. However, >>> the number of saved frames (before hanging) varies with density of stream >>> lines (i.e. number of line segments in streamplot): More frames saved for >>> lower density. >>> >>> Seems to be a memory or file-size issue, but >>> >>> * Memory use doesn't seem to grow. (this suggests that ffmpeg adds >>> frames to disk as opposed to memory.) >>> * Saving the animation up to the frame just before it hangs gives >>> modest (~1MB) videos. >>> Maybe this is a limitation of `ffmpeg`? >>> >>> Can someone confirm that the example hangs on their system? (Somehow, I >>> often run into bugs that are not reproducible.) >>> >>> In case this is system dependent: >>> * OSX 10.6 >>> * Python 2.6.1 (system install) >>> * matplotlib master >>> * ffmpeg 0.10 >>> >>> Simple plots seem to work fine, but I should probably try to reproduce >>> using something other than streamplot (maybe create the equivalent number of >>> line and arrow collections). >>> >>> -Tony >>> >>> #~~~ Example >>> import numpy as np >>> import matplotlib.pyplot as plt >>> import matplotlib.animation as animation >>> >>> fig, ax = plt.subplots() >>> >>> # do nothing function that prints frame >>> def update(frame_num): >>> print frame_num >>> return [] >>> >>> Y, X = np.mgrid[:1:100j, :1:100j] >>> U = np.ones_like(X) >>> V = np.ones_like(X) >>> ax.streamplot(X, Y, U, V, density=1) >>> >>> ani = animation.FuncAnimation(fig, update, save_count=500) >>> >>> # save hangs at frame 173 (this probably varies by system, if it's >>> reproducible). >>> ani.save('animation.avi') >>> # show animates all frames w/o issue. >>> #plt.show() >>> >>> >> >> I finally had some time to revisit this issue. It seems that subprocess >> PIPEs have fairly limited buffers [1] (also see docs for >> `subprocess.Popen.communicate` [2]) and ffmpeg tends to generate a decent >> amount of output to stderr. A simple solution is to redirect stderr to a >> temporary file. This change fixes the issue on my system. >> >> If this bug is reproducible, I can submit a PR. The temporary file here >> could be created using tempfile so it gets cleaned up automatically, or >> maybe a more permanent log file for debugging. Thoughts? >> >> -Tony >> >> [1] >> http://thraxil.org/users/anders/posts/2008/03/13/Subprocess-Hanging-PIPE-is-your-enemy/ >> >> [2] >> http://docs.python.org/library/subprocess.html#subprocess.Popen.communicate >> > > And just to clarify: My original email mentioned that saving would hang only > when `streamplot` was used to create the figure. It turns out that ffmpeg > prints more output (keyframes?) for more complex images, so when I ran > simpler plots, they didn't produce enough output to fill the subprocess > `PIPE` (although they would eventually). > > Also, theres's a simpler fix than piping ffmpeg output to a file: Just set > `-loglevel quiet` in the ffmpeg command. > > -Tony It's not a bad idea to have it logged to a file in a temp directory. We could potentially just do this if debug is set to verbose, however, and just use -loglevel quiet otherwise. Can you manage PR for this or do I need to? Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma |
From: Tony Yu <ts...@gm...> - 2012-07-03 14:15:46
|
On Mon, Jul 2, 2012 at 11:42 PM, Tony Yu <ts...@gm...> wrote: > > > On Sun, Jun 24, 2012 at 10:02 AM, Tony Yu <ts...@gm...> wrote: > >> I'm having a tough time figuring this out: Saving an animation seems to >> hang when using `streamplot`. The exact same animation runs without issue >> when calling show. >> >> On my system, the example below hangs consistently at frame 173. However, >> the number of saved frames (before hanging) varies with density of stream >> lines (i.e. number of line segments in streamplot): More frames saved for >> lower density. >> >> Seems to be a memory or file-size issue, but >> >> * Memory use doesn't seem to grow. (this suggests that ffmpeg adds >> frames to disk as opposed to memory.) >> * Saving the animation up to the frame just before it hangs gives >> modest (~1MB) videos. >> Maybe this is a limitation of `ffmpeg`? >> >> Can someone confirm that the example hangs on their system? (Somehow, I >> often run into bugs that are not reproducible.) >> >> In case this is system dependent: >> * OSX 10.6 >> * Python 2.6.1 (system install) >> * matplotlib master >> * ffmpeg 0.10 >> >> Simple plots seem to work fine, but I should probably try to reproduce >> using something other than streamplot (maybe create the equivalent number >> of line and arrow collections). >> >> -Tony >> >> #~~~ Example >> import numpy as np >> import matplotlib.pyplot as plt >> import matplotlib.animation as animation >> >> fig, ax = plt.subplots() >> >> # do nothing function that prints frame >> def update(frame_num): >> print frame_num >> return [] >> >> Y, X = np.mgrid[:1:100j, :1:100j] >> U = np.ones_like(X) >> V = np.ones_like(X) >> ax.streamplot(X, Y, U, V, density=1) >> >> ani = animation.FuncAnimation(fig, update, save_count=500) >> >> # save hangs at frame 173 (this probably varies by system, if it's >> reproducible). >> ani.save('animation.avi') >> # show animates all frames w/o issue. >> #plt.show() >> >> >> > I finally had some time to revisit this issue. It seems that subprocess > PIPEs have fairly limited buffers [1] (also see docs for > `subprocess.Popen.communicate` [2]) and ffmpeg tends to generate a decent > amount of output to stderr. A simple solution is to redirect stderr to a > temporary file. This change fixes the issue on my system. > > If this bug is reproducible, I can submit a PR. The temporary file here > could be created using tempfile so it gets cleaned up automatically, or > maybe a more permanent log file for debugging. Thoughts? > > -Tony > > [1] > http://thraxil.org/users/anders/posts/2008/03/13/Subprocess-Hanging-PIPE-is-your-enemy/ > > [2] > http://docs.python.org/library/subprocess.html#subprocess.Popen.communicate > > And just to clarify: My original email mentioned that saving would hang only when `streamplot` was used to create the figure. It turns out that ffmpeg prints more output (keyframes?) for more complex images, so when I ran simpler plots, they didn't produce enough output to fill the subprocess `PIPE` (although they would eventually). Also, theres's a simpler fix than piping ffmpeg output to a file: Just set `-loglevel quiet` in the ffmpeg command. -Tony |
From: Tony Yu <ts...@gm...> - 2012-07-03 03:43:14
|
On Sun, Jun 24, 2012 at 10:02 AM, Tony Yu <ts...@gm...> wrote: > I'm having a tough time figuring this out: Saving an animation seems to > hang when using `streamplot`. The exact same animation runs without issue > when calling show. > > On my system, the example below hangs consistently at frame 173. However, > the number of saved frames (before hanging) varies with density of stream > lines (i.e. number of line segments in streamplot): More frames saved for > lower density. > > Seems to be a memory or file-size issue, but > > * Memory use doesn't seem to grow. (this suggests that ffmpeg adds > frames to disk as opposed to memory.) > * Saving the animation up to the frame just before it hangs gives > modest (~1MB) videos. > Maybe this is a limitation of `ffmpeg`? > > Can someone confirm that the example hangs on their system? (Somehow, I > often run into bugs that are not reproducible.) > > In case this is system dependent: > * OSX 10.6 > * Python 2.6.1 (system install) > * matplotlib master > * ffmpeg 0.10 > > Simple plots seem to work fine, but I should probably try to reproduce > using something other than streamplot (maybe create the equivalent number > of line and arrow collections). > > -Tony > > #~~~ Example > import numpy as np > import matplotlib.pyplot as plt > import matplotlib.animation as animation > > fig, ax = plt.subplots() > > # do nothing function that prints frame > def update(frame_num): > print frame_num > return [] > > Y, X = np.mgrid[:1:100j, :1:100j] > U = np.ones_like(X) > V = np.ones_like(X) > ax.streamplot(X, Y, U, V, density=1) > > ani = animation.FuncAnimation(fig, update, save_count=500) > > # save hangs at frame 173 (this probably varies by system, if it's > reproducible). > ani.save('animation.avi') > # show animates all frames w/o issue. > #plt.show() > > > I finally had some time to revisit this issue. It seems that subprocess PIPEs have fairly limited buffers [1] (also see docs for `subprocess.Popen.communicate` [2]) and ffmpeg tends to generate a decent amount of output to stderr. A simple solution is to redirect stderr to a temporary file. This change fixes the issue on my system. If this bug is reproducible, I can submit a PR. The temporary file here could be created using tempfile so it gets cleaned up automatically, or maybe a more permanent log file for debugging. Thoughts? -Tony [1] http://thraxil.org/users/anders/posts/2008/03/13/Subprocess-Hanging-PIPE-is-your-enemy/ [2] http://docs.python.org/library/subprocess.html#subprocess.Popen.communicate |
From: Sandro T. <mo...@de...> - 2012-07-01 08:23:07
|
On Sun, Jul 1, 2012 at 2:25 AM, John Hunter <jd...@gm...> wrote: > It certainly was outside you control Sandro. You gave us ample warning and > reminders. I misinterpreted the June 30th freeze date to mean we needed to > get it in by that date, but maybe it meant before, or maybe at some earlier > time today. Timezones suck :) I need to balance the importance of the update with the additional work the release team will need to carry to accept it (so read another email from someone for a not-so-breaking-the-world update, read the diff, understand it, comment it, reply - it seems few steps, but multiply for all the possible minor updates to debian packages and you'll see) so I think better leave time to deal with the other problems they already have at hand without extra burden. > In any care, I apologize for missing the deadline and for the trouble. Oh don't! there's nothing to be sorry about, it's life and constraints - we're still have a very stable mpl in wheezy, even if the version has a RC in it :) Cheers, -- Sandro Tosi (aka morph, morpheus, matrixhasu) My website: http://matrixhasu.altervista.org/ Me at Debian: http://wiki.debian.org/SandroTosi |
From: John H. <jd...@gm...> - 2012-07-01 00:25:45
|
On Jun 30, 2012, at 6:27 PM, Derek Homeier <de...@as...> wrote: >> >> And none of the rules match this situation. RC2 will be :) > > What about the very last one? > > "For packages which missed the freeze only for reasons outside of the control of the maintainers, we might be generous, but you need to contact us on your own, and you need to contact us soon." > > It certainly was outside you control Sandro. You gave us ample warning and reminders. I misinterpreted the June 30th freeze date to mean we needed to get it in by that date, but maybe it meant before, or maybe at some earlier time today. In any care, I apologize for missing the deadline and for the trouble. |
From: Derek H. <de...@as...> - 2012-06-30 23:51:14
|
On 01.07.2012, at 12:17AM, Sandro Tosi wrote: >> >> Just out of curiosity, what is the mismatch? (I believe you, I just >> know very little about the debian process). > > These are the rules: http://release.debian.org/wheezy/freeze_policy.html > > And none of the rules match this situation. RC2 will be :) What about the very last one? "For packages which missed the freeze only for reasons outside of the control of the maintainers, we might be generous, but you need to contact us on your own, and you need to contact us soon." Cheers, Derek |
From: Sandro T. <mo...@de...> - 2012-06-30 22:17:59
|
On Sun, Jul 1, 2012 at 12:08 AM, Fernando Perez <fpe...@gm...> wrote: > On Sat, Jun 30, 2012 at 3:07 PM, Sandro Tosi <mo...@de...> wrote: >> It's probably a nomenclature difference: it's a "freeze exception" so >> asking to overrule the freeze in place and allow a package to enter >> testing, but it must match basic rules, but in this case they are not >> matched. > > Just out of curiosity, what is the mismatch? (I believe you, I just > know very little about the debian process). These are the rules: http://release.debian.org/wheezy/freeze_policy.html And none of the rules match this situation. RC2 will be :) -- Sandro Tosi (aka morph, morpheus, matrixhasu) My website: http://matrixhasu.altervista.org/ Me at Debian: http://wiki.debian.org/SandroTosi |
From: Fernando P. <fpe...@gm...> - 2012-06-30 22:09:09
|
On Sat, Jun 30, 2012 at 3:07 PM, Sandro Tosi <mo...@de...> wrote: > It's probably a nomenclature difference: it's a "freeze exception" so > asking to overrule the freeze in place and allow a package to enter > testing, but it must match basic rules, but in this case they are not > matched. Just out of curiosity, what is the mismatch? (I believe you, I just know very little about the debian process). f |
From: Sandro T. <mo...@de...> - 2012-06-30 22:07:46
|
On Sun, Jul 1, 2012 at 12:04 AM, John Hunter <jd...@gm...> wrote: > But I thought this is exactly when an *exception* is needed: when one > doesn't match the rules. It's probably a nomenclature difference: it's a "freeze exception" so asking to overrule the freeze in place and allow a package to enter testing, but it must match basic rules, but in this case they are not matched. Cheers, -- Sandro Tosi (aka morph, morpheus, matrixhasu) My website: http://matrixhasu.altervista.org/ Me at Debian: http://wiki.debian.org/SandroTosi |
From: John H. <jd...@gm...> - 2012-06-30 22:05:03
|
On Jun 30, 2012, at 4:35 PM, Sandro Tosi <mo...@de...> wrote > > I've just reviewed the rules, and sadly realized the final mpl release > doesn't match them, so it's not worth asking for the exception. >> But I thought this is exactly when an *exception* is needed: when one doesn't match the rules. |
From: Sandro T. <mo...@de...> - 2012-06-30 21:36:22
|
Hello, On Sat, Jun 30, 2012 at 10:54 PM, John Hunter <jd...@gm...> wrote: > Yeah, the diff Sandro is referring to for us is just between rc2 and final. Hopefully he can argue that since r1.1.1-rc2 is already in, they can accept this minor diff to final. I've just reviewed the rules, and sadly realized the final mpl release doesn't match them, so it's not worth asking for the exception. > If not,Sandro, is there any reason you can't just ship rc2 into debian? It's essentially the same thing. Oh sure, wheezy will release with RC2 - it's just my personal taste to release with the last version :) cheers, -- Sandro Tosi (aka morph, morpheus, matrixhasu) My website: http://matrixhasu.altervista.org/ Me at Debian: http://wiki.debian.org/SandroTosi |
From: Fernando P. <fpe...@gm...> - 2012-06-30 20:59:40
|
On Sat, Jun 30, 2012 at 1:54 PM, John Hunter <jd...@gm...> wrote: > Yeah, the diff Sandro is referring to for us is just between rc2 and final. Hopefully he can argue that since r1.1.1-rc2 is already in, they can accept this minor diff to final. In our case unfortunately we didn't have time to cut an RC, so our diff beta1-HEAD was way too big. We just had to push through the work. Let's just say that my wife was not amused with my Friday night being a non-stop IRC marathon with Min "because we really need to get in before debian freeze tonight!!!" :) f |
From: John H. <jd...@gm...> - 2012-06-30 20:54:27
|
On Jun 30, 2012, at 3:46 PM, Fernando Perez <fperez.net@ > > Wow, I guess it paid off for us to stay up until 2am last night to get > IPython in... Our diff was enormous so we would have not been allowed > in at al. Whew :) Yeah, the diff Sandro is referring to for us is just between rc2 and final. Hopefully he can argue that since r1.1.1-rc2 is already in, they can accept this minor diff to final. If not,Sandro, is there any reason you can't just ship rc2 into debian? It's essentially the same thing. |
From: John H. <jd...@gm...> - 2012-06-30 20:48:36
|
On Jun 30, 2012, at 3:42 PM, Sandro Tosi <mo...@de...> wrote: > Hello John, > thanks for your effort! but... > > > ... we're already too late for the Debian freeze :( the diff is quite > small, so I'll ask for a freeze exception. Ouch. Sorry for the screwup. Good luck with the exception request: all that we added were minor bugfixes from the release candidate rc2 that you already uploaded. Keep us posted. |
From: Fernando P. <fpe...@gm...> - 2012-06-30 20:47:18
|
On Sat, Jun 30, 2012 at 1:42 PM, Sandro Tosi <mo...@de...> wrote: > ... we're already too late for the Debian freeze :( the diff is quite > small, so I'll ask for a freeze exception. Wow, I guess it paid off for us to stay up until 2am last night to get IPython in... Our diff was enormous so we would have not been allowed in at al. Whew :) I hope they'll grant the exception for mpl... Cheers, f |
From: Sandro T. <mo...@de...> - 2012-06-30 20:42:41
|
Hello John, thanks for your effort! but... On Sat, Jun 30, 2012 at 9:55 PM, John Hunter <jd...@gm...> wrote: > OK, the v1.1.1 tarball is up > at https://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.1.1 > and this is now the download folder the main site points to. I'm leaving up > the rc2 binaries til Russell and Christoph can build v1.1.1 binaries and we > get them uploaded. Sandro, if you're around, you are good to go for > including this in debian, hopefully squeaking in under the freeze (sorry for > the last minute push). ... we're already too late for the Debian freeze :( the diff is quite small, so I'll ask for a freeze exception. Cheers, -- Sandro Tosi (aka morph, morpheus, matrixhasu) My website: http://matrixhasu.altervista.org/ Me at Debian: http://wiki.debian.org/SandroTosi |
From: Christoph G. <cg...@uc...> - 2012-06-30 20:24:22
|
On 6/30/2012 12:55 PM, John Hunter wrote: > > > On Sat, Jun 30, 2012 at 2:40 PM, Fernando Perez <fpe...@gm... > <mailto:fpe...@gm...>> wrote: > > On Sat, Jun 30, 2012 at 11:46 AM, John Hunter <jd...@gm... > <mailto:jd...@gm...>> wrote: > > Well, looks like we better get moving then ;-) > > Go MPL! It would be great to have matching releases of IPython and > MPL, just in time for the Debian freeze and SciPy 2012 :) > > > OK, the v1.1.1 tarball is up at > https://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.1.1 > and this is now the download folder the main site points to. I'm > leaving up the rc2 binaries til Russell and Christoph can build v1.1.1 > binaries and we get them uploaded. Sandro, if you're around, you are > good to go for including this in debian, hopefully squeaking in under > the freeze (sorry for the last minute push). > > I will hold off on the users and announce list emails til the updated > binaries are up. > > Tagged: git tag v1.1.1 7e47149a7b05f8e5cf1cc899a7e4e7c90dd4244f > > Thanks to all! > JDH Here are the Windows installers, built against numpy 1.6.2. Sorry, I can not upload them to SF. There seems to be some permission problems that the SF admins would need to fix manually. <http://www.lfd.uci.edu/~gohlke/pythonlibs/#matplotlib> Christoph |
From: Fernando P. <fpe...@gm...> - 2012-06-30 19:58:41
|
On Sat, Jun 30, 2012 at 12:55 PM, John Hunter <jd...@gm...> wrote: > OK, the v1.1.1 tarball is up > at https://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.1.1 > and this is now the download folder the main site points to. I'm leaving up > the rc2 binaries til Russell and Christoph can build v1.1.1 binaries and we > get them uploaded. Sandro, if you're around, you are good to go for > including this in debian, hopefully squeaking in under the freeze (sorry for > the last minute push). > > I will hold off on the users and announce list emails til the updated > binaries are up. > > Tagged: git tag v1.1.1 7e47149a7b05f8e5cf1cc899a7e4e7c90dd4244f > > Thanks to all! Awesome, congrats! |
From: John H. <jd...@gm...> - 2012-06-30 19:56:21
|
On Sat, Jun 30, 2012 at 2:40 PM, Fernando Perez <fpe...@gm...>wrote: > On Sat, Jun 30, 2012 at 11:46 AM, John Hunter <jd...@gm...> wrote: > > Well, looks like we better get moving then ;-) > > Go MPL! It would be great to have matching releases of IPython and > MPL, just in time for the Debian freeze and SciPy 2012 :) > > OK, the v1.1.1 tarball is up at https://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.1.1 and this is now the download folder the main site points to. I'm leaving up the rc2 binaries til Russell and Christoph can build v1.1.1 binaries and we get them uploaded. Sandro, if you're around, you are good to go for including this in debian, hopefully squeaking in under the freeze (sorry for the last minute push). I will hold off on the users and announce list emails til the updated binaries are up. Tagged: git tag v1.1.1 7e47149a7b05f8e5cf1cc899a7e4e7c90dd4244f Thanks to all! JDH |
From: Fernando P. <fpe...@gm...> - 2012-06-30 19:41:27
|
On Sat, Jun 30, 2012 at 11:46 AM, John Hunter <jd...@gm...> wrote: > Well, looks like we better get moving then ;-) Go MPL! It would be great to have matching releases of IPython and MPL, just in time for the Debian freeze and SciPy 2012 :) Cheers, f |