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
(35) |
2
(29) |
3
(12) |
4
|
5
(8) |
6
(5) |
|
7
(3) |
8
(38) |
9
(15) |
10
(20) |
11
(14) |
12
(12) |
13
(17) |
|
14
(6) |
15
(41) |
16
(38) |
17
(31) |
18
(7) |
19
(14) |
20
(12) |
|
21
(3) |
22
(3) |
23
(15) |
24
(4) |
25
|
26
(3) |
27
(2) |
|
28
(7) |
29
(16) |
30
(17) |
31
(10) |
|
|
|
|
From: Fago, M. - A. <Mat...@it...> - 2008-12-08 15:10:50
|
So what is to be done here? It seems to me that at least the factor of two should be fixed for one-sided PSDs, and the 1/fs normalization difference with Matlab documented. Ideally, I'd think this normalization would be on by default, with the option to turn it off. Are you planning to submit a patch, or shall I look into it? If I submit a patch, does matplotlib require a copyright assignment? Thanks, Matt ________________________________________ From: Ryan May [rm...@gm...] Sent: Monday, December 01, 2008 3:31 PM To: Fago, Matt - AES Cc: Matplotlib Users Subject: Re: [Matplotlib-users] Matplotlib PSD bug? Fago, Matt - AES wrote: > I suppose the issue is: what is correct? Or is it a matter of definition? > > I don't have Stoica and Moses, but Bendat and Piersol eqn 11.102: > > One_Sided_PSD = 2/(n_d * N * dt) * Sum(FFT^2) > > where there are n_d is the number of averages and N is the number of points in the FFT. > That seems to be scaling by the length? I'm fairly certain that the factor of two (as shown > above) is required for a one-sided PSD, as that comes from 'removing' the negative > frequency range. > > Note that Matlab shows such scaling (by 2/L) even when computing the power spectra directly > from a raw (unaveraged) FFT: > > http://www.mathworks.com/support/tech-notes/1700/1702.html > > To me, as Matplotlib is striving to be Matlab-compatible, the default behaviour should be to > give results as close to the Matlab implementation as possible. One could always have an > option to turn off the scaling. Yeah, scaling by a factor of two for one-sided is definitely correct now that I think about it. Note, however, that the scaling by the length is not the problem. In fact, the current psd implementation does this correctly when it corrects for the power in the window. The problem stems from matlab scaling by the sampling frequency. Stoica and Moses don't do this, nor does Welch 1967. I'm all for doing things in a Matlab-compatible way--when they're correct. One of the reasons I stopped using Matlab was that it tried to be too smart for me. > Note that the Matplotlib results also seem to have significantly less frequency resolution than > the Matlab results. Is this the case, or am I not using noffset, nfft, and pad_to correctly? It's not that you're using those incorrectly, but rather that you failed to notice that the default window is the Hanning window, not rectangular. Try adding window=mlab.window_none to the call. (Sorry, I meant to mention that before in my reply. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma This e-mail and any files transmitted with it may be proprietary and are intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the sender. Please note that any views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of ITT Corporation. The recipient should check this e-mail and any attachments for the presence of viruses. ITT accepts no liability for any damage caused by any virus transmitted by this e-mail. |
|
From: Roy H. H. <sta...@gm...> - 2008-12-08 13:55:46
|
Cool! Thanks. pyplot.subplots_adjust seems to be some kind of "super" function that controls margins for the entire figure as well as spacing between the subplots. On Mon, Dec 8, 2008 at 1:32 AM, Pierre GM <pgm...@gm...> wrote: > > On Dec 8, 2008, at 1:09 AM, Roy H. Han wrote: > > > I figured it out. > > Specifically, I need to use pylab.Axes(figure, [left, bottom, width, > > height]) where each value in the frame is between 0 and 1 > > [.2,.1,.7,.8] > > means > > 20 percent margin on left > > 10 percent margin on bottom > > 10 percent margin on right (1 - .2 - .7) > > 10 percent margin on top (1 - .1 - .8) > > > Yep, you got it. > Now, you can also use the simpler `pyplot.subplots_adjust` as a > function, or as a method for your figure. That way, you're not tied to > defining the positions at the creation of your subplot. > > > > > ------------------------------------------------------------------------------ > SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. > The future of the web can't happen without you. Join us at MIX09 to help > pave the way to the Next Web now. Learn more and register at > > http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
|
From: Mauro C. <mau...@gm...> - 2008-12-08 13:33:20
|
Dear Jeff, 2008/12/8 Jeff Whitaker <js...@fa...>: > Mauro: I realized that this is actually possible with the Cassini > projection (the transverse aspect of the cylindrical equidistant). > > Don't know why you would actually do it though, if you want to show polar > regions you should probably use the polar stereographic maps (npstere, > spstere). I had not yet had time to try Cassini's before receiving your posting. As Scott already pointed out, no doubt the polar projections are more adequate to representing the poles (pretty obvious!). I just intended to try making the most parsimonious use of the Basemap parameters :-). The polar stereographic are nice, but what about the polar azimuthal, that also look good? Just curious. Best regards, -- Dr. Mauro J. Cavalcanti Ecoinformatics Studio P.O. Box 46521, CEP 20551-970 Rio de Janeiro, RJ, BRASIL E-mail: mau...@gm... Web: http://studio.infobio.net Linux Registered User #473524 * Ubuntu User #22717 "Life is complex. It consists of real and imaginary parts." |
|
From: Mauro C. <mau...@gm...> - 2008-12-08 13:22:10
|
Dear Jeff, 2008/12/8 Jeff Whitaker <js...@fa...>: > Mauro: I just updated SVN basemap so you can specify just lon_0 for all > cylindrical projections (cyl,gall,merc,mill) to get a global map centered on > lon_0 (implying > llcrnrlat=-90,urcrnrlat=90,llcrnrlon=lon_0-180,urcrnrlon=lon_0+180). Excellent! Will however have to change my Basemap installation to the SVN repository. > No. Cylindrical projections can't cross the poles. Just figured this out, by trial-and-error. BTW, these explorations led me to comment that biogeographers (almost all of them biologists like myself) have seldom (or never!) paid attention to the question of map projections! This by itself should merit a scientific paper! So, Basemap may also be lending to scientific insights... Exciting, isn't it? More soon.... ;-) Best wishes, -- Dr. Mauro J. Cavalcanti Ecoinformatics Studio P.O. Box 46521, CEP 20551-970 Rio de Janeiro, RJ, BRASIL E-mail: mau...@gm... Web: http://studio.infobio.net Linux Registered User #473524 * Ubuntu User #22717 "Life is complex. It consists of real and imaginary parts." |
|
From: Jeff W. <js...@fa...> - 2008-12-08 13:13:21
|
Mauro Cavalcanti wrote:
> Dear Jeff,
>
> 2008/12/7 Jeff Whitaker <js...@fa...>:
>
>> Mauro: Just set the llrncrlat,urcrnrlon appropriately. For instance,
>> llcrnrlon=0, urcrnrlon=360 will produce a map centered on the dateline while
>> llcrnrlon=-180, urcrnrlon=180 will produce a map centered on Greenwich.
>>
>
> Thanks! I had not figured out that the decimal coordinates used by
> Basemap range from 0 to 360 (and not just from -180 to 180). Using
> this tip, I could also create a map centered on the Indian Ocean. BTW,
> by varying the llcrnrlat and urcrnrlat, can one also create maps
> centered on the North and South poles using a Equirectangular
> projection?
>
Mauro: I realized that this is actually possible with the Cassini
projection (the transverse aspect of the cylindrical equidistant).
from mpl_toolkits.basemap import Basemap
import matplotlib.pyplot as plt
width=20000000
m = Basemap(lon_0=0,lat_0=0,projection='cass',\
width=0.75*width,height=2*width)
m.drawcoastlines()
m.fillcontinents(color='coral',lake_color='aqua')
m.drawparallels(range(-80,81,21))
m.drawmeridians(range(-180,181,60))
m.drawmapboundary(fill_color='aqua')
plt.show()
Don't know why you would actually do it though, if you want to show
polar regions you should probably use the polar stereographic maps
(npstere, spstere).
-Jeff
> With best regards,
>
>
--
Jeffrey S. Whitaker Phone : (303)497-6313
NOAA/OAR/CDC R/PSD1 FAX : (303)497-6449
325 Broadway Boulder, CO, USA 80305-3328
|
|
From: Jeff W. <js...@fa...> - 2008-12-08 12:53:57
|
Mauro Cavalcanti wrote: > Dear Jeff, > > 2008/12/7 Jeff Whitaker <js...@fa...>: > >> Mauro: Just set the llrncrlat,urcrnrlon appropriately. For instance, >> llcrnrlon=0, urcrnrlon=360 will produce a map centered on the dateline while >> llcrnrlon=-180, urcrnrlon=180 will produce a map centered on Greenwich. >> > > Thanks! I had not figured out that the decimal coordinates used by > Basemap range from 0 to 360 (and not just from -180 to 180). Mauro: I just updated SVN basemap so you can specify just lon_0 for all cylindrical projections (cyl,gall,merc,mill) to get a global map centered on lon_0 (implying llcrnrlat=-90,urcrnrlat=90,llcrnrlon=lon_0-180,urcrnrlon=lon_0+180). > Using > this tip, I could also create a map centered on the Indian Ocean. BTW, > by varying the llcrnrlat and urcrnrlat, can one also create maps > centered on the North and South poles using a Equirectangular > projection? > No. Cylindrical projections can't cross the poles. -Jeff > With best regards, > > -- Jeffrey S. Whitaker Phone : (303)497-6313 NOAA/OAR/CDC R/PSD1 FAX : (303)497-6449 325 Broadway Boulder, CO, USA 80305-3328 |
|
From: Mauro C. <mau...@gm...> - 2008-12-08 12:14:50
|
Dear Jeff, 2008/12/7 Jeff Whitaker <js...@fa...>: > Mauro: Just set the llrncrlat,urcrnrlon appropriately. For instance, > llcrnrlon=0, urcrnrlon=360 will produce a map centered on the dateline while > llcrnrlon=-180, urcrnrlon=180 will produce a map centered on Greenwich. Thanks! I had not figured out that the decimal coordinates used by Basemap range from 0 to 360 (and not just from -180 to 180). Using this tip, I could also create a map centered on the Indian Ocean. BTW, by varying the llcrnrlat and urcrnrlat, can one also create maps centered on the North and South poles using a Equirectangular projection? With best regards, -- Dr. Mauro J. Cavalcanti Ecoinformatics Studio P.O. Box 46521, CEP 20551-970 Rio de Janeiro, RJ, BRASIL E-mail: mau...@gm... Web: http://studio.infobio.net Linux Registered User #473524 * Ubuntu User #22717 "Life is complex. It consists of real and imaginary parts." |
|
From: Pierre GM <pgm...@gm...> - 2008-12-08 06:32:55
|
On Dec 8, 2008, at 1:09 AM, Roy H. Han wrote: > I figured it out. > Specifically, I need to use pylab.Axes(figure, [left, bottom, width, > height]) where each value in the frame is between 0 and 1 > [.2,.1,.7,.8] > means > 20 percent margin on left > 10 percent margin on bottom > 10 percent margin on right (1 - .2 - .7) > 10 percent margin on top (1 - .1 - .8) Yep, you got it. Now, you can also use the simpler `pyplot.subplots_adjust` as a function, or as a method for your figure. That way, you're not tied to defining the positions at the creation of your subplot. |
|
From: Roy H. H. <sta...@gm...> - 2008-12-08 06:09:24
|
I figured it out.
Specifically, I need to use pylab.Axes(figure, [left, bottom, width,
height]) where each value in the frame is between 0 and 1
[.2,.1,.7,.8]
means
20 percent margin on left
10 percent margin on bottom
10 percent margin on right (1 - .2 - .7)
10 percent margin on top (1 - .1 - .8)
figure = pylab.figure()
axes = pylab.Axes(figure, [.2,.1,.7,.8]) # [left, bottom, width, height]
where each value is between 0 and 1
figure.add_axes(axes)
axes.barh(selectedFeatureNumbers, alphas, align='center')
axes.set_xlabel('Weights set by ViolaJones')
axes.set_title(title)
axes.set_yticks(selectedFeatureNumbers)
axes.set_yticklabels([dictionary[x][0] for x in selectedFeatureNumbers])
for tick in axes.yaxis.get_major_ticks(): tick.label1.set_fontsize(6)
pylab.savefig('%s.png' % title)
On Mon, Dec 8, 2008 at 12:56 AM, Roy H. Han <
sta...@gm...> wrote:
> Hi,
>
> Is there a way to increase the left-margin of pylab plots? Specifically
> I'm trying to make enough space so that the text labels on the left are
> visible. I tried decreasing the font size of the labels but it isn't
> enough.
>
> Thanks,
> RHH
>
|
|
From: Roy H. H. <sta...@gm...> - 2008-12-08 05:56:05
|
Hi, Is there a way to increase the left-margin of pylab plots? Specifically I'm trying to make enough space so that the text labels on the left are visible. I tried decreasing the font size of the labels but it isn't enough. Thanks, RHH |
|
From: Elfnor <el...@gm...> - 2008-12-08 01:00:17
|
Thomas Pfaff-3 wrote: > > Hi, > > does that mean that it works for you with PyScripter? > Right now the only way to do more than one plot with MPL with PyScripter > is > to reinitialize the remote python interpreter over and over again. > If you found a way around that I would be glad to hear about it. > > ... > I can get two plots from Pyscripter as follows: Find out where your matplotlibrc file is >>> import matplotlib >>>matplotlib.get_configdir() 'H:\\.matplotlib' edit the matplotlib file in this directory (or copy the example from the matplotlib site)to set interactive to True and the backend to one of the Tk or wx options: backend : WXAgg ... interactive : True # see http://matplotlib.sourceforge.net/interactive.html make sure there is no # at the front of the interactive line Choose the matching external Python Engine in PyScripter ie. Run>Python Engine > Remote (Wx) Then this example should give two interactive plots: >>> import pylab >>> pylab.figure(1) >>> pylab.plot([1,2,3]) >>> pylab.xlabel('X label for 1st plot') >>> pylab.figure(2) >>> pylab.plot([10,20,30]) >>> pylab.xlabel('X label for 2nd plot') go back and add a y label to the first plot >>> pylab.figure(1) >>> pylab.ylabel('Y label for 1st plot') -- View this message in context: http://www.nabble.com/Can-matplotlib-be-run-from-PythonWin-IDE-in-interactive-mode--tp20822638p20888060.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
|
From: Jeff W. <js...@fa...> - 2008-12-08 00:37:25
|
Mauro Cavalcanti wrote: > Dear Jeffrey, > > 2008/12/6 Jeff Whitaker <js...@fa...>: > > >> Mauro: There never actually was a Basemap 0.90 - could you check that >> version number again with >> > > Sorry, my reference to a "0.90" version was a typo! Indeed, I have version 0.99 > > Thanks for the information on the drawing of rivers; I will see how I > can provide this feature to users, warning them that the first plot > may take some time to complete. > > BTW, even if there are reasons for the slowness of river plotting and > Blue Marble superimposition, have you any information on the most > appropriate hardware requirements for getting the fastest plots in > these cases? > Mauro: All I can say is, the faster the better. > As of volunteers for helping with the Basemap documentation, count me > in, just after I have my current project finished (hopefully by the > next month). One idea I have is creating a "Basemap Cookbook" website, > essentially presenting all the examples included in the current > distribution, plus a few others (as the additional example for > plotting shapefiles that you posted on the list a few days ago). > Great. -Jeff > With warmest regards, > > -- Jeffrey S. Whitaker Phone : (303)497-6313 NOAA/OAR/CDC R/PSD1 FAX : (303)497-6449 325 Broadway Boulder, CO, USA 80305-3328 |
|
From: Jeff W. <js...@fa...> - 2008-12-08 00:36:35
|
Mauro Cavalcanti wrote: > Dear Jeffrey & ALL, > > Are there any way to plot a Basemap using a standard Equidistant > Cylindrical Projection, but centered on the Pacific Basin instead of > the default plot? This can be done easily with all projections that > require just a center point at lat_0, long_0 (Robinson, Mollweide, > Orthographic, Geostationary) but could not figure out how to do this > in projections that require a bounding rectangle to be defined (as is > the case with the Equidistant Cylindrical). > > Thanks in advance! > > With best regards, > > Mauro: Just set the llrncrlat,urcrnrlon appropriately. For instance, llcrnrlon=0, urcrnrlon=360 will produce a map centered on the dateline while llcrnrlon=-180, urcrnrlon=180 will produce a map centered on Greenwich. -Jeff -- Jeffrey S. Whitaker Phone : (303)497-6313 NOAA/OAR/CDC R/PSD1 FAX : (303)497-6449 325 Broadway Boulder, CO, USA 80305-3328 |