You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(3) |
Jun
|
Jul
|
Aug
(12) |
Sep
(12) |
Oct
(56) |
Nov
(65) |
Dec
(37) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(59) |
Feb
(78) |
Mar
(153) |
Apr
(205) |
May
(184) |
Jun
(123) |
Jul
(171) |
Aug
(156) |
Sep
(190) |
Oct
(120) |
Nov
(154) |
Dec
(223) |
2005 |
Jan
(184) |
Feb
(267) |
Mar
(214) |
Apr
(286) |
May
(320) |
Jun
(299) |
Jul
(348) |
Aug
(283) |
Sep
(355) |
Oct
(293) |
Nov
(232) |
Dec
(203) |
2006 |
Jan
(352) |
Feb
(358) |
Mar
(403) |
Apr
(313) |
May
(165) |
Jun
(281) |
Jul
(316) |
Aug
(228) |
Sep
(279) |
Oct
(243) |
Nov
(315) |
Dec
(345) |
2007 |
Jan
(260) |
Feb
(323) |
Mar
(340) |
Apr
(319) |
May
(290) |
Jun
(296) |
Jul
(221) |
Aug
(292) |
Sep
(242) |
Oct
(248) |
Nov
(242) |
Dec
(332) |
2008 |
Jan
(312) |
Feb
(359) |
Mar
(454) |
Apr
(287) |
May
(340) |
Jun
(450) |
Jul
(403) |
Aug
(324) |
Sep
(349) |
Oct
(385) |
Nov
(363) |
Dec
(437) |
2009 |
Jan
(500) |
Feb
(301) |
Mar
(409) |
Apr
(486) |
May
(545) |
Jun
(391) |
Jul
(518) |
Aug
(497) |
Sep
(492) |
Oct
(429) |
Nov
(357) |
Dec
(310) |
2010 |
Jan
(371) |
Feb
(657) |
Mar
(519) |
Apr
(432) |
May
(312) |
Jun
(416) |
Jul
(477) |
Aug
(386) |
Sep
(419) |
Oct
(435) |
Nov
(320) |
Dec
(202) |
2011 |
Jan
(321) |
Feb
(413) |
Mar
(299) |
Apr
(215) |
May
(284) |
Jun
(203) |
Jul
(207) |
Aug
(314) |
Sep
(321) |
Oct
(259) |
Nov
(347) |
Dec
(209) |
2012 |
Jan
(322) |
Feb
(414) |
Mar
(377) |
Apr
(179) |
May
(173) |
Jun
(234) |
Jul
(295) |
Aug
(239) |
Sep
(276) |
Oct
(355) |
Nov
(144) |
Dec
(108) |
2013 |
Jan
(170) |
Feb
(89) |
Mar
(204) |
Apr
(133) |
May
(142) |
Jun
(89) |
Jul
(160) |
Aug
(180) |
Sep
(69) |
Oct
(136) |
Nov
(83) |
Dec
(32) |
2014 |
Jan
(71) |
Feb
(90) |
Mar
(161) |
Apr
(117) |
May
(78) |
Jun
(94) |
Jul
(60) |
Aug
(83) |
Sep
(102) |
Oct
(132) |
Nov
(154) |
Dec
(96) |
2015 |
Jan
(45) |
Feb
(138) |
Mar
(176) |
Apr
(132) |
May
(119) |
Jun
(124) |
Jul
(77) |
Aug
(31) |
Sep
(34) |
Oct
(22) |
Nov
(23) |
Dec
(9) |
2016 |
Jan
(26) |
Feb
(17) |
Mar
(10) |
Apr
(8) |
May
(4) |
Jun
(8) |
Jul
(6) |
Aug
(5) |
Sep
(9) |
Oct
(4) |
Nov
|
Dec
|
2017 |
Jan
(5) |
Feb
(7) |
Mar
(1) |
Apr
(5) |
May
|
Jun
(3) |
Jul
(6) |
Aug
(1) |
Sep
|
Oct
(2) |
Nov
(1) |
Dec
|
2018 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2025 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
|
|
|
|
|
|
1
(6) |
2
(3) |
3
(4) |
4
(1) |
5
(19) |
6
(8) |
7
(3) |
8
|
9
|
10
(9) |
11
(3) |
12
(8) |
13
(17) |
14
(5) |
15
(2) |
16
(2) |
17
(7) |
18
(2) |
19
(4) |
20
(6) |
21
|
22
(5) |
23
|
24
(7) |
25
(2) |
26
(3) |
27
(9) |
28
(9) |
29
(6) |
30
(3) |
31
(8) |
|
|
|
|
|
From: Pål G. E. <pa...@gm...> - 2014-03-14 16:02:12
|
Hi Paul I'm aware that matplotlib has moved away from the jet map, which in most cases I would agree is a good thing. My map is not a replacement for the jet colourmap, or any other colourmap. My map is the "inverse" of the diverging colourmaps, seeking to enhance small changes around a certain part of the colourmap (normally the centre, but it can be set by the user). In order to show the difference I have generated four test plots. Since I don't want to fill your inbox with attachments, they can be found at http://sudodolphin.blogspot.no/2014/03/creating-colourmaps-enhancing-small.html with a description. Cheers Pål On 14 March 2014 15:13, Paul Hobson <pmh...@gm...> wrote: > Pål, > > Matplotlib already has a jet colormap and has moved away from using it as > the default for the very reasons listed in the first paper you site. How is > your jet colormap different? Can you provide a comparison with the existing > colormap? Does it overcome the drawbacks listed in the Sandia Nat'l Labs > paper? > -paul > > > On Fri, Mar 14, 2014 at 3:16 AM, Pål Gunnar Ellingsen <pa...@gm...>wrote: > >> Hi >> >> I've created a python method for making a jet colour map which clearly >> shows small changes around a given point in the colour map, (i.e. the >> opposite of a diverging colour map >> http://www.sandia.gov/~kmorel/documents/ColorMaps/ ). >> This looks something like figure four on: >> http://biomedicaloptics.spiedigitallibrary.org/article.aspx?articleid=1828750 >> >> If this is something that is interesting for implementation in >> matplotlib, I would be happy to clean up my code and submit a patch with it? >> >> Kind regards >> >> Pål >> >> >> ------------------------------------------------------------------------------ >> Learn Graph Databases - Download FREE O'Reilly Book >> "Graph Databases" is the definitive new guide to graph databases and their >> applications. Written by three acclaimed leaders in the field, >> this first edition is now available. Download your free book today! >> http://p.sf.net/sfu/13534_NeoTech >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> >> > |
From: Paul H. <pmh...@gm...> - 2014-03-14 14:14:02
|
Pål, Matplotlib already has a jet colormap and has moved away from using it as the default for the very reasons listed in the first paper you site. How is your jet colormap different? Can you provide a comparison with the existing colormap? Does it overcome the drawbacks listed in the Sandia Nat'l Labs paper? -paul On Fri, Mar 14, 2014 at 3:16 AM, Pål Gunnar Ellingsen <pa...@gm...>wrote: > Hi > > I've created a python method for making a jet colour map which clearly > shows small changes around a given point in the colour map, (i.e. the > opposite of a diverging colour map > http://www.sandia.gov/~kmorel/documents/ColorMaps/ ). > This looks something like figure four on: > http://biomedicaloptics.spiedigitallibrary.org/article.aspx?articleid=1828750 > > If this is something that is interesting for implementation in matplotlib, > I would be happy to clean up my code and submit a patch with it? > > Kind regards > > Pål > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/13534_NeoTech > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > |
From: Michiel de H. <mjl...@ya...> - 2014-03-14 10:34:40
|
Hi Ryan, In matplotlib, drawing is done as part of the call to figure.draw(renderer). The MacOSX backend makes this call from the event loop callback (i.e., the drawRect function in src/_macosx.m). Outside of the event loop callback, the graphics context (CGContextRef on Macs) is undefined, and no drawing can take place. In the animations module, event_source is a timer that periodically calls _step, which calls _draw_next_frame, which calls _post_draw to do the blitting. But since the timer lives outside if the event loop, blitting will fail on Macs; there simply is no graphics context to draw to. The solution is to split the blitting into two parts: - A front-end blitting function that tells matplotlib to blit (this is the function called by the timer) - A back-end blitting function that does the actual blitting (as part of the call to figure.draw(renderer); the back-end blitting function is implemented in the backend). In a sense, this is the same as for the other graphics functions (e.g. there is a front-end "plot" function, and a back-end "draw_path" function). See the discussion here for more information: https://github.com/matplotlib/matplotlib/issues/531 (this discussion also went into other issues though). Best, -Michiel. -------------------------------------------- On Thu, 3/13/14, Ryan May <rm...@gm...> wrote: Subject: Re: [Matplotlib-users] Animate on Mac O$ To: "Michiel de Hoon" <mjl...@ya...> Cc: "Christophe Bal" <pro...@gm...>, "Matplotlib" <mat...@li...> Date: Thursday, March 13, 2014, 8:29 PM > On Mar 13, 2014, at 17:55, Michiel de Hoon <mjl...@ya...> wrote: > > The problems with animations on Mac > are not so much related to the backend, > but to the animations code itself. Animations > with the MacOSX backend cannot be fixed > without redesigning the animations module. Can you give me a better idea why you think so? I wrote the original and have a Mac now... Ryan |
From: Pål G. E. <pa...@gm...> - 2014-03-14 10:16:59
|
Hi I've created a python method for making a jet colour map which clearly shows small changes around a given point in the colour map, (i.e. the opposite of a diverging colour map http://www.sandia.gov/~kmorel/documents/ColorMaps/ ). This looks something like figure four on: http://biomedicaloptics.spiedigitallibrary.org/article.aspx?articleid=1828750 If this is something that is interesting for implementation in matplotlib, I would be happy to clean up my code and submit a patch with it? Kind regards Pål |
From: Ryan M. <rm...@gm...> - 2014-03-14 00:29:51
|
> On Mar 13, 2014, at 17:55, Michiel de Hoon <mjl...@ya...> wrote: > > The problems with animations on Mac > are not so much related to the backend, > but to the animations code itself. Animations > with the MacOSX backend cannot be fixed > without redesigning the animations module. Can you give me a better idea why you think so? I wrote the original and have a Mac now... Ryan |
From: Michiel de H. <mjl...@ya...> - 2014-03-13 23:55:32
|
The problems with animations on Mac are not so much related to the backend, but to the animations code itself. Animations with the MacOSX backend cannot be fixed without redesigning the animations module. Best, -Michiel. -------------------------------------------- On Thu, 3/13/14, Ryan May <rm...@gm...> wrote: Subject: Re: [Matplotlib-users] Animate on Mac O$ To: "Christophe Bal" <pro...@gm...> Cc: "Matplotlib" <mat...@li...> Date: Thursday, March 13, 2014, 5:54 PM On Thu, Mar 13, 2014 at 2:34 AM, Christophe Bal <pro...@gm...> wrote: Hello,is there any hope that the problems with animate will be fixed for Mac users ? The only problem I'm aware of for Mac OSX is with blitting; blitting is purely a performance optimization, so animations themselves should work fine. Is there something else I'm missing? Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma -----Inline Attachment Follows----- ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech -----Inline Attachment Follows----- _______________________________________________ Matplotlib-users mailing list Mat...@li... https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
From: Ryan M. <rm...@gm...> - 2014-03-13 21:55:15
|
On Thu, Mar 13, 2014 at 2:34 AM, Christophe Bal <pro...@gm...> wrote: > Hello, > is there any hope that the problems with animate will be fixed for Mac > users ? > The only problem I'm aware of for Mac OSX is with blitting; blitting is purely a performance optimization, so animations themselves should work fine. Is there something else I'm missing? Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma |
From: Sterling S. <sm...@fu...> - 2014-03-13 20:29:48
|
+1 for macports (I haven't used the others.) On Mar 13, 2014, at 10:12AM, Felix Patzelt wrote: > Are you sure that you want to use Python 3.3 on OSX 10.6??? Do you really still use 10.6? Do you want Python 3? I'm not sure on the current status, but many projects took quite a while to get ported over from Python 2. Furthermore, as often with free software, installation can be a bit tricky. It is certainly a very different experience than installing "normal" Mac applications. > > For a bit of context, most Linux distribution have some version of Python / Matplotlib in their respective package managers. These are easily installed if the particular package manager on your Linux offers the versions you want. Otherwise, you will have to do some work. > > OSX does not have an official package manager, but there are several inofficial options. I'm using http://www.macports.org which is slow because it installs its own private versions for everything, but it works very well. This is probably the easiest way to get all the open source stuff you want on your Mac and I use it a lot. Another popular and more lightweight package manager is homebrew, which relies more on the system libraries from Apple. > > The minimal installation instructions without a package manager seem to be these: https://github.com/rueckstiess/mtools/wiki/matplotlib-Installation-Guide If you're a real unix hacker, you can install everything from source. I did that before, and it takes a lot of time and in-depth knowledge. > > Finally, there are several pre-packaged distributions like https://www.enthought.com or https://store.continuum.io/cshop/anaconda/ (see http://penandpants.com/install-python/). They might come with a normal OSX installer. Maybe https://code.google.com/p/spyderlib/ does the trick for you? > > Anyway, these are just some suggestions. Maybe you want to start a separate thread on the mailing list about the best way to install matplotlib on a mac. Please note that I cannot comment in detail on any of the installation methods that I didn't use myself. > > > > > Am 13.03.2014 um 17:36 schrieb Christophe Bal <pro...@gm...>: > >> I've tested a more simpler Python code. >> >> from pylab import * >> plot([1,2,3]) >> show() >> >> This gives me a scary backend MacOSX version unknown. I've used the official DMG installer matplotlib-1.3.1-py3.3-python.org-macosx10.6.dmg. >> >> This seems to be a big problem. No ? >> >> >> $HOME=/Users/xxxx >> matplotlib data path /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/matplotlib/mpl-data >> loaded rc file /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/matplotlib/mpl-data/matplotlibrc >> matplotlib version 1.3.1 >> verbose.level helpful >> interactive is False >> platform is darwin >> CACHEDIR=/Users/xxxx/.matplotlib >> Using fontManager instance from /Users/xxxx/.matplotlib/fontList.py3k.cache >> backend MacOSX version unknown >> >> >> 2014-03-13 17:31 GMT+01:00 Felix Patzelt <fe...@ne...>: >> Well, there is a list in ~/.matplotlib/matplotlibrc (see http://matplotlib.org/users/customizing.html) >> >>> #### CONFIGURATION BEGINS HERE >>> >>> # the default backend; one of GTK GTKAgg GTKCairo CocoaAgg FltkAgg >>> # MacOSX QtAgg Qt4Agg TkAgg WX WXAgg Agg Cairo GDK PS PDF SVG Template >>> # You can also deploy your own backend outside of matplotlib by >>> # referring to the module name (which must be in the PYTHONPATH) as >>> # 'module://my_backend' >>> backend : Qt4Agg >> >> see also: http://stackoverflow.com/questions/5091993/list-of-all-available-matplotlib-backends >> >> I'm not sure about the dependencies, I guess you have to check out each one of them. If you don't use a package manager, resolving all dependency issues might be quite painful. >> >> Best, >> Felix Patzelt >> >> Am 13.03.2014 um 17:18 schrieb Christophe Bal <pro...@gm...>: >> >>> Thanks a lot for this big hint but neither TkAgg works nor Qt4Agg can work (because I do not have PyQt). >>> >>> Is there a complete list of all the backends ? >>> >>> Christophe BAL >>> >> >> > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/13534_NeoTech_______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
From: Felix P. <fe...@ne...> - 2014-03-13 17:12:19
|
Are you sure that you want to use Python 3.3 on OSX 10.6??? Do you really still use 10.6? Do you want Python 3? I'm not sure on the current status, but many projects took quite a while to get ported over from Python 2. Furthermore, as often with free software, installation can be a bit tricky. It is certainly a very different experience than installing "normal" Mac applications. For a bit of context, most Linux distribution have some version of Python / Matplotlib in their respective package managers. These are easily installed if the particular package manager on your Linux offers the versions you want. Otherwise, you will have to do some work. OSX does not have an official package manager, but there are several inofficial options. I'm using http://www.macports.org which is slow because it installs its own private versions for everything, but it works very well. This is probably the easiest way to get all the open source stuff you want on your Mac and I use it a lot. Another popular and more lightweight package manager is homebrew, which relies more on the system libraries from Apple. The minimal installation instructions without a package manager seem to be these: https://github.com/rueckstiess/mtools/wiki/matplotlib-Installation-Guide If you're a real unix hacker, you can install everything from source. I did that before, and it takes a lot of time and in-depth knowledge. Finally, there are several pre-packaged distributions like https://www.enthought.com or https://store.continuum.io/cshop/anaconda/ (see http://penandpants.com/install-python/). They might come with a normal OSX installer. Maybe https://code.google.com/p/spyderlib/ does the trick for you? Anyway, these are just some suggestions. Maybe you want to start a separate thread on the mailing list about the best way to install matplotlib on a mac. Please note that I cannot comment in detail on any of the installation methods that I didn't use myself. Am 13.03.2014 um 17:36 schrieb Christophe Bal <pro...@gm...>: > I've tested a more simpler Python code. > > from pylab import * > plot([1,2,3]) > show() > > This gives me a scary backend MacOSX version unknown. I've used the official DMG installer matplotlib-1.3.1-py3.3-python.org-macosx10.6.dmg. > > This seems to be a big problem. No ? > > > $HOME=/Users/xxxx > matplotlib data path /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/matplotlib/mpl-data > loaded rc file /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/matplotlib/mpl-data/matplotlibrc > matplotlib version 1.3.1 > verbose.level helpful > interactive is False > platform is darwin > CACHEDIR=/Users/xxxx/.matplotlib > Using fontManager instance from /Users/xxxx/.matplotlib/fontList.py3k.cache > backend MacOSX version unknown > > > 2014-03-13 17:31 GMT+01:00 Felix Patzelt <fe...@ne...>: > Well, there is a list in ~/.matplotlib/matplotlibrc (see http://matplotlib.org/users/customizing.html) > >> #### CONFIGURATION BEGINS HERE >> >> # the default backend; one of GTK GTKAgg GTKCairo CocoaAgg FltkAgg >> # MacOSX QtAgg Qt4Agg TkAgg WX WXAgg Agg Cairo GDK PS PDF SVG Template >> # You can also deploy your own backend outside of matplotlib by >> # referring to the module name (which must be in the PYTHONPATH) as >> # 'module://my_backend' >> backend : Qt4Agg > > see also: http://stackoverflow.com/questions/5091993/list-of-all-available-matplotlib-backends > > I'm not sure about the dependencies, I guess you have to check out each one of them. If you don't use a package manager, resolving all dependency issues might be quite painful. > > Best, > Felix Patzelt > > Am 13.03.2014 um 17:18 schrieb Christophe Bal <pro...@gm...>: > >> Thanks a lot for this big hint but neither TkAgg works nor Qt4Agg can work (because I do not have PyQt). >> >> Is there a complete list of all the backends ? >> >> Christophe BAL >> > > |
From: Felix P. <fe...@ne...> - 2014-03-13 16:31:57
|
Well, there is a list in ~/.matplotlib/matplotlibrc (see http://matplotlib.org/users/customizing.html) > #### CONFIGURATION BEGINS HERE > > # the default backend; one of GTK GTKAgg GTKCairo CocoaAgg FltkAgg > # MacOSX QtAgg Qt4Agg TkAgg WX WXAgg Agg Cairo GDK PS PDF SVG Template > # You can also deploy your own backend outside of matplotlib by > # referring to the module name (which must be in the PYTHONPATH) as > # 'module://my_backend' > backend : Qt4Agg see also: http://stackoverflow.com/questions/5091993/list-of-all-available-matplotlib-backends I'm not sure about the dependencies, I guess you have to check out each one of them. If you don't use a package manager, resolving all dependency issues might be quite painful. Best, Felix Patzelt Am 13.03.2014 um 17:18 schrieb Christophe Bal <pro...@gm...>: > Thanks a lot for this big hint but neither TkAgg works nor Qt4Agg can work (because I do not have PyQt). > > Is there a complete list of all the backends ? > > Christophe BAL > |
From: Jeroen H. <jer...@gm...> - 2014-03-13 16:24:26
|
Oops, you are correct. Copy-paste error. I did actually see the blinking boxes with the TkAgg backend. Jeroen On 13 Mar 2014, at 16:08, Joe Kington <jof...@gm...> wrote: > That should be `matplotlib.use('TkAgg')`, not "Agg". Agg is a non-interactive backend, while TkAgg is an interactive Tkinter wrapper around the Agg backend. > > > On Thu, Mar 13, 2014 at 9:53 AM, Jeroen Hegeman <jer...@gm...> wrote: > Hi Christophe, > > This is (I think) a known limitation of the OS X backend. One way around this is to use another backend. Which backends are available depends on how your matplotlib was built. (And unfortunately I don’t know how to figure out which ones are available, apart from trying.) In my case (matplotlib from homebrew on OS X 10.9.2) the TkAgg backend works. > > To use the TkAgg backend insert these two lines: > import matplotlib > matplotlib.use('Agg’) > before the line > import matplotlib.pyplot as plt > > I hope that helps. > > Best regards, > Jeroen > > > On 13 Mar 2014, at 15:33, Christophe Bal <pro...@gm...> wrote: > > > Hello, > > I'm a little disappointed by the following test program coming from this post. > > > > What are the technical reasons that make fail the following code under Mac O$ ? > > > > Best regards. > > Christophe BAL > > > > ---- TEST --- > > > > from random import randint, > > choice > > > > import > > time > > > > import matplotlib.pyplot as > > plt > > > > import matplotlib.patches as > > mpatches > > > > back_color > > = "black" > > > > colors > > = ['red', 'green', 'cyan', 'yellow'] > > > > width > > , height = 16, 16 > > > > > > fig > > , ax = plt.subplots() > > > > ax > > .set(xlim=[0, width], ylim=[0, height]) # Or use "ax.axis([x0,x1,y0,y1])" > > > > > > > > # Be sure to draw the canvas once before we start blitting. Otherwise > > # a) the renderer doesn't exist yet, and b) there's noting to blit onto > > > > fig > > .canvas.draw() > > > > > > > > def update(): > > > > x > > = randint(0, width - 1) > > > > y > > = randint(0, height - 1) > > > > > > rect > > = mpatches.Rectangle( > > > > > > (x, y), 1, 1, > > > > facecolor > > = choice(colors), > > > > edgecolor > > = > > back_color > > > > ) > > > > ax > > .add_artist(rect) > > > > > > start > > = time.time() > > > > ax > > .draw_artist(rect) > > > > fig > > .canvas.blit(ax.bbox) > > > > > > print("draw >>>", time.time() - start) > > > > > > timer > > = fig.canvas.new_timer(interval=1) > > > > timer > > .add_callback(update) > > > > timer > > .start() > > > > > > plt > > .show() > > ------------------------------------------------------------------------------ > > Learn Graph Databases - Download FREE O'Reilly Book > > "Graph Databases" is the definitive new guide to graph databases and their > > applications. Written by three acclaimed leaders in the field, > > this first edition is now available. Download your free book today! > > http://p.sf.net/sfu/13534_NeoTech_______________________________________________ > > Matplotlib-users mailing list > > Mat...@li... > > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/13534_NeoTech > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > -- Jeroen Hegeman jeroen DOT hegeman AT gmail DOT com WARNING: This message may contain classified information. Immediately burn this message after reading. |
From: Felix P. <fe...@ne...> - 2014-03-13 15:42:24
|
Jeroen seems to be right. The example runs fine in on my Mac when using the Qt4Agg backend (which is the default in my matplotlibrc file), but crashes when switching to the MacOSX backend. Tested on OS X 10.8.5., Matplotlib from MacPorts. Best, Felix Am 13.03.2014 um 15:53 schrieb Jeroen Hegeman <jer...@gm...>: > Hi Christophe, > > This is (I think) a known limitation of the OS X backend. One way around this is to use another backend. Which backends are available depends on how your matplotlib was built. (And unfortunately I don’t know how to figure out which ones are available, apart from trying.) In my case (matplotlib from homebrew on OS X 10.9.2) the TkAgg backend works. > > To use the TkAgg backend insert these two lines: > import matplotlib > matplotlib.use('Agg’) > before the line > import matplotlib.pyplot as plt > > I hope that helps. > > Best regards, > Jeroen > > > On 13 Mar 2014, at 15:33, Christophe Bal <pro...@gm...> wrote: > >> Hello, >> I'm a little disappointed by the following test program coming from this post. >> >> What are the technical reasons that make fail the following code under Mac O$ ? >> >> Best regards. >> Christophe BAL >> >> ---- TEST --- >> >> from random import randint, >> choice >> >> import >> time >> >> import matplotlib.pyplot as >> plt >> >> import matplotlib.patches as >> mpatches >> >> back_color >> = "black" >> >> colors >> = ['red', 'green', 'cyan', 'yellow'] >> >> width >> , height = 16, 16 >> >> >> fig >> , ax = plt.subplots() >> >> ax >> .set(xlim=[0, width], ylim=[0, height]) # Or use "ax.axis([x0,x1,y0,y1])" >> >> >> >> # Be sure to draw the canvas once before we start blitting. Otherwise >> # a) the renderer doesn't exist yet, and b) there's noting to blit onto >> >> fig >> .canvas.draw() >> >> >> >> def update(): >> >> x >> = randint(0, width - 1) >> >> y >> = randint(0, height - 1) >> >> >> rect >> = mpatches.Rectangle( >> >> >> (x, y), 1, 1, >> >> facecolor >> = choice(colors), >> >> edgecolor >> = >> back_color >> >> ) >> >> ax >> .add_artist(rect) >> >> >> start >> = time.time() >> >> ax >> .draw_artist(rect) >> >> fig >> .canvas.blit(ax.bbox) >> >> >> print("draw >>>", time.time() - start) >> >> >> timer >> = fig.canvas.new_timer(interval=1) >> >> timer >> .add_callback(update) >> >> timer >> .start() >> >> >> plt >> .show() >> ------------------------------------------------------------------------------ >> Learn Graph Databases - Download FREE O'Reilly Book >> "Graph Databases" is the definitive new guide to graph databases and their >> applications. Written by three acclaimed leaders in the field, >> this first edition is now available. Download your free book today! >> http://p.sf.net/sfu/13534_NeoTech_______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/13534_NeoTech > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
From: Joe K. <jof...@gm...> - 2014-03-13 15:08:39
|
That should be `matplotlib.use('TkAgg')`, not "Agg". Agg is a non-interactive backend, while TkAgg is an interactive Tkinter wrapper around the Agg backend. On Thu, Mar 13, 2014 at 9:53 AM, Jeroen Hegeman <jer...@gm...>wrote: > Hi Christophe, > > This is (I think) a known limitation of the OS X backend. One way around > this is to use another backend. Which backends are available depends on how > your matplotlib was built. (And unfortunately I don't know how to figure > out which ones are available, apart from trying.) In my case (matplotlib > from homebrew on OS X 10.9.2) the TkAgg backend works. > > To use the TkAgg backend insert these two lines: > import matplotlib > matplotlib.use('Agg') > before the line > import matplotlib.pyplot as plt > > I hope that helps. > > Best regards, > Jeroen > > > On 13 Mar 2014, at 15:33, Christophe Bal <pro...@gm...> wrote: > > > Hello, > > I'm a little disappointed by the following test program coming from this > post. > > > > What are the technical reasons that make fail the following code under > Mac O$ ? > > > > Best regards. > > Christophe BAL > > > > ---- TEST --- > > > > from random import randint, > > choice > > > > import > > time > > > > import matplotlib.pyplot as > > plt > > > > import matplotlib.patches as > > mpatches > > > > back_color > > = "black" > > > > colors > > = ['red', 'green', 'cyan', 'yellow'] > > > > width > > , height = 16, 16 > > > > > > fig > > , ax = plt.subplots() > > > > ax > > .set(xlim=[0, width], ylim=[0, height]) # Or use "ax.axis([x0,x1,y0,y1])" > > > > > > > > # Be sure to draw the canvas once before we start blitting. Otherwise > > # a) the renderer doesn't exist yet, and b) there's noting to blit onto > > > > fig > > .canvas.draw() > > > > > > > > def update(): > > > > x > > = randint(0, width - 1) > > > > y > > = randint(0, height - 1) > > > > > > rect > > = mpatches.Rectangle( > > > > > > (x, y), 1, 1, > > > > facecolor > > = choice(colors), > > > > edgecolor > > = > > back_color > > > > ) > > > > ax > > .add_artist(rect) > > > > > > start > > = time.time() > > > > ax > > .draw_artist(rect) > > > > fig > > .canvas.blit(ax.bbox) > > > > > > print("draw >>>", time.time() - start) > > > > > > timer > > = fig.canvas.new_timer(interval=1) > > > > timer > > .add_callback(update) > > > > timer > > .start() > > > > > > plt > > .show() > > > ------------------------------------------------------------------------------ > > Learn Graph Databases - Download FREE O'Reilly Book > > "Graph Databases" is the definitive new guide to graph databases and > their > > applications. Written by three acclaimed leaders in the field, > > this first edition is now available. Download your free book today! > > > http://p.sf.net/sfu/13534_NeoTech_______________________________________________ > > Matplotlib-users mailing list > > Mat...@li... > > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/13534_NeoTech > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
From: Jeroen H. <jer...@gm...> - 2014-03-13 14:53:28
|
Hi Christophe, This is (I think) a known limitation of the OS X backend. One way around this is to use another backend. Which backends are available depends on how your matplotlib was built. (And unfortunately I don’t know how to figure out which ones are available, apart from trying.) In my case (matplotlib from homebrew on OS X 10.9.2) the TkAgg backend works. To use the TkAgg backend insert these two lines: import matplotlib matplotlib.use('Agg’) before the line import matplotlib.pyplot as plt I hope that helps. Best regards, Jeroen On 13 Mar 2014, at 15:33, Christophe Bal <pro...@gm...> wrote: > Hello, > I'm a little disappointed by the following test program coming from this post. > > What are the technical reasons that make fail the following code under Mac O$ ? > > Best regards. > Christophe BAL > > ---- TEST --- > > from random import randint, > choice > > import > time > > import matplotlib.pyplot as > plt > > import matplotlib.patches as > mpatches > > back_color > = "black" > > colors > = ['red', 'green', 'cyan', 'yellow'] > > width > , height = 16, 16 > > > fig > , ax = plt.subplots() > > ax > .set(xlim=[0, width], ylim=[0, height]) # Or use "ax.axis([x0,x1,y0,y1])" > > > > # Be sure to draw the canvas once before we start blitting. Otherwise > # a) the renderer doesn't exist yet, and b) there's noting to blit onto > > fig > .canvas.draw() > > > > def update(): > > x > = randint(0, width - 1) > > y > = randint(0, height - 1) > > > rect > = mpatches.Rectangle( > > > (x, y), 1, 1, > > facecolor > = choice(colors), > > edgecolor > = > back_color > > ) > > ax > .add_artist(rect) > > > start > = time.time() > > ax > .draw_artist(rect) > > fig > .canvas.blit(ax.bbox) > > > print("draw >>>", time.time() - start) > > > timer > = fig.canvas.new_timer(interval=1) > > timer > .add_callback(update) > > timer > .start() > > > plt > .show() > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/13534_NeoTech_______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
From: Christophe B. <pro...@gm...> - 2014-03-13 14:33:34
|
Hello, I'm a little disappointed by the following test program coming from this post <http://stackoverflow.com/a/22380683/1054158>. What are the technical reasons that make fail the following code under Mac O$ ? Best regards. Christophe BAL ---- TEST --- from random import randint, choiceimport timeimport matplotlib.pyplot as pltimport matplotlib.patches as mpatches back_color = "black" colors = ['red', 'green', 'cyan', 'yellow'] width, height = 16, 16 fig, ax = plt.subplots() ax.set(xlim=[0, width], ylim=[0, height]) # Or use "ax.axis([x0,x1,y0,y1])" # Be sure to draw the canvas once before we start blitting. Otherwise# a) the renderer doesn't exist yet, and b) there's noting to blit onto fig.canvas.draw() def update(): x = randint(0, width - 1) y = randint(0, height - 1) rect = mpatches.Rectangle( (x, y), 1, 1, facecolor = choice(colors), edgecolor = back_color ) ax.add_artist(rect) start = time.time() ax.draw_artist(rect) fig.canvas.blit(ax.bbox) print("draw >>>", time.time() - start) timer = fig.canvas.new_timer(interval=1) timer.add_callback(update) timer.start() plt.show() |
From: Francesco M. <fra...@gm...> - 2014-03-13 14:03:44
|
Dear Diego, 2014-03-13 14:49 GMT+01:00 diedro <die...@gm...>: > Dear B., > thanks a lot for your replay. I get it. > What do you think is the measure for "w" and "h". Is the unit of measure > in pixels?. > yes > What does "fps" stand for? > frames per second Cheers, Francesco > Thanks a lot > > Diego > > > > On 12 March 2014 16:05, Benjamin Root-2 [via matplotlib] <[hidden email]<http://user/SendEmail.jtp?type=node&node=43059&i=0> > > wrote: > >> In your options to mencoder, you are specifying the width/height as: >> >> >>> 'type=png:w=9800:h=600:fps=0.6', >> >> But your PNGs have size of 704x538 pixels. That's why you have black bars >> on either side of your animation. >> >> Cheers! >> Ben Root >> >> >> >> On Wed, Mar 12, 2014 at 7:16 AM, diedro <[hidden email]<http://user/SendEmail.jtp?type=node&node=43050&i=0> >> > wrote: >> >>> sorry for that, >>> I supposed that I was not more in the the first mailing list. When I >>> post the second one, I realized that I was still in the mailing list >>> >>> Regarding the post: >>> Image Type: png (The PNG image format) >>> Width: 704 pixels >>> Height: 538 pixels >>> >>> Thanks a lot >>> >>> Diego >>> >>> >>> >>> On 12 March 2014 12:10, Oliver [via matplotlib] <[hidden email]<http://user/SendEmail.jtp?type=node&node=43047&i=0> >>> > wrote: >>> >>>> Please don't double post. Also, this post is much more informative than >>>> the first, it's much clearer now where the problem is, and it is not >>>> related to matplotlib at all, but with the options you're passing to >>>> *mencoder*. >>>> >>>> What's the size of your orginal pngs? >>>> >>>> >>>> >>>> 2014-03-12 11:58 GMT+01:00 diedro <[hidden email]<http://user/SendEmail.jtp?type=node&node=43046&i=0> >>>> >: >>>> >>>>> Dear all, >>>>> I have created a video from *.png files. The problem is that my video >>>>> has >>>>> black bands on the left and on the right. I have used the following >>>>> commands: >>>>> >>>>> command = ('mencoder', >>>>> 'mf://*.png', >>>>> '-mf', >>>>> 'type=png:w=9800:h=600:fps=0.6', >>>>> '-ovc', >>>>> 'lavc', >>>>> '-lavcopts', >>>>> 'vcodec=mpeg4', >>>>> '-oac', >>>>> 'copy', >>>>> '-o', >>>>> 'output.avi') >>>>> >>>>> How could I create a video without the black bands. >>>>> >>>>> Thank you all, >>>>> >>>>> >>>>> >>>>> -- >>>>> View this message in context: >>>>> http://matplotlib.1069221.n5.nabble.com/video-without-black-bands-tp43045.html >>>>> Sent from the matplotlib - users mailing list archive at Nabble.com. >>>>> >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> Learn Graph Databases - Download FREE O'Reilly Book >>>>> "Graph Databases" is the definitive new guide to graph databases and >>>>> their >>>>> applications. Written by three acclaimed leaders in the field, >>>>> this first edition is now available. Download your free book today! >>>>> http://p.sf.net/sfu/13534_NeoTech >>>>> _______________________________________________ >>>>> Matplotlib-users mailing list >>>>> [hidden email] <http://user/SendEmail.jtp?type=node&node=43046&i=1> >>>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>>>> >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> >>>> Learn Graph Databases - Download FREE O'Reilly Book >>>> "Graph Databases" is the definitive new guide to graph databases and >>>> their >>>> applications. Written by three acclaimed leaders in the field, >>>> this first edition is now available. Download your free book today! >>>> http://p.sf.net/sfu/13534_NeoTech >>>> _______________________________________________ >>>> Matplotlib-users mailing list >>>> [hidden email] <http://user/SendEmail.jtp?type=node&node=43046&i=2> >>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>>> >>>> >>>> ------------------------------ >>>> If you reply to this email, your message will be added to the >>>> discussion below: >>>> >>>> http://matplotlib.1069221.n5.nabble.com/video-without-black-bands-tp43045p43046.html >>>> To unsubscribe from video without black bands, click here. >>>> NAML<http://matplotlib.1069221.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> >>>> >>> >>> >>> ------------------------------ >>> View this message in context: Re: video without black bands<http://matplotlib.1069221.n5.nabble.com/video-without-black-bands-tp43045p43047.html> >>> >>> Sent from the matplotlib - users mailing list archive<http://matplotlib.1069221.n5.nabble.com/matplotlib-users-f3.html>at Nabble.com. >>> >>> >>> ------------------------------------------------------------------------------ >>> Learn Graph Databases - Download FREE O'Reilly Book >>> "Graph Databases" is the definitive new guide to graph databases and >>> their >>> applications. Written by three acclaimed leaders in the field, >>> this first edition is now available. Download your free book today! >>> http://p.sf.net/sfu/13534_NeoTech >>> _______________________________________________ >>> Matplotlib-users mailing list >>> [hidden email] <http://user/SendEmail.jtp?type=node&node=43050&i=1> >>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>> >>> >> >> ------------------------------------------------------------------------------ >> >> Learn Graph Databases - Download FREE O'Reilly Book >> "Graph Databases" is the definitive new guide to graph databases and >> their >> applications. Written by three acclaimed leaders in the field, >> this first edition is now available. Download your free book today! >> http://p.sf.net/sfu/13534_NeoTech >> _______________________________________________ >> Matplotlib-users mailing list >> [hidden email] <http://user/SendEmail.jtp?type=node&node=43050&i=2> >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> >> >> ------------------------------ >> If you reply to this email, your message will be added to the >> discussion below: >> >> http://matplotlib.1069221.n5.nabble.com/video-without-black-bands-tp43045p43050.html >> To unsubscribe from video without black bands, click here. >> NAML<http://matplotlib.1069221.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> >> > > > ------------------------------ > View this message in context: Re: video without black bands<http://matplotlib.1069221.n5.nabble.com/video-without-black-bands-tp43045p43059.html> > Sent from the matplotlib - users mailing list archive<http://matplotlib.1069221.n5.nabble.com/matplotlib-users-f3.html>at Nabble.com. > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/13534_NeoTech > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > |
From: diedro <die...@gm...> - 2014-03-13 13:49:34
|
Dear B., thanks a lot for your replay. I get it. What do you think is the measure for "w" and "h". Is the unit of measure in pixels?. What does "fps" stand for? Thanks a lot Diego On 12 March 2014 16:05, Benjamin Root-2 [via matplotlib] < ml-...@n5...> wrote: > In your options to mencoder, you are specifying the width/height as: > > >>> 'type=png:w=9800:h=600:fps=0.6', > > But your PNGs have size of 704x538 pixels. That's why you have black bars > on either side of your animation. > > Cheers! > Ben Root > > > > On Wed, Mar 12, 2014 at 7:16 AM, diedro <[hidden email]<http://user/SendEmail.jtp?type=node&node=43050&i=0> > > wrote: > >> sorry for that, >> I supposed that I was not more in the the first mailing list. When I post >> the second one, I realized that I was still in the mailing list >> >> Regarding the post: >> Image Type: png (The PNG image format) >> Width: 704 pixels >> Height: 538 pixels >> >> Thanks a lot >> >> Diego >> >> >> >> On 12 March 2014 12:10, Oliver [via matplotlib] <[hidden email]<http://user/SendEmail.jtp?type=node&node=43047&i=0> >> > wrote: >> >>> Please don't double post. Also, this post is much more informative than >>> the first, it's much clearer now where the problem is, and it is not >>> related to matplotlib at all, but with the options you're passing to >>> *mencoder*. >>> >>> What's the size of your orginal pngs? >>> >>> >>> >>> 2014-03-12 11:58 GMT+01:00 diedro <[hidden email]<http://user/SendEmail.jtp?type=node&node=43046&i=0> >>> >: >>> >>>> Dear all, >>>> I have created a video from *.png files. The problem is that my video >>>> has >>>> black bands on the left and on the right. I have used the following >>>> commands: >>>> >>>> command = ('mencoder', >>>> 'mf://*.png', >>>> '-mf', >>>> 'type=png:w=9800:h=600:fps=0.6', >>>> '-ovc', >>>> 'lavc', >>>> '-lavcopts', >>>> 'vcodec=mpeg4', >>>> '-oac', >>>> 'copy', >>>> '-o', >>>> 'output.avi') >>>> >>>> How could I create a video without the black bands. >>>> >>>> Thank you all, >>>> >>>> >>>> >>>> -- >>>> View this message in context: >>>> http://matplotlib.1069221.n5.nabble.com/video-without-black-bands-tp43045.html >>>> Sent from the matplotlib - users mailing list archive at Nabble.com. >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Learn Graph Databases - Download FREE O'Reilly Book >>>> "Graph Databases" is the definitive new guide to graph databases and >>>> their >>>> applications. Written by three acclaimed leaders in the field, >>>> this first edition is now available. Download your free book today! >>>> http://p.sf.net/sfu/13534_NeoTech >>>> _______________________________________________ >>>> Matplotlib-users mailing list >>>> [hidden email] <http://user/SendEmail.jtp?type=node&node=43046&i=1> >>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>>> >>> >>> >>> ------------------------------------------------------------------------------ >>> >>> Learn Graph Databases - Download FREE O'Reilly Book >>> "Graph Databases" is the definitive new guide to graph databases and >>> their >>> applications. Written by three acclaimed leaders in the field, >>> this first edition is now available. Download your free book today! >>> http://p.sf.net/sfu/13534_NeoTech >>> _______________________________________________ >>> Matplotlib-users mailing list >>> [hidden email] <http://user/SendEmail.jtp?type=node&node=43046&i=2> >>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>> >>> >>> ------------------------------ >>> If you reply to this email, your message will be added to the >>> discussion below: >>> >>> http://matplotlib.1069221.n5.nabble.com/video-without-black-bands-tp43045p43046.html >>> To unsubscribe from video without black bands, click here. >>> NAML<http://matplotlib.1069221.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> >>> >> >> >> ------------------------------ >> View this message in context: Re: video without black bands<http://matplotlib.1069221.n5.nabble.com/video-without-black-bands-tp43045p43047.html> >> >> Sent from the matplotlib - users mailing list archive<http://matplotlib.1069221.n5.nabble.com/matplotlib-users-f3.html>at Nabble.com. >> >> >> ------------------------------------------------------------------------------ >> Learn Graph Databases - Download FREE O'Reilly Book >> "Graph Databases" is the definitive new guide to graph databases and their >> applications. Written by three acclaimed leaders in the field, >> this first edition is now available. Download your free book today! >> http://p.sf.net/sfu/13534_NeoTech >> _______________________________________________ >> Matplotlib-users mailing list >> [hidden email] <http://user/SendEmail.jtp?type=node&node=43050&i=1> >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> >> > > ------------------------------------------------------------------------------ > > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/13534_NeoTech > _______________________________________________ > Matplotlib-users mailing list > [hidden email] <http://user/SendEmail.jtp?type=node&node=43050&i=2> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://matplotlib.1069221.n5.nabble.com/video-without-black-bands-tp43045p43050.html > To unsubscribe from video without black bands, click here<http://matplotlib.1069221.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=43045&code=ZGllZ28uYXZlc2FuaUBnbWFpbC5jb218NDMwNDV8LTEwODQ3ODcyNzI=> > . > NAML<http://matplotlib.1069221.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > -- View this message in context: http://matplotlib.1069221.n5.nabble.com/video-without-black-bands-tp43045p43059.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
From: William R. W. <wr...@ma...> - 2014-03-13 13:26:28
|
On Mar 12, 2014, at 8:41 PM, Caio Sanches <cai...@li...> wrote: > Hey there! > I have a mac 10.9 (Mavericks), and I needed matplotlib for a course I was participating. > I installed python 2.7.6, as requested, and downloaded the installer (dmg) from the sourceforge page. > I created a simple file, to plot a simple graph, but then it gave me an error (attached as Output.txt). > I don’t know what to do… > Please help me. > Thanks in advance > -Caio > <output.txt>------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/13534_NeoTech_______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users Caio, Welcome to Python and matplotlib. Unfortunately, we can’t (yet) answer your question. I’m looking at your attached file on a Mac running Mavericks - and as far as I can tell it is completely blank. You have avoided the most common error in posting to a python or python-related list, that is, your query is in plain text (thank you), but when you get an error message, would you please just cut and paste the whole traceback into your e-mail? Thanks, Bill |
From: Christophe B. <pro...@gm...> - 2014-03-13 08:34:15
|
Hello, is there any hope that the problems with animate will be fixed for Mac users ? Christophe BAL |
From: Eric F. <ef...@ha...> - 2014-03-13 02:53:39
|
On 2014/03/12 2:41 PM, Caio Sanches wrote: > Hey there! > I have a mac 10.9 (Mavericks), and I needed matplotlib for a course I was participating. > I installed python 2.7.6, as requested, and downloaded the installer (dmg) from the sourceforge page. > I created a simple file, to plot a simple graph, but then it gave me an error (attached as Output.txt). > I don’t know what to do… > Please help me. > Thanks in advance > -Caio > The file you attached does not show the error, or the code and data you used, so we have no idea what the problem might be. If you are new to python, then I suggest that you install Anaconda https://store.continuum.io/cshop/anaconda/ rather than installing python packages like matplotlib one by one. Second, it sounds like you need to do a bit of background reading, and perhaps find someone local to help you get started. Eric |
From: Caio S. <cai...@li...> - 2014-03-13 00:41:40
|
Hey there! I have a mac 10.9 (Mavericks), and I needed matplotlib for a course I was participating. I installed python 2.7.6, as requested, and downloaded the installer (dmg) from the sourceforge page. I created a simple file, to plot a simple graph, but then it gave me an error (attached as Output.txt). I don’t know what to do… Please help me. Thanks in advance -Caio |
From: Caio S. <cai...@li...> - 2014-03-13 00:41:38
|
Hey there! I have a mac 10.9 (Mavericks), and I needed matplotlib for a course I was participating. I installed python 2.7.6, as requested, and downloaded the installer (dmg) from the sourceforge page. I created a simple file, to plot a simple graph, but then it gave me an error (attached as Output.txt). I don’t know what to do… Please help me. Thanks in advance -Caio |
From: Bill B. <bi...@ea...> - 2014-03-12 22:08:41
|
i am reading a csv file of stock date with daily data (weekdays) and dates represented as strings. when i convert dates to datetime format, weekends and holidays are introduced as nans leaving holes in the plot. web searches led me to this. is this still the case? seems like a lot of trouble for such a common inconvenience. from mpl documentation http://matplotlib.org/examples/pylab_examples/date_index_formatter.html """ > When plotting daily data, a frequent request is to plot the data > ignoring skips, eg no extra spaces for weekends. This is particularly > common in financial time series, when you may have data for M-F and > not Sat, Sun and you don't want gaps in the x axis. The approach is > to simply use the integer index for the xdata and a custom tick > Formatter to get the appropriate date string for a given index. > """ this was originally posted to pydata https://groups.google.com/forum/?fromgroups#!topic/pydata/LiHQqurY440 thanks in advance. Bill |
From: Benjamin R. <ben...@ou...> - 2014-03-12 15:04:48
|
In your options to mencoder, you are specifying the width/height as: >>> 'type=png:w=9800:h=600:fps=0.6', But your PNGs have size of 704x538 pixels. That's why you have black bars on either side of your animation. Cheers! Ben Root On Wed, Mar 12, 2014 at 7:16 AM, diedro <die...@gm...> wrote: > sorry for that, > I supposed that I was not more in the the first mailing list. When I post > the second one, I realized that I was still in the mailing list > > Regarding the post: > Image Type: png (The PNG image format) > Width: 704 pixels > Height: 538 pixels > > Thanks a lot > > Diego > > > > On 12 March 2014 12:10, Oliver [via matplotlib] <[hidden email]<http://user/SendEmail.jtp?type=node&node=43047&i=0> > > wrote: > >> Please don't double post. Also, this post is much more informative than >> the first, it's much clearer now where the problem is, and it is not >> related to matplotlib at all, but with the options you're passing to >> *mencoder*. >> >> What's the size of your orginal pngs? >> >> >> >> 2014-03-12 11:58 GMT+01:00 diedro <[hidden email]<http://user/SendEmail.jtp?type=node&node=43046&i=0> >> >: >> >>> Dear all, >>> I have created a video from *.png files. The problem is that my video has >>> black bands on the left and on the right. I have used the following >>> commands: >>> >>> command = ('mencoder', >>> 'mf://*.png', >>> '-mf', >>> 'type=png:w=9800:h=600:fps=0.6', >>> '-ovc', >>> 'lavc', >>> '-lavcopts', >>> 'vcodec=mpeg4', >>> '-oac', >>> 'copy', >>> '-o', >>> 'output.avi') >>> >>> How could I create a video without the black bands. >>> >>> Thank you all, >>> >>> >>> >>> -- >>> View this message in context: >>> http://matplotlib.1069221.n5.nabble.com/video-without-black-bands-tp43045.html >>> Sent from the matplotlib - users mailing list archive at Nabble.com. >>> >>> >>> ------------------------------------------------------------------------------ >>> Learn Graph Databases - Download FREE O'Reilly Book >>> "Graph Databases" is the definitive new guide to graph databases and >>> their >>> applications. Written by three acclaimed leaders in the field, >>> this first edition is now available. Download your free book today! >>> http://p.sf.net/sfu/13534_NeoTech >>> _______________________________________________ >>> Matplotlib-users mailing list >>> [hidden email] <http://user/SendEmail.jtp?type=node&node=43046&i=1> >>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>> >> >> >> ------------------------------------------------------------------------------ >> >> Learn Graph Databases - Download FREE O'Reilly Book >> "Graph Databases" is the definitive new guide to graph databases and >> their >> applications. Written by three acclaimed leaders in the field, >> this first edition is now available. Download your free book today! >> http://p.sf.net/sfu/13534_NeoTech >> _______________________________________________ >> Matplotlib-users mailing list >> [hidden email] <http://user/SendEmail.jtp?type=node&node=43046&i=2> >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> >> >> ------------------------------ >> If you reply to this email, your message will be added to the >> discussion below: >> >> http://matplotlib.1069221.n5.nabble.com/video-without-black-bands-tp43045p43046.html >> To unsubscribe from video without black bands, click here. >> NAML<http://matplotlib.1069221.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> >> > > > ------------------------------ > View this message in context: Re: video without black bands<http://matplotlib.1069221.n5.nabble.com/video-without-black-bands-tp43045p43047.html> > > Sent from the matplotlib - users mailing list archive<http://matplotlib.1069221.n5.nabble.com/matplotlib-users-f3.html>at Nabble.com. > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/13534_NeoTech > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > |
From: Christophe B. <pro...@gm...> - 2014-03-12 11:17:59
|
I forgot to say that being under Mac O$, I can use with animate... So I do not know if i can build an infinite animation. Is it possible ? 2014-03-12 12:01 GMT+01:00 Christophe Bal <pro...@gm...>: > Yes I've read it. > > > 1. It proposes to update infos about the figure, this is what I do in > my update function which only change the color of one random rectangle > every time that a timer asks to do it. > 2. Then it is said to use plt.draw(), which is what I do. If I use a > timer, each draw takes merely 2 seconds for 64**2 fixed initial > squares instead of being very quick for 16**2 fixed initial squares. It is > certain that the draw is indeed a redraw. > > > > 2014-03-12 11:49 GMT+01:00 Derek <gam...@gm...>: > > Did you look at the link; the person updating the plots had the same issue >> - i.e. he did not know when the data would arrive or how long it would be >> active for. That sounds like your situation? >> >> >> On 12 March 2014 11:59, Christophe Bal <pro...@gm...> wrote: >> >>> I forgot to say that here the use of animations is not good because, I >>> have no max playing time. >>> >>> >>> 2014-03-12 10:56 GMT+01:00 Christophe Bal <pro...@gm...>: >>> >>> Hello. >>>> >>>> First of all, I forgot the link to my post : here it is<http://stackoverflow.com/questions/22320407/matplotlib-update-only-some-parts-of-a-figure> >>>> . >>>> >>>> Yes, for pedagogical reason, I would like to use matplotlib for >>>> beginner programmers, like me :-), such as to do some 80 old school games. >>>> >>>> The problem I met using the draw method is that it takes 2 seconds for >>>> a figure of 64**2 squares. This is due to the fact that everythin is >>>> redraw. Here is my update method. >>>> >>>> *------------------------------------------------* >>>> *def update():* >>>> * global colors, width, height* >>>> >>>> * x = randint(0, width - 1)* >>>> * y = randint(0, height - 1)* >>>> >>>> * plotgrid[y][x].set_facecolor(choice(colors))* >>>> >>>> * plt.draw()* >>>> >>>> >>>> >>>> 2014-03-12 10:44 GMT+01:00 Derek <gam...@gm...>: >>>> >>>> Its not really clear what you are trying to achieve (using Matplotlib >>>>> to play Tetris??); but this have some pointers: >>>>> >>>>> >>>>> http://stackoverflow.com/questions/10944621/dynamically-updating-plot-in-matplotlib >>>>> >>>>> >>>>> On 12 March 2014 11:33, Christophe Bal <pro...@gm...> wrote: >>>>> >>>>>> Hello. >>>>>> >>>>>> I've poste here a question but no one seems to have an hint to give >>>>>> so I repeat my question here. >>>>>> >>>>>> In the attached Python 3 code, I draw n**2 squares in black and then >>>>>> I dynamically change in a random way the colors of some squares. >>>>>> >>>>>> The problem I met is that at each new random choice, I redraw all the >>>>>> squares. I know that it is stupid for large number of squares. >>>>>> >>>>>> Is there a way to change some propriety of one square, and then to >>>>>> ask to matplotlib to redraw only what have changed ? I'm looking for >>>>>> something similar to `blint` for animations. >>>>>> >>>>>> Christophe BAL >>>>>> >>>>>> >>>>>> ------------------------------------------------------------------------------ >>>>>> Learn Graph Databases - Download FREE O'Reilly Book >>>>>> "Graph Databases" is the definitive new guide to graph databases and >>>>>> their >>>>>> applications. Written by three acclaimed leaders in the field, >>>>>> this first edition is now available. Download your free book today! >>>>>> http://p.sf.net/sfu/13534_NeoTech >>>>>> _______________________________________________ >>>>>> Matplotlib-users mailing list >>>>>> Mat...@li... >>>>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>>>>> >>>>>> >>>>> >>>> >>> >> > |