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
(14) |
2
(11) |
3
(5) |
4
(17) |
5
(11) |
6
(37) |
7
(35) |
8
(9) |
9
(1) |
10
(9) |
11
(7) |
12
(22) |
13
(34) |
14
(24) |
15
(27) |
16
(13) |
17
(19) |
18
(43) |
19
(36) |
20
(12) |
21
(9) |
22
(21) |
23
(3) |
24
(5) |
25
(30) |
26
(14) |
27
(23) |
28
(19) |
29
(19) |
30
(10) |
31
(6) |
|
|
|
|
|
|
Gökhan SEVER wrote: > You may add these two lines: > > fig = plt.figure() > fig.clear() I thought I'd tried that (at least I'd tries plt.clf() ), but indeed, that takes care of it. I'm a bit confused as to why that is necessary, but at least it's working for me. thanks, -Chris > It should give what you want to see. > > Gökhan > > > > On Wed, May 6, 2009 at 6:09 PM, Christopher Barker > <Chr...@no...> wrote: >> Hi all >> >> I'm sure this is documented somewhere, but I can't find it. >> >> I'm finally getting around to learning ipython, which is pathetic as it >> sure seems like a great tool. >> >> Anyway, I want to be able to have a simple script that does some >> plotting with MPL, and run it with python's "run". Then change the >> script and run again, and have the plot updated -- this does not seem to >> happen. It appears to work if I close th figure by clicking on the >> Window close button, then "run", but that's kind of a pain. >> >> What am I missing? >> >> example script: >> >> >> import matplotlib.pyplot as plt >> import numpy as np >> >> x = (1,2,3,4,5,6,7,8) >> y = (6,2,6,4,6,4,7,5) >> >> plt.plot(x, y) >> plt.grid('on') >> plt.show() >> >> >> the I want to be able to do: >> >> >> In [32]: run test_ipython.py >> >> get a plot, then change some of the numbers in the script and: >> >> In [33]: run test_ipython.py >> >> then get an updated plot. >> >> It's not doing that now. >> >> >> what am I missing? >> >> thanks, >> -Chris >> >> >> >> >> >> >> -- >> Christopher Barker, Ph.D. >> Oceanographer >> >> Emergency Response Division >> NOAA/NOS/OR&R (206) 526-6959 voice >> 7600 Sand Point Way NE (206) 526-6329 fax >> Seattle, WA 98115 (206) 526-6317 main reception >> >> Chr...@no... >> >> ------------------------------------------------------------------------------ >> The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your >> production scanning environment may not be a perfect world - but thanks to >> Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 >> Series Scanner you'll get full speed at 300 dpi even with all image >> processing features enabled. http://p.sf.net/sfu/kodak-com >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chr...@no...
note: make sure to include the list, it doesn't look like you did. John Seales wrote: > Here's what it says: > > $ file ft2font.so > ft2font.so: Mach-O universal binary with 2 architectures > ft2font.so (for architecture i386): Mach-O bundle i386 > ft2font.so (for architecture ppc): Mach-O bundle ppc that's right, but now I see that that wasn't the issue anyway: > > > ImportError: > dlopen(/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/ft2font.so, > 2): Library not loaded: /usr/X11R6/lib/libfreetype.6.dylib > > > Referenced from: > /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/ft2font.so ft2font is relying on libfreetype. I think that's the one that Apple delivers with their X11 (I know I have it, anyway), but I think X11 is an optional install, so you may not have it. Is that file there? ON my system: $ file /usr/X11R6/lib/libfreetype.6.dylib /usr/X11R6/lib/libfreetype.6.dylib: symbolic link to `libfreetype.6.3.dylib' and $ file /usr/X11R6/lib/libfreetype.6.3.dylib /usr/X11R6/lib/libfreetype.6.3.dylib: Mach-O dynamically linked shared library ppc so I have it, and it's a ppc lib, which makes sense, as I'm running on a ppc machine. If you don't have it, probably the easiest thing to do is install Apple's X11 -- otherwise, perhaps MPL should be built against a static libfreetype. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chr...@no...
Just for your information: Mayavi has a quiver3d function (http://code.enthought.com/projects/mayavi/docs/development/html/mayavi/auto/mlab_helper_functions.html#quiver3d) if you want to go a fancier way :) This said, I don't know how to hide arrow heads in Mayavi. Also what you showed in your original post seem a little like wind-barbs, well except without notches. Gökhan On Wed, May 6, 2009 at 4:46 PM, Christopher Barker <Chr...@no...> wrote: > Eric Firing wrote: >> Christopher Barker wrote: >>> Has anyone used MPL to make stick plots? If so, can I borrow your code? >> If no one volunteers anything, then I suggest using quiver(..., >> headlength=0, headwidth=0, headaxislength=0), together with >> quiverkey(...). This will effectively give you a stick plot, with lots >> of flexibility. > > Thanks, I was thinking that quiver() would get direction wrong, as the x > and y scales are in totally different units, but it looks like that's > not the case if you use the "angles" keyword: > > angles: [‘uv’ | ‘xy’ | array] > With the default ‘uv’, the arrow aspect ratio is 1, so that if > U*==*V the angle of the arrow on the plot is 45 degrees CCW from the > x-axis. With ‘xy’, the arrow points from (x,y) to (x+u, y+v). > Alternatively, arbitrary angles may be specified as an array of values > in degrees, CCW from the x-axis. > > > It could be implemented more efficiently in any of >> several ways, but it would take work to do it well. > > I hope I'll get time to do that, but I don't really like quiver stick > plots anyway. I prefer plots (that I don't know the name of) that: > > > Time is on the x axis > > Magnitude of the velocity is the x axis > > At each data point, there is a dot, and the direction is given with a > unit-length arrow originating at that dot, in the direction of the > observation. > > I wrote a version of this a while back with the old MPL transforms > mechanism, but haven't taken the time to translate it. > > -Chris > > > > > -- > Christopher Barker, Ph.D. > Oceanographer > > Emergency Response Division > NOAA/NOS/OR&R (206) 526-6959 voice > 7600 Sand Point Way NE (206) 526-6329 fax > Seattle, WA 98115 (206) 526-6317 main reception > > Chr...@no... > > > ------------------------------------------------------------------------------ > The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your > production scanning environment may not be a perfect world - but thanks to > Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 > Series Scanner you'll get full speed at 300 dpi even with all image > processing features enabled. http://p.sf.net/sfu/kodak-com > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users >
Hi You may add these two lines: fig = plt.figure() fig.clear() It should give what you want to see. Gökhan On Wed, May 6, 2009 at 6:09 PM, Christopher Barker <Chr...@no...> wrote: > Hi all > > I'm sure this is documented somewhere, but I can't find it. > > I'm finally getting around to learning ipython, which is pathetic as it > sure seems like a great tool. > > Anyway, I want to be able to have a simple script that does some > plotting with MPL, and run it with python's "run". Then change the > script and run again, and have the plot updated -- this does not seem to > happen. It appears to work if I close th figure by clicking on the > Window close button, then "run", but that's kind of a pain. > > What am I missing? > > example script: > > > import matplotlib.pyplot as plt > import numpy as np > > x = (1,2,3,4,5,6,7,8) > y = (6,2,6,4,6,4,7,5) > > plt.plot(x, y) > plt.grid('on') > plt.show() > > > the I want to be able to do: > > > In [32]: run test_ipython.py > > get a plot, then change some of the numbers in the script and: > > In [33]: run test_ipython.py > > then get an updated plot. > > It's not doing that now. > > > what am I missing? > > thanks, > -Chris > > > > > > > -- > Christopher Barker, Ph.D. > Oceanographer > > Emergency Response Division > NOAA/NOS/OR&R (206) 526-6959 voice > 7600 Sand Point Way NE (206) 526-6329 fax > Seattle, WA 98115 (206) 526-6317 main reception > > Chr...@no... > > ------------------------------------------------------------------------------ > The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your > production scanning environment may not be a perfect world - but thanks to > Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 > Series Scanner you'll get full speed at 300 dpi even with all image > processing features enabled. http://p.sf.net/sfu/kodak-com > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users >
Here's what it says: $ file ft2font.so ft2font.so: Mach-O universal binary with 2 architectures ft2font.so (for architecture i386): Mach-O bundle i386 ft2font.so (for architecture ppc): Mach-O bundle ppc I installed matplotlib from the dmg file. I clicked on the icon to install it. > Date: Wed, 6 May 2009 15:09:57 -0700 > From: Chr...@no... > To: mat...@li... > Subject: Re: [Matplotlib-users] O pylab why do you refuse to import? > > John Seales wrote: > > Hi- I'm writing again. > > > > I managed to switch my python version to 2.5, and reloaded numpy and matplotlib. > > how did you install matplotlib? > > Unfortunately, pylab still will not load: > > ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/ft2font.so, 2): Library not loaded: /usr/X11R6/lib/libfreetype.6.dylib > > Referenced from: /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/ft2font.so > > Reason: image not found > > > > What is going on? Is ft2font.so broken? > > does that file exist? > > If so, try running: > > $ file ft2font.so > > and see what it says -- it may be a PPC- only binary. > > > > I'm using python 2.5.2 on a macbook, intel microprocessor, mac os 10.4.11 > > -- > Christopher Barker, Ph.D. > Oceanographer > > Emergency Response Division > NOAA/NOS/OR&R (206) 526-6959 voice > 7600 Sand Point Way NE (206) 526-6329 fax > Seattle, WA 98115 (206) 526-6317 main reception > > Chr...@no... > > ------------------------------------------------------------------------------ > The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your > production scanning environment may not be a perfect world - but thanks to > Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 > Series Scanner you'll get full speed at 300 dpi even with all image > processing features enabled. http://p.sf.net/sfu/kodak-com > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users Insert movie times and more without leaving Hotmail®. See how. _________________________________________________________________ Hotmail® has a new way to see what's up with your friends. http://windowslive.com/Tutorial/Hotmail/WhatsNew?ocid=TXT_TAGLM_WL_HM_Tutorial_WhatsNew1_052009
Eric Firing wrote: >> What am I missing? > > Try "ipython -pylab". oops, sorry -- I'm already doing that. If I don't do that, then the show() command blocks ipython -- that's not happening, I'm just not getting new plots when it's called again. thanks, -Chris > Eric > >> >> example script: >> >> >> import matplotlib.pyplot as plt >> import numpy as np >> >> x = (1,2,3,4,5,6,7,8) >> y = (6,2,6,4,6,4,7,5) >> >> plt.plot(x, y) >> plt.grid('on') >> plt.show() >> >> >> the I want to be able to do: >> >> >> In [32]: run test_ipython.py >> >> get a plot, then change some of the numbers in the script and: >> >> In [33]: run test_ipython.py >> >> then get an updated plot. >> >> It's not doing that now. >> >> >> what am I missing? >> >> thanks, >> -Chris >> >> >> >> >> >> > -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chr...@no...
Here's what it says: $ file ft2font.so ft2font.so: Mach-O universal binary with 2 architectures ft2font.so (for architecture i386): Mach-O bundle i386 ft2font.so (for architecture ppc): Mach-O bundle ppc > Date: Wed, 6 May 2009 15:09:57 -0700 > From: Chr...@no... > To: mat...@li... > Subject: Re: [Matplotlib-users] O pylab why do you refuse to import? > > John Seales wrote: > > Hi- I'm writing again. > > > > I managed to switch my python version to 2.5, and reloaded numpy and matplotlib. > > how did you install matplotlib? > > Unfortunately, pylab still will not load: > > ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/ft2font.so, 2): Library not loaded: /usr/X11R6/lib/libfreetype.6.dylib > > Referenced from: /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/ft2font.so > > Reason: image not found > > > > What is going on? Is ft2font.so broken? > > does that file exist? > > If so, try running: > > $ file ft2font.so > > and see what it says -- it may be a PPC- only binary. > > > > I'm using python 2.5.2 on a macbook, intel microprocessor, mac os 10.4.11 > > -- > Christopher Barker, Ph.D. > Oceanographer > > Emergency Response Division > NOAA/NOS/OR&R (206) 526-6959 voice > 7600 Sand Point Way NE (206) 526-6329 fax > Seattle, WA 98115 (206) 526-6317 main reception > > Chr...@no... > > ------------------------------------------------------------------------------ > The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your > production scanning environment may not be a perfect world - but thanks to > Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 > Series Scanner you'll get full speed at 300 dpi even with all image > processing features enabled. http://p.sf.net/sfu/kodak-com > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users _________________________________________________________________ Insert movie times and more without leaving Hotmail®. http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM_Tutorial_QuickAdd1_052009
Christopher Barker wrote: > Hi all > > I'm sure this is documented somewhere, but I can't find it. > > I'm finally getting around to learning ipython, which is pathetic as it > sure seems like a great tool. > > Anyway, I want to be able to have a simple script that does some > plotting with MPL, and run it with python's "run". Then change the > script and run again, and have the plot updated -- this does not seem to > happen. It appears to work if I close th figure by clicking on the > Window close button, then "run", but that's kind of a pain. > > What am I missing? Try "ipython -pylab". Eric > > example script: > > > import matplotlib.pyplot as plt > import numpy as np > > x = (1,2,3,4,5,6,7,8) > y = (6,2,6,4,6,4,7,5) > > plt.plot(x, y) > plt.grid('on') > plt.show() > > > the I want to be able to do: > > > In [32]: run test_ipython.py > > get a plot, then change some of the numbers in the script and: > > In [33]: run test_ipython.py > > then get an updated plot. > > It's not doing that now. > > > what am I missing? > > thanks, > -Chris > > > > > >
Hi all I'm sure this is documented somewhere, but I can't find it. I'm finally getting around to learning ipython, which is pathetic as it sure seems like a great tool. Anyway, I want to be able to have a simple script that does some plotting with MPL, and run it with python's "run". Then change the script and run again, and have the plot updated -- this does not seem to happen. It appears to work if I close th figure by clicking on the Window close button, then "run", but that's kind of a pain. What am I missing? example script: import matplotlib.pyplot as plt import numpy as np x = (1,2,3,4,5,6,7,8) y = (6,2,6,4,6,4,7,5) plt.plot(x, y) plt.grid('on') plt.show() the I want to be able to do: In [32]: run test_ipython.py get a plot, then change some of the numbers in the script and: In [33]: run test_ipython.py then get an updated plot. It's not doing that now. what am I missing? thanks, -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chr...@no...
Christopher Barker wrote: > Eric Firing wrote: >> Christopher Barker wrote: >>> Has anyone used MPL to make stick plots? If so, can I borrow your code? >> If no one volunteers anything, then I suggest using quiver(..., >> headlength=0, headwidth=0, headaxislength=0), together with >> quiverkey(...). This will effectively give you a stick plot, with lots >> of flexibility. > > Thanks, I was thinking that quiver() would get direction wrong, as the x > and y scales are in totally different units, but it looks like that's > not the case if you use the "angles" keyword: > > angles: [‘uv’ | ‘xy’ | array] > With the default ‘uv’, the arrow aspect ratio is 1, so that if > U*==*V the angle of the arrow on the plot is 45 degrees CCW from the > x-axis. With ‘xy’, the arrow points from (x,y) to (x+u, y+v). > Alternatively, arbitrary angles may be specified as an array of values > in degrees, CCW from the x-axis. > > > It could be implemented more efficiently in any of >> several ways, but it would take work to do it well. > > I hope I'll get time to do that, but I don't really like quiver stick > plots anyway. I prefer plots (that I don't know the name of) that: > > > Time is on the x axis > > Magnitude of the velocity is the x axis > > At each data point, there is a dot, and the direction is given with a > unit-length arrow originating at that dot, in the direction of the > observation. I think this would be straightforward, using an ordinary plot command plus quiver. Eric > > I wrote a version of this a while back with the old MPL transforms > mechanism, but haven't taken the time to translate it. > > -Chris > > > >
John Seales wrote: > Hi- I'm writing again. > > I managed to switch my python version to 2.5, and reloaded numpy and matplotlib. how did you install matplotlib? Unfortunately, pylab still will not load: > ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/ft2font.so, 2): Library not loaded: /usr/X11R6/lib/libfreetype.6.dylib > Referenced from: /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/ft2font.so > Reason: image not found > > What is going on? Is ft2font.so broken? does that file exist? If so, try running: $ file ft2font.so and see what it says -- it may be a PPC- only binary. > I'm using python 2.5.2 on a macbook, intel microprocessor, mac os 10.4.11 -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chr...@no...
Hi- I'm writing again. I managed to switch my python version to 2.5, and reloaded numpy and matplotlib. Unfortunately, pylab still will not load: >>> import pylab Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/pylab.py", line 1, in <module> from matplotlib.pylab import * File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/pylab.py", line 206, in <module> from matplotlib import mpl # pulls in most modules File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/mpl.py", line 2, in <module> from matplotlib import axis File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/axis.py", line 9, in <module> import matplotlib.font_manager as font_manager File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/font_manager.py", line 52, in <module> from matplotlib import ft2font ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/ft2font.so, 2): Library not loaded: /usr/X11R6/lib/libfreetype.6.dylib Referenced from: /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/ft2font.so Reason: image not found What is going on? Is ft2font.so broken? I'm using python 2.5.2 on a macbook, intel microprocessor, mac os 10.4.11 _________________________________________________________________ Windows LiveTM: Keep your life in sync. http://windowslive.com/explore?ocid=TXT_TAGLM_BR_life_in_synch_052009
Eric Firing wrote: > Christopher Barker wrote: >> Has anyone used MPL to make stick plots? If so, can I borrow your code? > If no one volunteers anything, then I suggest using quiver(..., > headlength=0, headwidth=0, headaxislength=0), together with > quiverkey(...). This will effectively give you a stick plot, with lots > of flexibility. Thanks, I was thinking that quiver() would get direction wrong, as the x and y scales are in totally different units, but it looks like that's not the case if you use the "angles" keyword: angles: [‘uv’ | ‘xy’ | array] With the default ‘uv’, the arrow aspect ratio is 1, so that if U*==*V the angle of the arrow on the plot is 45 degrees CCW from the x-axis. With ‘xy’, the arrow points from (x,y) to (x+u, y+v). Alternatively, arbitrary angles may be specified as an array of values in degrees, CCW from the x-axis. > It could be implemented more efficiently in any of > several ways, but it would take work to do it well. I hope I'll get time to do that, but I don't really like quiver stick plots anyway. I prefer plots (that I don't know the name of) that: Time is on the x axis Magnitude of the velocity is the x axis At each data point, there is a dot, and the direction is given with a unit-length arrow originating at that dot, in the direction of the observation. I wrote a version of this a while back with the old MPL transforms mechanism, but haven't taken the time to translate it. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chr...@no...
Christopher Barker wrote: > Hi folks, > > Has anyone used MPL to make stick plots? If so, can I borrow your code? > > http://tabs.gerg.tamu.edu/Tglo/RTA/N/Oceanographic_CurrentStick_30.html > > Thanks, > > -Chris > > > Chris, If no one volunteers anything, then I suggest using quiver(..., headlength=0, headwidth=0, headaxislength=0), together with quiverkey(...). This will effectively give you a stick plot, with lots of flexibility. It could be implemented more efficiently in any of several ways, but it would take work to do it well. Eric
Christopher Barker wrote: > Hi folks, > > Has anyone used MPL to make stick plots? If so, can I borrow your code? > > http://tabs.gerg.tamu.edu/Tglo/RTA/N/Oceanographic_CurrentStick_30.html > > Thanks, > > -Chris > > > Chris, This would be a good addition. It might be implemented nicely by subclassing LineCollection, adding a set_transforms method something like that in EllipseCollection. Eric
Hello I have a contour plot with specified number of levels (isolines): lev = array([2,3,5,7,10,13,17,21,26,32,42,62,80,100,120,140,180]) to have a log "z" axis I put: from matplotlib import colors contourf(x1, y1, z1, lev, norm=colors.LogNorm(lev[0],lev[len(lev)-1])) now, to get colorbar in log scale: from matplotlib.ticker import LogLocator, LogFormatter l_f = LogFormatter(10, labelOnlyBase=False) cbar = colorbar(format = l_f) But the colorbar doesn't have all tick's labels specified in "lev" variable. Ticks are placed correctly on the cbar, but only every second tick has a text label (yes 2, 5, 10 ... etc). What should I do to have ALL levels on colorbar labeled?
Hello I have a contour plot with specified number of levels (isolines): lev = array([2,3,5,7,10,13,17,21,26,32,42,62,80,100,120,140,180]) to have a log "z" axis I put: from matplotlib import colors contourf(x1, y1, z1, lev, norm=colors.LogNorm(lev[0],lev[len(lev)-1])) now, to get colorbar in log scale: from matplotlib.ticker import LogLocator, LogFormatter l_f = LogFormatter(10, labelOnlyBase=False) cbar = colorbar(format = l_f) But the colorbar doesn't have all tick's labels specified in "lev" variable. Ticks are placed correctly on the cbar, but only every second tick has a text label (yes 2, 5, 10 ... etc). What should I do to have ALL levels on colorbar labeled?
Hi folks, Has anyone used MPL to make stick plots? If so, can I borrow your code? http://tabs.gerg.tamu.edu/Tglo/RTA/N/Oceanographic_CurrentStick_30.html Thanks, -Chris -- Christopher Barker, Ph.D. Oceanographer NOAA/OR&R/HAZMAT (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception
Thomas Robitaille wrote: > Hello, > > The following code should produce identical plots, but in the second > case the alpha value is ignored: > > --- > > import matplotlib > matplotlib.use('Agg') > import matplotlib.pyplot as mpl > from matplotlib.patches import Ellipse > from matplotlib.collections import PatchCollection > > fig = mpl.figure() > ax = fig.add_subplot(111) > ax.add_patch(Ellipse((0.5,0.5),0.7,0.3,angle=30,alpha=0.3)) > fig.savefig('test1.png') > > fig = mpl.figure() > ax = fig.add_subplot(111) > ax.add_collection(PatchCollection([Ellipse((0.5,0.5), > 0.7,0.3,angle=30,alpha=0.3)],match_original=True)) > fig.savefig('test2.png > > --- > > Is this a bug? I'm using the latest svn version of matplotlib. Yes. Alpha-handling in general is a confusing mess in mpl. Ideally, it needs an overhaul rather than an isolated bug-fix or two. This might best be done in the context of a color-handling overhaul, which we have discussed a little bit. Eric > > Thanks, > > Thomas > > > > ------------------------------------------------------------------------------ > The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your > production scanning environment may not be a perfect world - but thanks to > Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 > Series Scanner you'll get full speed at 300 dpi even with all image > processing features enabled. http://p.sf.net/sfu/kodak-com > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Thomas Robitaille wrote: > Hi Mike, > > Thanks for pointing this out - I hadn't noticed the offsets argument. > I'll try it out! See http://matplotlib.sourceforge.net/examples/pylab_examples/ellipse_collection.html Eric > > Cheers, > > Tom > > On May 6, 2009, at 10:39 AM, Michael Droettboom wrote: > >> "offsets" is intended to work for this. Is it broken? >> >> Cheers, >> Mike >> >> Thomas Robitaille wrote: >>> Hi, >>> >>> I noticed that it's not possible to specify the position of the >>> ellipses in an EllipseCollection: >>> >>> http://matplotlib.sourceforge.net/api/collections_api.html?highlight=ellipsecollection#matplotlib.collections.EllipseCollection >>> >>> Of course, I can just create a collection of individual Ellipse >>> patches, but was just wondering whether the lack of an xy argument >>> to EllipseCollection was an oversight? >>> >>> Thanks, >>> >>> Thomas >>> >>> ------------------------------------------------------------------------------ >>> The NEW KODAK i700 Series Scanners deliver under ANY circumstances! >>> Your >>> production scanning environment may not be a perfect world - but >>> thanks to >>> Kodak, there's a perfect scanner to get the job done! With the NEW >>> KODAK i700 >>> Series Scanner you'll get full speed at 300 dpi even with all image >>> processing features enabled. http://p.sf.net/sfu/kodak-com >>> _______________________________________________ >>> Matplotlib-users mailing list >>> Mat...@li... >>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>> >> -- >> Michael Droettboom >> Science Software Branch >> Operations and Engineering Division >> Space Telescope Science Institute >> Operated by AURA for NASA >> > > > ------------------------------------------------------------------------------ > The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your > production scanning environment may not be a perfect world - but thanks to > Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 > Series Scanner you'll get full speed at 300 dpi even with all image > processing features enabled. http://p.sf.net/sfu/kodak-com > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Jae-Joon Lee wrote: > On Wed, May 6, 2009 at 9:49 AM, Sebastian Pająk <spc...@gm...> wrote: >> Hello >> >> How can I set decade on log x axis to be equal length to decade on log >> y axis (physically)? >> >> If I make: >> >> ax.set_xscale("log") >> ax.set_yscale("log") >> ax.set_aspect(1) >> >> I get it all wrong, the units are equal, not decades!! >> >> I need the same effect as I get in Gnuplot - the square decades: >> >> set logscale yx; >> set size ratio -1; >> >> How can I do it in matplotlib? >> > > > I'm afraid that this is not directly supported by the matplotlib, > although I think it should. > However, you can do it with some monkey patching (or with some other > similar way). > > > import math > > def get_data_ratio(self): > xmin,xmax = self.get_xbound() > ymin,ymax = self.get_ybound() > > if self.get_xscale() == "log" and self.get_yscale() == "log": > xsize = max(math.fabs(math.log10(xmax)-math.log10(xmin)), 1e-30) > ysize = max(math.fabs(math.log10(ymax)-math.log10(ymin)), 1e-30) > else: > xsize = max(math.fabs(xmax-xmin), 1e-30) > ysize = max(math.fabs(ymax-ymin), 1e-30) > > return ysize/xsize > > from matplotlib.axes import Axes > Axes.get_data_ratio = get_data_ratio > > > ax = gca() > > ax.set_xscale("log") > ax.set_yscale("log") > ax.set_aspect(1.) > > ax.set_xlim(1, 100) > ax.set_ylim(1, 1000) > > > > John and others, > How do you think this being a default behavior? Jae-Joon, Offhand, it looks like a good idea; the current behavior is quite useless and surprising for a loglog plot. There are potentially many cases to consider, and probably only those with both axes being log with the same base can be handled reasonably with an aspect value other than 'auto'. Maybe cases that cannot be handled (e.g. semilog*; anything with symmetric log scales except with symmetric x and y bounds) should raise at least a warning in apply_aspect, saying that the aspect ratio is being ignored. Eric
On Wed, May 6, 2009 at 8:53 AM, Robert Cimrman <cim...@nt...> wrote: > Ryan May wrote: > >> On Wed, May 6, 2009 at 7:57 AM, Robert Cimrman <cim...@nt...> >> wrote: >> >>> >>> Just for the record: Ryan May's example in this thread, that uses pipes, >>> inspired me to try pipes as well, instead of queues >>> (multiprocessing.Pipe instead of Queue) and the "hanging problem", i.e. >>> the problem that Ctrl-C interrupted the program, but it had to be killed >>> to stop, disappeared. I can fix the script that I sent in message [1] >>> and provide it, if there is interest. (Currently I have fixed only the >>> version that is within sfepy). >>> >> >> >> I know I'd be interested. With your permission, it might make a nice >> example as well. >> > > Permission granted :) I have sent the script in response to William. > > Done. I like the fact that with your example, everything is self-contained in a single script. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma Sent from Norman, Oklahoma, United States
2009年5月6日 Carlos "Guâno" Grohmann <car...@gm...> > Dears, I was wondering if I can use a custom colortable in a > histogram, to get something like this: > > http://grass.itc.it/grass64/manuals/htm/r_surf_gauss_hist.png<http://grass.itc.it/grass64/manuals/html64_user/r_surf_gauss_hist.png> Not directly, but you could do it by hand. hist returns (among other things) a list of rectangle patches that represent all the bars. You could set the face/edge color of each of the patches based on the value of the histogram. This example appears to do what you want: http://matplotlib.sourceforge.net/examples/pylab_examples/hist_colormapped.html For the other devs: This would be easier if hist just returned a collection of rectangles. Why again does histogram just use a list of rectangles? Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma
Hi, I can't get wxpython to play well with matplotlib and draw_artist. After mucking around quite a bit I think I narrowed it down to the draw_artist function The problem seems to be that draw_artist when working within wxpython (as opposed to a simple mpl window) doesn't remove the old points it plotted. I adapted the example from the cookbook (http://www.scipy.org/Cookbook/Matplotlib/Animations) to illustrate this problem. I modified the example so it is updated on mouse movements (followed by idle time) so that the problem is more visual. Replacing the copy_from_bbox/restore/draw_artist (i.e. removing the animated properties) with the simple draw causes this to work. The copy_from_bbox/restore methods work as expected so it seems that the problem is either the draw_artist (or possibly the blit, but that seems unlikely). Is there something I am doing wrong? Elan -- Beware of bugs in the above code; I have only proved it correct, not tried it. - Donald Knuth
Thanks a lot!. I don't understand it but It works now as it should. 2009年5月6日 Jae-Joon Lee <lee...@gm...>: > On Wed, May 6, 2009 at 9:49 AM, Sebastian Pająk <spc...@gm...> wrote: >> Hello >> >> How can I set decade on log x axis to be equal length to decade on log >> y axis (physically)? >> >> If I make: >> >> ax.set_xscale("log") >> ax.set_yscale("log") >> ax.set_aspect(1) >> >> I get it all wrong, the units are equal, not decades!! >> >> I need the same effect as I get in Gnuplot - the square decades: >> >> set logscale yx; >> set size ratio -1; >> >> How can I do it in matplotlib? >> > > > I'm afraid that this is not directly supported by the matplotlib, > although I think it should. > However, you can do it with some monkey patching (or with some other > similar way). > > > import math > > def get_data_ratio(self): > xmin,xmax = self.get_xbound() > ymin,ymax = self.get_ybound() > > if self.get_xscale() == "log" and self.get_yscale() == "log": > xsize = max(math.fabs(math.log10(xmax)-math.log10(xmin)), 1e-30) > ysize = max(math.fabs(math.log10(ymax)-math.log10(ymin)), 1e-30) > else: > xsize = max(math.fabs(xmax-xmin), 1e-30) > ysize = max(math.fabs(ymax-ymin), 1e-30) > > return ysize/xsize > > from matplotlib.axes import Axes > Axes.get_data_ratio = get_data_ratio > > > ax = gca() > > ax.set_xscale("log") > ax.set_yscale("log") > ax.set_aspect(1.) > > ax.set_xlim(1, 100) > ax.set_ylim(1, 1000) > > > > John and others, > How do you think this being a default behavior? > > Regards, > > -JJ > > > >> ------------------------------------------------------------------------------ >> The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your >> production scanning environment may not be a perfect world - but thanks to >> Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 >> Series Scanner you'll get full speed at 300 dpi even with all image >> processing features enabled. http://p.sf.net/sfu/kodak-com >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> >