SourceForge logo
SourceForge logo
Menu

matplotlib-users — Discussion related to using matplotlib

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)






Showing results of 523

<< < 1 .. 16 17 18 19 20 21 > >> (Page 18 of 21)
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
>
From: Christopher B. <Chr...@no...> - 2009年05月06日 23:58:35
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...
From: Christopher B. <Chr...@no...> - 2009年05月06日 23:55:06
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...
From: Gökhan S. <gok...@gm...> - 2009年05月06日 23:52:56
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
>
From: Gökhan S. <gok...@gm...> - 2009年05月06日 23:48:42
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
>
From: John S. <pra...@ho...> - 2009年05月06日 23:41:00
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 
From: Christopher B. <Chr...@no...> - 2009年05月06日 23:25:16
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...
From: John S. <pra...@ho...> - 2009年05月06日 23:24:47
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 
From: Eric F. <ef...@ha...> - 2009年05月06日 23:14:46
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
> 
> 
> 
> 
> 
> 
From: Christopher B. <Chr...@no...> - 2009年05月06日 23:09:36
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...
From: Eric F. <ef...@ha...> - 2009年05月06日 22:30:30
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
> 
> 
> 
> 
From: Christopher B. <Chr...@no...> - 2009年05月06日 22:09:43
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...
From: John S. <pra...@ho...> - 2009年05月06日 21:53:51
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 
From: Christopher B. <Chr...@no...> - 2009年05月06日 21:46:34
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...
From: Eric F. <ef...@ha...> - 2009年05月06日 21:19:20
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
From: Eric F. <ef...@ha...> - 2009年05月06日 20:10:22
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
From: Sebastian P. <spc...@gm...> - 2009年05月06日 19:29:03
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?
From: Sebastian P. <sp...@gm...> - 2009年05月06日 19:26:43
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?
From: Christopher B. <Chr...@no...> - 2009年05月06日 19:11:13
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
From: Eric F. <ef...@ha...> - 2009年05月06日 19:03:46
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
22 messages has been excluded from this view by a project administrator.

Showing results of 523

<< < 1 .. 16 17 18 19 20 21 > >> (Page 18 of 21)
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /