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
(13) |
2
(11) |
3
|
4
(9) |
|
5
(3) |
6
(17) |
7
(24) |
8
(11) |
9
(26) |
10
(19) |
11
(4) |
|
12
(4) |
13
(14) |
14
(9) |
15
(5) |
16
(18) |
17
(23) |
18
(3) |
|
19
(1) |
20
(7) |
21
(27) |
22
(26) |
23
(6) |
24
(17) |
25
(1) |
|
26
|
27
(7) |
28
(1) |
29
(4) |
30
(5) |
|
|
|
From: Samuel M. S. <sm...@sa...> - 2006-11-21 19:27:18
|
I figured it out. It is saving the outside edge as transparent not
gray. I was viewing the images in Apple's preview and it
displays transparent as gray (not checkerboard like photoshop or
graphic converter).
Sorry.
On 21 Nov, 2006, at 12:21, John Hunter wrote:
>>>>>> "Samuel" == Samuel M Smith <sm...@sa...> writes:
>
> Samuel> I recently upgraded matplotlib 87.7 Mac OS X PPC 10.4
> Samuel> python 2.4 from sourceforge binary Using backend TkAgg
> Samuel> version 8.4
>
>
> Samuel> Whenever I save png plots using the toolbar save button or
> Samuel> explicitly, the edgecolor around the outside of the plot
> Samuel> is gray. I want it to be white.
>
> Samuel> I have the following in my rc file. savefig.edgecolor :
> Samuel> white # figure edgecolor when saving
>
> Samuel> I also tried this in my plotting program
> Samuel> rc('savefig',edgecolor = 'w')
>
> Samuel> and I also tried saving from the plotting program with
> Samuel> savefig("paths4test.png",edgecolor= 'w')
>
> Strange -- I don't see that. In the example below, the rows of
> [1,1,1,1] indicate white. What do you get?
>
>
> In [5]: plot([1,2,3])
> Out[5]: [<matplotlib.lines.Line2D instance at 0xb64dd74c>]
>
> In [6]: savefig('test.png')
>
> In [7]: im = imread('test.png')
>
> In [8]: im.shape
> Out[8]: (900, 1200, 4)
>
>
> In [10]: im[0:5,0:10,:]
> Out[10]:
> array([[[ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.]],
>
> [[ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.]],
>
> [[ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.]],
>
> [[ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.]],
>
> [[ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.]]], dtype=float32)
>
>
**********************************************************************
Samuel M. Smith Ph.D.
2966 Fort Hill Road
Eagle Mountain, Utah 84005-4108
801-768-2768 voice
801-768-2769 fax
**********************************************************************
"The greatest source of failure and unhappiness in the world is
giving up what we want most for what we want at the moment"
**********************************************************************
|
|
From: John H. <jdh...@ac...> - 2006-11-21 19:26:41
|
>>>>> "John" == John Hunter <jdh...@ac...> writes:
John> Strange -- I don't see that. In the example below, the rows
John> of [1,1,1,1] indicate white. What do you get?
And when I ask for red, I get that too:
In [1]: plot([1,2,3])
Out[1]: [<matplotlib.lines.Line2D instance at 0xb64c7f6c>]
In [2]: savefig('test.png', edgecolor='red')
In [3]: im = imread('test.png')
In [4]: im[0:5,0:10,:]
Out[4]:
array([[[ 1. , 0. , 0. , 1. ],
[ 1. , 0. , 0. , 1. ],
[ 1. , 0. , 0. , 1. ],
[ 1. , 0. , 0. , 1. ],
[ 1. , 0. , 0. , 1. ],
[ 1. , 0. , 0. , 1. ],
[ 1. , 0. , 0. , 1. ],
[ 1. , 0. , 0. , 1. ],
[ 1. , 0. , 0. , 1. ],
[ 1. , 0. , 0. , 1. ]],
[[ 1. , 0. , 0. , 1. ],
[ 1. , 0. , 0. , 1. ],
[ 1. , 0.45882353, 0.45882353, 1. ],
[ 1. , 0.45882353, 0.45882353, 1. ],
[ 1. , 0.45882353, 0.45882353, 1. ],
[ 1. , 0.45882353, 0.45882353, 1. ],
[ 1. , 0.45882353, 0.45882353, 1. ],
[ 1. , 0.45882353, 0.45882353, 1. ],
[ 1. , 0.45882353, 0.45882353, 1. ],
[ 1. , 0.45882353, 0.45882353, 1. ]],
[[ 1. , 0. , 0. , 1. ],
[ 1. , 0.45882353, 0.45882353, 1. ],
[ 1. , 1. , 1. , 1. ],
[ 1. , 1. , 1. , 1. ],
[ 1. , 1. , 1. , 1. ],
[ 1. , 1. , 1. , 1. ],
[ 1. , 1. , 1. , 1. ],
[ 1. , 1. , 1. , 1. ],
[ 1. , 1. , 1. , 1. ],
[ 1. , 1. , 1. , 1. ]],
[[ 1. , 0. , 0. , 1. ],
[ 1. , 0.45882353, 0.45882353, 1. ],
[ 1. , 1. , 1. , 1. ],
[ 1. , 1. , 1. , 1. ],
[ 1. , 1. , 1. , 1. ],
[ 1. , 1. , 1. , 1. ],
[ 1. , 1. , 1. , 1. ],
[ 1. , 1. , 1. , 1. ],
[ 1. , 1. , 1. , 1. ],
[ 1. , 1. , 1. , 1. ]],
[[ 1. , 0. , 0. , 1. ],
[ 1. , 0.45882353, 0.45882353, 1. ],
[ 1. , 1. , 1. , 1. ],
[ 1. , 1. , 1. , 1. ],
[ 1. , 1. , 1. , 1. ],
[ 1. , 1. , 1. , 1. ],
[ 1. , 1. , 1. , 1. ],
[ 1. , 1. , 1. , 1. ],
[ 1. , 1. , 1. , 1. ],
[ 1. , 1. , 1. , 1. ]]],
dtype=float32)
|
|
From: John H. <jdh...@ac...> - 2006-11-21 19:21:35
|
>>>>> "Samuel" == Samuel M Smith <sm...@sa...> writes:
Samuel> I recently upgraded matplotlib 87.7 Mac OS X PPC 10.4
Samuel> python 2.4 from sourceforge binary Using backend TkAgg
Samuel> version 8.4
Samuel> Whenever I save png plots using the toolbar save button or
Samuel> explicitly, the edgecolor around the outside of the plot
Samuel> is gray. I want it to be white.
Samuel> I have the following in my rc file. savefig.edgecolor :
Samuel> white # figure edgecolor when saving
Samuel> I also tried this in my plotting program
Samuel> rc('savefig',edgecolor = 'w')
Samuel> and I also tried saving from the plotting program with
Samuel> savefig("paths4test.png",edgecolor= 'w')
Strange -- I don't see that. In the example below, the rows of
[1,1,1,1] indicate white. What do you get?
In [5]: plot([1,2,3])
Out[5]: [<matplotlib.lines.Line2D instance at 0xb64dd74c>]
In [6]: savefig('test.png')
In [7]: im = imread('test.png')
In [8]: im.shape
Out[8]: (900, 1200, 4)
In [10]: im[0:5,0:10,:]
Out[10]:
array([[[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.]],
[[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.]],
[[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.]],
[[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.]],
[[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.]]], dtype=float32)
|
|
From: Samuel M. S. <sm...@sa...> - 2006-11-21 19:21:34
|
It also doesn't work with backend WXAgg version 2.6.3.3
On 21 Nov, 2006, at 12:13, Samuel M. Smith wrote:
> I recently upgraded matplotlib 87.7 Mac OS X PPC 10.4 python 2.4 from
> sourceforge binary
> Using backend TkAgg version 8.4
>
>
> Whenever I save png plots using the toolbar save button or explicitly,
> the edgecolor around the outside of the plot is gray. I want it to
> be white.
>
> I have the following in my rc file.
> savefig.edgecolor : white # figure edgecolor when saving
>
> I also tried this in my plotting program
> rc('savefig',edgecolor = 'w')
>
> and I also tried saving from the plotting program with
> savefig("paths4test.png",edgecolor= 'w')
>
> Nothing seems to work.
>
> I didn't have this problem with Matplotlib 85.x
>
>
>
> **********************************************************************
> Samuel M. Smith Ph.D.
> 2966 Fort Hill Road
> Eagle Mountain, Utah 84005-4108
> 801-768-2768 voice
> 801-768-2769 fax
> **********************************************************************
> "The greatest source of failure and unhappiness in the world is
> giving up what we want most for what we want at the moment"
> **********************************************************************
>
>
>
> ----------------------------------------------------------------------
> ---
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to
> share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?
> page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
**********************************************************************
Samuel M. Smith Ph.D.
2966 Fort Hill Road
Eagle Mountain, Utah 84005-4108
801-768-2768 voice
801-768-2769 fax
**********************************************************************
"The greatest source of failure and unhappiness in the world is
giving up what we want most for what we want at the moment"
**********************************************************************
|
|
From: Josh L. <li...@me...> - 2006-11-21 19:17:44
|
As I posted a couple of days ago, Ubuntu users have the following options to avoid old versions of MPL: * Upgrade to the Edgy (6.10) distribution, which uses MPL 0.87.5. Upgrading is easy, see http://www.ubuntu.com/download/releasenotes/610?highlight=%28edgy%29%7C%28upgrade%29 * Add a repository containing the newest MPL to your /etc/apt/sources.list. Such a repository was announced on this list a couple of days ago. * Compile MPL from source off the SVN repository. Cheers, Josh On Tue, 21 Nov 2006, Eric Firing wrote: > From my point of view, version 82-5 is simply too old to bother with. > In newer versions quiver has been completely rewritten including masked > array support. I recommend that you remove your ubuntu mpl package and > install the latest release from the source tarball. > > > Eric > > giovanni ruggiero wrote: > > Hi ALL, > > I am just starting to leave the matlab to work with matplotlib 82-5 in > > my ubuntu linux. I have problens to make a vector fild plots using > > quiver. I have a netcdf file that i extract a u_velocity and v_velocity > > variables, after i mask the array and try to quiver. i get the > > following error > > > > Traceback (most recent call last): > > File "<stdin>", line 1, in ? > > File "/usr/lib/python2.4/site-packages/matplotlib/pylab.py", line > > 2256, in quiver > > ret = gca().quiver(*args, **kwargs) > > File "/usr/lib/python2.4/site-packages/matplotlib/axes.py", line 828, > > in quiver > > U = asarray(U) > > File "/usr/lib/python2.4/site-packages/Numeric/Numeric.py", line 134, > > in asarray > > return multiarray.array(a, typecode, copy=0, savespace=savespace) > > File "/usr/lib/python2.4/site-packages/Numeric/MA/MA.py", line 632, in > > __array__ > > raise MAError, \ > > MA.MA.MAError: Cannot automatically convert masked array to Numeric > > because data > > is masked in one or more locations. > > > > > > But if i do not mask the array but i try to plot without the scale it > > gets the error : > > > > File "<stdin>", line 1, in ? > > File "/usr/lib/python2.4/site-packages/matplotlib/pylab.py", line > > 2256, in quiver > > ret = gca().quiver(*args, **kwargs) > > File "/usr/lib/python2.4/site-packages/matplotlib/axes.py", line 855, > > in quiver > > if Nmax == 0: #jb > > UnboundLocalError: local variable 'Nmax' referenced before assignment > > > > Could someone helps me? > > Thanks > > > > ------------------------------------------------------------------------ > > Novidade no Yahoo! Mail: receba alertas de novas mensagens no seu > > celular. Registre seu aparelho agora! > > <http://us.rd.yahoo.com/mail/br/tagline/mobile_alerts/*http://br.mobile.yahoo.com/mailalertas/> > > > > > > ------------------------------------------------------------------------ > > > > ------------------------------------------------------------------------- > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to share your > > opinions on IT & business topics through brief surveys - and earn cash > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Matplotlib-users mailing list > > Mat...@li... > > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
|
From: Samuel M. S. <sm...@sa...> - 2006-11-21 19:14:04
|
I recently upgraded matplotlib 87.7 Mac OS X PPC 10.4 python 2.4 from
sourceforge binary
Using backend TkAgg version 8.4
Whenever I save png plots using the toolbar save button or explicitly,
the edgecolor around the outside of the plot is gray. I want it to
be white.
I have the following in my rc file.
savefig.edgecolor : white # figure edgecolor when saving
I also tried this in my plotting program
rc('savefig',edgecolor = 'w')
and I also tried saving from the plotting program with
savefig("paths4test.png",edgecolor= 'w')
Nothing seems to work.
I didn't have this problem with Matplotlib 85.x
**********************************************************************
Samuel M. Smith Ph.D.
2966 Fort Hill Road
Eagle Mountain, Utah 84005-4108
801-768-2768 voice
801-768-2769 fax
**********************************************************************
"The greatest source of failure and unhappiness in the world is
giving up what we want most for what we want at the moment"
**********************************************************************
|
|
From: Eric F. <ef...@ha...> - 2006-11-21 19:02:32
|
From my point of view, version 82-5 is simply too old to bother with. In newer versions quiver has been completely rewritten including masked array support. I recommend that you remove your ubuntu mpl package and install the latest release from the source tarball. Eric giovanni ruggiero wrote: > Hi ALL, > I am just starting to leave the matlab to work with matplotlib 82-5 in > my ubuntu linux. I have problens to make a vector fild plots using > quiver. I have a netcdf file that i extract a u_velocity and v_velocity > variables, after i mask the array and try to quiver. i get the > following error > > Traceback (most recent call last): > File "<stdin>", line 1, in ? > File "/usr/lib/python2.4/site-packages/matplotlib/pylab.py", line > 2256, in quiver > ret = gca().quiver(*args, **kwargs) > File "/usr/lib/python2.4/site-packages/matplotlib/axes.py", line 828, > in quiver > U = asarray(U) > File "/usr/lib/python2.4/site-packages/Numeric/Numeric.py", line 134, > in asarray > return multiarray.array(a, typecode, copy=0, savespace=savespace) > File "/usr/lib/python2.4/site-packages/Numeric/MA/MA.py", line 632, in > __array__ > raise MAError, \ > MA.MA.MAError: Cannot automatically convert masked array to Numeric > because data > is masked in one or more locations. > > > But if i do not mask the array but i try to plot without the scale it > gets the error : > > File "<stdin>", line 1, in ? > File "/usr/lib/python2.4/site-packages/matplotlib/pylab.py", line > 2256, in quiver > ret = gca().quiver(*args, **kwargs) > File "/usr/lib/python2.4/site-packages/matplotlib/axes.py", line 855, > in quiver > if Nmax == 0: #jb > UnboundLocalError: local variable 'Nmax' referenced before assignment > > Could someone helps me? > Thanks > > ------------------------------------------------------------------------ > Novidade no Yahoo! Mail: receba alertas de novas mensagens no seu > celular. Registre seu aparelho agora! > <http://us.rd.yahoo.com/mail/br/tagline/mobile_alerts/*http://br.mobile.yahoo.com/mailalertas/> > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > > ------------------------------------------------------------------------ > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
|
From: John H. <jdh...@ac...> - 2006-11-21 19:00:48
|
>>>>> "Eric" == Eric Firing <ef...@ha...> writes:
Eric> Yes, it should be !=0. The purpose is to show how sparse a
Eric> matrix is--how much is filled with zeros--by displaying the
Eric> non-zero entries.
OK I fixed it. Thanks.
JDH
|
|
From: giovanni r. <oc...@ya...> - 2006-11-21 18:34:09
|
Hi ALL,=0AI am just starting to leave the matlab to work with matplotlib 82=
-5 in my ubuntu linux. I have problens to make a vector fild plots using qu=
iver. I have a netcdf file that i extract a u_velocity and v_velocity varia=
bles, after i mask the array and try to quiver. i get the following error =
=0A=0ATraceback (most recent call last):=0A File "<stdin>", line 1, in ?=
=0A File "/usr/lib/python2.4/site-packages/matplotlib/pylab.py", line 2256=
, in quiver=0A ret =3D gca().quiver(*args, **kwargs)=0A File "/usr/lib=
/python2.4/site-packages/matplotlib/axes.py", line 828, in quiver=0A U =
=3D asarray(U)=0A File "/usr/lib/python2.4/site-packages/Numeric/Numeric.p=
y", line 134, in asarray=0A return multiarray.array(a, typecode, copy=3D=
0, savespace=3Dsavespace)=0A File "/usr/lib/python2.4/site-packages/Numeri=
c/MA/MA.py", line 632, in __array__=0A raise MAError, \=0AMA.MA.MAError:=
Cannot automatically convert masked array to Numeric because data=0A =
is masked in one or more locations.=0A=0A=0ABut if i do not m=
ask the array but i try to plot without the scale it gets the error :=0A=
=0A File "<stdin>", line 1, in ?=0A File "/usr/lib/python2.4/site-packages=
/matplotlib/pylab.py", line 2256, in quiver=0A ret =3D gca().quiver(*ar=
gs, **kwargs)=0A File "/usr/lib/python2.4/site-packages/matplotlib/axes.py=
", line 855, in quiver=0A if Nmax =3D=3D 0: #jb=0AUnboundLocalError: loc=
al variable 'Nmax' referenced before assignment=0A=0ACould someone helps me=
?=0AThanks=0A=0A=0A=0A=0A=09=09=0A_________________________________________=
______________ =0AYahoo! Acesso Gr=E1tis - Internet r=E1pida e gr=E1tis. In=
stale =0Ao discador agora! =0Ahttp://br.acesso.yahoo.com |
|
From: Eric F. <ef...@ha...> - 2006-11-21 17:55:09
|
John Hunter wrote: ... > I am not a spy user, though I wrote it. I assume the test should be Z!=0? > > Note spy2 (which arguably makes a nicer plot) has the same potential > problem. If there is consensus that it should be !=0 I am happy to > change it. Yes, it should be !=0. The purpose is to show how sparse a matrix is--how much is filled with zeros--by displaying the non-zero entries. Eric |
|
From: Gary <pa...@in...> - 2006-11-21 17:39:54
|
I'm trying to upgrade things. Upon doing so, I find that pylab gives a warning about not finding wxmsw26uh_vc.dll A search suggested that I need the unicode version of wx. I installed that, but still get the same message. (Thinking I accidently installed the ansi version, I downloaded and installed the unicode version again.) what do you think? -gary |
|
From: John H. <jdh...@ac...> - 2006-11-21 17:34:08
|
>>>>> "Robert" == Robert Cimrman <cim...@nt...> writes:
Robert> It looks like the 'spy' function ignores negative values
Robert> (matplotlib 0.87.5).
Robert> In [30]:spy( ones( (5, 5) ) )[0].get_xdata() Out[30]:
Robert> array([ 0.5, 0.5, 0.5, 0.5, 0.5, 1.5, 1.5, 1.5, 1.5, 1.5,
Robert> 2.5, 2.5, 2.5, 2.5, 2.5, 3.5, 3.5, 3.5, 3.5, 3.5, 4.5,
Robert> 4.5, 4.5, 4.5, 4.5])
Robert> In [31]:spy( -ones( (5, 5) ) )[0].get_xdata()
Robert> Out[31]:array([], type=Float)
The implementation of spy is pretty simple:
def spy(self, Z, marker='s', markersize=10, **kwargs):
"""
SPY(Z, **kwargs) plots the sparsity pattern of the matrix Z
using plot markers.
The line handles are returned
kwargs control the Line2D properties of the markers:
%(Line2D)s
"""
if hasattr(Z, 'tocoo'):
c = Z.tocoo()
x = c.row
y = c.col
z = c.data
else:
x,y,z = matplotlib.mlab.get_xyz_where(Z, Z>0)
return self.plot(x+0.5,y+0.5, linestyle='None',
marker=marker,markersize=markersize, **kwargs)
I am not a spy user, though I wrote it. I assume the test should be Z!=0?
Note spy2 (which arguably makes a nicer plot) has the same potential
problem. If there is consensus that it should be !=0 I am happy to
change it.
JDH
|
|
From: Robert C. <cim...@nt...> - 2006-11-21 17:21:48
|
It looks like the 'spy' function ignores negative values (matplotlib
0.87.5).
In [30]:spy( ones( (5, 5) ) )[0].get_xdata()
Out[30]:
array([ 0.5, 0.5, 0.5, 0.5, 0.5, 1.5, 1.5, 1.5, 1.5, 1.5,
2.5, 2.5, 2.5, 2.5, 2.5, 3.5, 3.5, 3.5, 3.5, 3.5,
4.5, 4.5, 4.5, 4.5, 4.5])
In [31]:spy( -ones( (5, 5) ) )[0].get_xdata()
Out[31]:array([], type=Float)
regards,
r.
|
|
From: John H. <jdh...@ac...> - 2006-11-21 16:49:24
|
>>>>> "Simson" == Simson Garfinkel <si...@ac...> writes:
Simson> Well, I manually installed pytz and got this error: File
Simson> "make_stats.py", line 184, in ? do_plot(hosts['ec2'])
Simson> File "make_stats.py", line 80, in do_plot from
Simson> matplotlib.dates import MonthLocator, WeekdayLocator,
Simson> DateFormatter File
Simson> "/Library/Frameworks/Python.framework/Versions/2.4/lib/
Simson> python2.4/site-packages/matplotlib/dates.py", line 92, in
Simson> ? from dateutil.rrule import rrule, MO, TU, WE, TH, FR,
Simson> SA, SU, YEARLY, \ ImportError: No module named
Simson> dateutil.rrule
Simson> So I did a fresh install of matplotlib from darwinports
Simson> (port install py-matplotlib) and now I'm getting the SAME
Simson> ERROR...
When you install matplotlib from src, it automatically installs pytz
and dateutil if they are not already on your system. The darwinports
build may be broken. Try grabbing datetuil yourself and installing it
-- it's pure python so it should be easy.
http://labix.org/python-dateutil
JDH
|
|
From: John H. <jdh...@ac...> - 2006-11-21 16:44:50
|
>>>>> "Willi" == Willi Richert <w.r...@gm...> writes:
Willi> Thanks, that solved that problem, but if I use
Willi> 'label="blabla"' in scatter, it does not show up in the
Willi> legend. Only the label of the Polygon is shown.
There was a bug in the axes autolegend code that was preventing
scatter from being picked up but I have fixed it in svn. Note that
automatically making a legend entry with scatter is a bit problematic,
since scatter can use many different colors. We have a poor-man's
compromise, which is to make a rectangle the sample color as the first
scatter point plotted.
JDH
|
|
From: Simson G. <si...@ac...> - 2006-11-21 12:49:34
|
Well, I manually installed pytz and got this error:
File "make_stats.py", line 184, in ?
do_plot(hosts['ec2'])
File "make_stats.py", line 80, in do_plot
from matplotlib.dates import MonthLocator, WeekdayLocator,
DateFormatter
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/matplotlib/dates.py", line 92, in ?
from dateutil.rrule import rrule, MO, TU, WE, TH, FR, SA, SU,
YEARLY, \
ImportError: No module named dateutil.rrule
So I did a fresh install of matplotlib from darwinports (port install
py-matplotlib) and now I'm getting the SAME ERROR...
Any thoughts?
On Nov 20, 2006, at 7:36 PM, Simson Garfinkel wrote:
> I'm using matplotlib on a Mac. I tried to do a date plot but got an
> error message that pytz is not installed. According to the "using
> matplotlib" tutorial pytz it is supposed to be installed
> automatically...
>
> Traceback (most recent call last):
> File "make_stats.py", line 184, in ?
> do_plot(hosts['ec2'])
> File "make_stats.py", line 80, in do_plot
> from matplotlib.dates import MonthLocator, WeekdayLocator,
> DateFormatter
> File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
> python2.4/site-packages/matplotlib/dates.py", line 89, in ?
> from pytz import timezone
> ImportError: No module named pytz
> [simsong@Black s3bandwidth] %
>
> Any
> cue?------------------------------------------------------------------
> -------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to
> share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?
> page=join.php&p=sourceforge&CID=DEVDEV________________________________
> _______________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
|
|
From: Simson G. <si...@ac...> - 2006-11-21 12:08:58
|
The information about Robery Kern and MacEnthon is out of date and should be removed or updated. I've tried to find an updated version of MacEnthon on the Enthon site and haven't been able to find it... |
|
From: Willi R. <w.r...@gm...> - 2006-11-21 08:20:50
|
Am Montag, 20. November 2006 16:15 schrieb John Hunter: > >>>>> "Willi" == Willi Richert <w.r...@gm...> writes: > > Willi> Hi, how can I draw the scatter squares in front of the > Willi> Polygon? > > Set the zorder of the PolyCollection (what scatter uses) to be higher > than the zorder of the Polygon > > col = ax.scatter(x,y, color="b", s=150, marker="s", alpha=0.2, > zorder=Polygon.zorder+1) > > > JDH Thanks, that solved that problem, but if I use 'label="blabla"' in scatter, it does not show up in the legend. Only the label of the Polygon is shown. wr |
|
From: Simson G. <si...@ac...> - 2006-11-21 03:52:45
|
I'm using matplotlib on a Mac. I tried to do a date plot but got an
error message that pytz is not installed. According to the "using
matplotlib" tutorial pytz it is supposed to be installed
automatically...
Traceback (most recent call last):
File "make_stats.py", line 184, in ?
do_plot(hosts['ec2'])
File "make_stats.py", line 80, in do_plot
from matplotlib.dates import MonthLocator, WeekdayLocator,
DateFormatter
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/matplotlib/dates.py", line 89, in ?
from pytz import timezone
ImportError: No module named pytz
[simsong@Black s3bandwidth] %
Any cue? |
|
From: Emmanuel <emm...@fa...> - 2006-11-20 18:47:42
|
On 11/20/06, Christopher Barker <Chr...@no...> wrote: > > Emmanuel Favre-Nicolin wrote: > >> 2) I'd recommend wx MPL, it's a nice way to embed MPL in wx -- it > >> handles much of this for you.: > >> > >> http://agni.phys.iit.edu/~kmcivor/wxmpl/ > > > > I've already heard a little bit of this package. Only problem is that > there > > is no installer yet if I didn't miss it, I would have to prepare an > ebuild > > and also to install on windows too, something I never did. > > You don't need an installer -- it's a simple python-only module. It > includes a setup.py file: > > python setup.py install > should do it. Yes okay, I=B4m just more confortable with using package which come with instalador, especially in this case because I need the program to run on windows. On linux, I can prepare the package (but it takes some time) > I don't know what > > would be the faster for me, maybe going further with matplotlib > directly, > > maybe I'm wrong. > > wxMPL would have been faster -- and it still might be a good idea - > there's some good stuff in there. Okay, maybe but right know it's running perfectly and I have a panel that I can reuse easily in any wxpython application! (and I was willing to understand) > I just have one question : why is the wxTIMER passing 2 parameters to > method > > app.frame1.panel_graf? > > I putted an dummy second parameter to solve this problem (without > > understanding the reason for that!) > > A wxTimer uses the standard wx event system to do it's stuff. Every time > an event calls a handler, it passes in the event itself, which often has > useful information in it (like the coordinates of a mouse, event, for > instance), so event handlers usually have a signature like: > > def MyCallback(self, event): > > > I often use: > > def MyCallback(self, event=3DNone): oh yes, exactly that! so that I can call the handler from other code as well. > > > when printing the dummy_parameter it returns : > > <wx._misc.TimerEvent; proxy of C++ wxTimerEvent instance at > > _a4149bbf_p_wxTimerEvent> > > exactly -- you're getting a timer event object. > > -Chris > |
|
From: Christopher B. <Chr...@no...> - 2006-11-20 17:49:56
|
Hi all, I just had to do a re0install, and tried the packages for python 2.4 on pythonmac.org the matplotlib package: matplotlib-0.87.7-py2.4-macosx10.4.dmg Doesn't seem to work with the wxPython package: wxPython2.6-osx-unicode-2.6.3.3-universal10.4-py2.4.dmg What version was it built against? What version of numpy, while I'm at it. We should try to make sure all the stuff at pythonmac is compatible. -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...> - 2006-11-20 17:43:51
|
Emmanuel Favre-Nicolin wrote: >> 2) I'd recommend wx MPL, it's a nice way to embed MPL in wx -- it >> handles much of this for you.: >> >> http://agni.phys.iit.edu/~kmcivor/wxmpl/ > > I've already heard a little bit of this package. Only problem is that there > is no installer yet if I didn't miss it, I would have to prepare an ebuild > and also to install on windows too, something I never did. You don't need an installer -- it's a simple python-only module. It includes a setup.py file: python setup.py install should do it. > I don't know what > would be the faster for me, maybe going further with matplotlib directly, > maybe I'm wrong. wxMPL would have been faster -- and it still might be a good idea - there's some good stuff in there. > I just have one question : why is the wxTIMER passing 2 parameters to method > app.frame1.panel_graf? > I putted an dummy second parameter to solve this problem (without > understanding the reason for that!) A wxTimer uses the standard wx event system to do it's stuff. Every time an event calls a handler, it passes in the event itself, which often has useful information in it (like the coordinates of a mouse, event, for instance), so event handlers usually have a signature like: def MyCallback(self, event): I often use: def MyCallback(self, event=None): so that I can call the handler from other code as well. > when printing the dummy_parameter it returns : > <wx._misc.TimerEvent; proxy of C++ wxTimerEvent instance at > _a4149bbf_p_wxTimerEvent> exactly -- you're getting a timer event object. -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 H. <jdh...@ac...> - 2006-11-20 15:15:52
|
>>>>> "Willi" == Willi Richert <w.r...@gm...> writes:
Willi> Hi, how can I draw the scatter squares in front of the
Willi> Polygon?
Set the zorder of the PolyCollection (what scatter uses) to be higher
than the zorder of the Polygon
col = ax.scatter(x,y, color="b", s=150, marker="s", alpha=0.2, zorder=Polygon.zorder+1)
JDH
|
|
From: Seweryn K. <sk...@po...> - 2006-11-20 13:50:23
|
Hello, How to set linewidth for bars and legend rectangle separately? I need thick edge of bars but the rectangle line in legend could have the linewidth set to 0.5. In matplotlibrc file I have: patch.linewidth : 2.0 Another question concerns the numbers of x-axis and y-axis. I the left bottom corner the numbers of both axes overlap. I would like to have the numbers of y-axis placed a little bit to the left. How to do it? Regards, SK |
|
From: Willi R. <w.r...@gm...> - 2006-11-20 13:08:42
|
Hi,
how can I draw the scatter squares in front of the Polygon?
from pylab import *
x,y = zip(*randn(10,2))
ax=subplot(111)
xRange=(-10,10)
yRange=xRange
poly = Polygon([(xRange[0], yRange[0]), (xRange[0], yRange[1]), (0, yRange[1]), (0, yRange[0])],
facecolor='0.7', edgecolor='0.6', alpha=0.0)
ax.add_patch(poly)
ax.scatter(x,y, color="b", s=150, marker="s", alpha=0.2)
show()
Regards,
wr
|