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) |
|
|
|
|
|
|
|
From: Jouni K. S. <jk...@ik...> - 2009-05-07 09:41:54
|
John Seales <pra...@ho...> writes: >> > I'm using python 2.5.2 on a macbook, intel microprocessor, mac os 10.4.11 > I installed matplotlib from the dmg file. I clicked on the icon to install it. I assume you mean the mpkg file - I don't see any dmg file on the download page. It seems to me that something is wrong with that file, since release/osx/Makefile compiles its own Freetype and attempts to link to it statically, but the file ft2font.so distributed within the mpkg installer links dynamically to /usr/X11R6/lib/libfreetype.6.dylib. AFAIK, the static linking is done precisely to avoid version mismatches between different versions of freetype, zlib, and png on various versions of OS X. Several *.so files within the mpkg link to /usr/X11R6/lib/libfreetype.6.dylib and /usr/lib/libz.1.dylib (though, curiously, none link to the system libpng). I suppose this is exactly the kind of problem that results from dynamic linking to a wrong version of freetype: >> > 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 -- Jouni K. Seppänen http://www.iki.fi/jks |
|
From: Gert-Jan <gj_...@ho...> - 2009-05-07 09:02:41
|
Hey all, I was just hoping anyone could help me further here... it would be highly appreciated. Thanks in advance, Gert-Jan Olivier Benoist wrote: > > Hi, > I'm new with matplotlib. > > I need to make a graph with the X axis represents time in hours and > minutes. My script don't works, I want to display all the values of time > that I have. > I use a list of string like this : > t=['0015', '0030', '0045', '0100', '0115', '0130', '0145', '0200', > '0215', '0230', '0245', '0300', '03 > 15', '0330', '0345', '0400', '0415', '0430', '0445', '0500', '0515', > '0530', '0545', '0600', '0615', > '0630', '0645', '0700', '0715', '0730', '0745', '0800', '0815', '0830', > '0845', '0900', '0915', '09 > 30', '0945', '1000', '1015', '1030', '1045', '1100', '1115', '1130', > '1145', '1200', '1215', '1230', > '1245', '1300', '1315', '1330', '1345', '1400', '1415'] > > ax.plot(t, y) > > I tried to convert hours and minutes to the base 100 ( , it works but I > can not show on the x-axis the hours, minutes. > I tried to use plot_date, but I don't understand "x and/or y can be a > sequence of dates represented as float days since 0001-01-01 UTC." > > Could you help me, please ? > > /olivier > > ------------------------------------------------------------------------------ > Register Now & Save for Velocity, the Web Performance & Operations > Conference from O'Reilly Media. Velocity features a full day of > expert-led, hands-on workshops and two days of sessions from industry > leaders in dedicated Performance & Operations tracks. Use code vel09scf > and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > I believe this needs its own thread. =) -- View this message in context: http://www.nabble.com/Manually-enable-export-as-EMF-tp23293186p23422798.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
|
From: Joshua L. <dis...@gm...> - 2009-05-07 04:19:52
|
John, I've seen this problem happen before with someone else; the person's X11 installation for some reason included the file libfreetype.6.3.dylib but not librfreetype.6.3.dylib. Did you install X11 before or after installing the Xcode development tools? Also, if you had to install X11 yourself, I'm assuming you're using OS X Tiger (or at least not 10.5.x)? I'd recommend trying a reinstall of X11 (if you're not using Leopard) and then Xcode in your situation, but a quicker workaround is to install freetype yourself (thus putting a copy in /usr/local) and build matplotlib from source rather than use the installer package. Josh On Wed, May 6, 2009 at 5:44 PM, John Seales <pra...@ho...> wrote: > I do have X11. It looks like there's a problem with the libfreetype, but I > don't understand what the problem is. > > john-seales-computer:/ johnseales$ file /usr/X11R6/lib/libfreetype.6.dylib > /usr/X11R6/lib/libfreetype.6.dylib: cannot open > (/usr/X11R6/lib/libfreetype.6.dylib) > > john-seales-computer:/ johnseales$ file /usr/X11R6/lib/libfreetype.6.3.dylib > /usr/X11R6/lib/libfreetype.6.3.dylib: Mach-O universal binary with 2 > architectures > /usr/X11R6/lib/libfreetype.6.3.dylib (for architecture ppc):Mach-O > dynamically linked shared library ppc > /usr/X11R6/lib/libfreetype.6.3.dylib (for architecture i386): Mach-O > dynamically linked shared library i386 > >> Date: Wed, 6 May 2009 16:55:23 -0700 >> From: Chr...@no... >> To: mat...@li... >> Subject: Re: [Matplotlib-users] O pylab why do you refuse to import? >> >> 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... >> >> >> ------------------------------------------------------------------------------ >> 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 > > ________________________________ > Hotmail® goes with you. Get it on your BlackBerry or iPhone. > ------------------------------------------------------------------------------ > 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 > > |
|
From: Jae-Joon L. <lee...@gm...> - 2009-05-07 02:45:29
|
Try to put plt.draw() before plt.show(). My guess is that what show() does is to create figure windows, and in most cases it does not redraw the figure (Tk backend is always an exception). So, this may not be a bug. But I hope some who knows well about the backends clarify this. Regards, -JJ On Wed, May 6, 2009 at 8:14 PM, Christopher Barker <Chr...@no...> wrote: > Gökhan SEVER wrote: >> I am playing with some other commands to achieve updating on the same >> figure, no luck yet. >> >> I guess that is what you actually been trying to see? Update the >> figure content without opening another one? > > right. > > Christopher Barker wrote: > >> oops, no it doesn't -- what that does is give me a new figure each time, >> so I get a big stack of them. So I tried: >> >> fig = plt.figure(1) >> fig.clear() >> >> then I didn't get a new figure, but I didn't get the figure updated, >> either -- could this be a back-end bug? I'm using wxAgg, and IIRC, the >> refreshing code is pretty messed up.. >> >> Off to try TK > > OK, with TK, it does refresh when I expect it to. So now to write a new > thread, on a wxAgg refresh bug. > > -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 > |
|
From: John S. <pra...@ho...> - 2009-05-07 00:45:26
|
I do have X11. It looks like there's a problem with the libfreetype, but I don't understand what the problem is. john-seales-computer:/ johnseales$ file /usr/X11R6/lib/libfreetype.6.dylib /usr/X11R6/lib/libfreetype.6.dylib: cannot open (/usr/X11R6/lib/libfreetype.6.dylib) john-seales-computer:/ johnseales$ file /usr/X11R6/lib/libfreetype.6.3.dylib /usr/X11R6/lib/libfreetype.6.3.dylib: Mach-O universal binary with 2 architectures /usr/X11R6/lib/libfreetype.6.3.dylib (for architecture ppc):Mach-O dynamically linked shared library ppc /usr/X11R6/lib/libfreetype.6.3.dylib (for architecture i386): Mach-O dynamically linked shared library i386 > Date: Wed, 6 May 2009 16:55:23 -0700 > From: Chr...@no... > To: mat...@li... > Subject: Re: [Matplotlib-users] O pylab why do you refuse to import? > > 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... > > ------------------------------------------------------------------------------ > 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 _________________________________________________________________ Hotmail® goes with you. http://windowslive.com/Tutorial/Hotmail/Mobile?ocid=TXT_TAGLM_WL_HM_Tutorial_Mobile1_052009 |
|
From: Gökhan S. <gok...@gm...> - 2009-05-07 00:38:01
|
To me arrows are always useful to see the direction of wind easily. Since in meteorological convention barbs show where the wind is blowing from, but in pilot convention (I might have made up this one :)) in the opposite way. Gökhan On Wed, May 6, 2009 at 7:11 PM, Christopher Barker <Chr...@no...> wrote: > Gökhan SEVER wrote: >> 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 :) > > which is cool, but I"m looking to plot a time series of a (2d) vector > quantity at a single point. > >> Also what >> you showed in your original post seem a little like wind-barbs, well >> except without notches. > > yup -- stick plots are commonly used for wind data. > > -Chris > > >> 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 >>> > > > -- > 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 > |
|
From: Christopher B. <Chr...@no...> - 2009-05-07 00:15:07
|
Gökhan SEVER wrote: > I am playing with some other commands to achieve updating on the same > figure, no luck yet. > > I guess that is what you actually been trying to see? Update the > figure content without opening another one? right. Christopher Barker wrote: > oops, no it doesn't -- what that does is give me a new figure each time, > so I get a big stack of them. So I tried: > > fig = plt.figure(1) > fig.clear() > > then I didn't get a new figure, but I didn't get the figure updated, > either -- could this be a back-end bug? I'm using wxAgg, and IIRC, the > refreshing code is pretty messed up.. > > Off to try TK OK, with TK, it does refresh when I expect it to. So now to write a new thread, on a wxAgg refresh bug. -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... |
|
From: Christopher B. <Chr...@no...> - 2009-05-07 00:10:52
|
Gökhan SEVER wrote: > 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 :) which is cool, but I"m looking to plot a time series of a (2d) vector quantity at a single point. > Also what > you showed in your original post seem a little like wind-barbs, well > except without notches. yup -- stick plots are commonly used for wind data. -Chris > 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 >> -- 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... |
|
From: Christopher B. <Chr...@no...> - 2009-05-07 00:08:44
|
Christopher Barker wrote: > 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. oops, no it doesn't -- what that does is give me a new figure each time, so I get a big stack of them. So I tried: fig = plt.figure(1) fig.clear() then I didn't get a new figure, but I didn't get the figure updated, either -- could this be a back-end bug? I'm using wxAgg, and IIRC, the refreshing code is pretty messed up.. Off to try TK -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... |
|
From: Gökhan S. <gok...@gm...> - 2009-05-07 00:06:33
|
I am playing with some other commands to achieve updating on the same
figure, no luck yet.
I guess that is what you actually been trying to see? Update the
figure content without opening another one?
Gökhan
On Wed, May 6, 2009 at 6:58 PM, Christopher Barker
<Chr...@no...> wrote:
> 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...
>
>
> ------------------------------------------------------------------------------
> 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
>
|