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
(8) |
2
(14) |
3
(22) |
4
(13) |
5
(11) |
6
(12) |
7
(4) |
|
8
(6) |
9
(19) |
10
(14) |
11
(16) |
12
(6) |
13
(15) |
14
(6) |
|
15
(8) |
16
(22) |
17
(17) |
18
(8) |
19
(16) |
20
(19) |
21
(3) |
|
22
(6) |
23
(18) |
24
(26) |
25
(17) |
26
(13) |
27
(18) |
28
(8) |
|
29
|
30
(14) |
31
(30) |
|
|
|
|
|
From: Jeff W. <js...@fa...> - 2009-03-07 23:04:32
|
Pablo Romero wrote: > Jeff, > > Here's a link to the website that's creating the basemap plots with > the "H"'s and "L"'s: > > http://magicseaweed.com/msw-surf-charts2.php?chart=64&res=750&type=pressure&starttime= > > > As you can see, this website's "pressure chart" interface is based on > creating individual images for each point in a time series. And, if > you click on any one of the "region" links below the plot, you'll be > presented with the same pressure plot for a sub-region; obviously, > this needs to be based on an automated process, since I seriously > doubt someone is manually creating each plot for each time step for > each "sub-region" in their catalog...bottom line, there MUST be a > systematic way to add those "H" and "L" characters to closed contours > that are local min/max AND that are LARGE enough to hold an "H" or "L" > character (as you mentioned, some of the smaller closed contours dont > display the 'H'/'L' characters). > > > So the big question is: how could one go about setting something like > this up??? > Do you think it would be possible to accomplish this with the > function/tutorial you provided??? > If so, could you please help me understand a little more how I would > go about using that function? (sorry, I wasnt very clear on how it > should be applied to this problem). > > > I know for a fact that this website is using matplotlib/basemap to > create these plots. Theyre using a python interface to > matplolib/basemap named 'pygrads'; it provides basemap/mpl plotting > capabilities to an existing application named GrADS. I just dont know > how the heck they got those "H/L" characters there.... > > Thanks again for the help, > > Pablo Pablo: I've added a script (attached to this email) called "plothighsandlows.py" in the basemap examples directory that shows how to do this. It uses scipy.ndimage.filters, so you'll need to have scipy installed to run it. -Jeff > > > > ---------------------------------------- >> Date: Fri, 6 Mar 2009 06:07:10 -0700 >> From: js...@fa... >> To: rom...@ho... >> CC: mat...@li... >> Subject: Re: [Matplotlib-users] plotting air pressure data with >> contour() function >> >> Jeff Whitaker wrote: >>> Pablo Romero wrote: >>> >>>> Hello, >>>> I have a question about plotting pressure contours with matplotlib. >>>> >>>> I've seen other applications using matplotlib where the pressure >>>> contours are drawn with annoted text "H" and "L" characters being >>>> drawn in the centers of closed contours... >>>> >>>> i.e., if there is a closed contour line, and its value is over a >>>> certain threshold value, plot an "H" to indicate a "high pressure >>>> zone", else plot a "L" to indicate a "low pressure zone." >>>> >>>> This is standard weather map plotting stuff, and Ive definitely >>>> seen other plots produced using matplotlib that inlude these >>>> annoted "H" and "L" characters. In the application Ive seen, the >>>> process was most definitely automated, since it was applied to a >>>> large number of plots (i.e., the "H"'s and "L"'s werent added >>>> manually, since its not feasible). Unfortunately, the creators of >>>> these plots are not willing to share their technique. >>>> >>>> I dont know how to set this up with matplotlib. >>>> Does anyone have any experience with this??? >>>> Is there any way to identify a "closed contour" & its value from a >>>> "contour class" that is returned from matplotlib's contour() >>>> function??? >>>> >>>> >>> Pablo: There is no easy way to do this in matplotlib. I guess you >>> would try to find closed contours with no other contours inside them, >>> the place the label at the center of that region. This might end up >>> being quite tricky. I see from your example that there are many such >>> regions that are not labelled (some are, some aren't). >>> >>> Or, you might just try to find local minima and maxima in your gridded >>> data and plot H's and L's there. This ought to be easier. >>> >>> -Jeff >>> >>> >> Pablo: Regarding the latter method, here's a relevant thread from the >> scipy list: >> >> http://www.nabble.com/Finding-local-minima-of-greater-than-a-given-depth-td18988309.html >> >> >> -Jeff > _________________________________________________________________ > Windows Live™ Contacts: Organize your contact list. > http://windowslive.com/connect/post/marcusatmicrosoft.spaces.live.com-Blog-cns!503D1D86EBB2B53C!2285.entry?ocid=TXT_TAGLM_WL_UGC_Contacts_032009 > |
|
From: per f. <per...@gm...> - 2009-03-07 19:28:38
|
thank you very much for this (i include your code below). one question about this: how can i remove the top x-axis and the right yaxis from each of the marginal histograms? in other words, keep only the left y-axis and the bottom x-axis of each of the histograms. thank you. mport numpy as np import matplotlib.pyplot as plt from matplotlib.ticker import NullFormatter x = np.random.randn(1000) y = np.random.randn(1000) nullfmt = NullFormatter() # no labels left, width = 0.1, 0.65 bottom, height = 0.1, 0.65 bottom_h = left_h = left+width+0.02 rect1 = [left, bottom, width, height] rect2 = [left, bottom_h, width, 0.2] rect3 = [left_h, bottom, 0.2, height] # start with a rectangular figure #fig = plt.Figure( (8,8) ) axScatter = plt.axes(rect1) axHistx = plt.axes(rect2)#, sharex=axScatter) axHisty = plt.axes(rect3)#, sharey=axScatter) axHistx.xaxis.set_major_formatter(nullfmt) axHisty.yaxis.set_major_formatter(nullfmt) axScatter.scatter(x,y) bins = np.linspace(-4,4,21) axHistx.hist(x, bins=bins) axHisty.hist(x, bins=bins, orientation='horizontal') axHistx.set_xlim( axScatter.get_xlim() ) axHisty.set_ylim( axScatter.get_ylim() ) plt.show() On Mon, Feb 16, 2009 at 8:22 AM, Manuel Metz <mm...@as...>wrote: > Attached is a very simple example that shows how to do something similar > to scatterhist in matplotlib > > Manuel > > per freem wrote: > > hello, > > > > is there a way to make a 2d scatter plot that includes (outside the axes) > > histograms of the marginals of the two variables? like the matlab > function > > 'scatterhist'. see this for an example: > > > > > http://www.mathworks.com/access/helpdesk/help/toolbox/stats/index.html?/access/helpdesk/help/toolbox/stats/scatterhist.html > > > > ideally i'd like the histograms outside the scatter plot to also have > axes > > so that the height of each histogram bar will be interpretable. > > i understand that there's no command for this - but how can i construct > it? > > i would not mind writing code to do this... if it's possible. right now > > this is the only thing keeping me from switching from matlab to > matplotlib > > exclusively since i use these graphs a lot > > > > thank you > > > > > > > > ------------------------------------------------------------------------ > > > > > ------------------------------------------------------------------------------ > > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, > CA > > -OSBC tackles the biggest issue in open source: Open Sourcing the > Enterprise > > -Strategies to boost innovation and cut costs with open source > participation > > -Receive a $600 discount off the registration fee with the source code: > SFAD > > http://p.sf.net/sfu/XcvMzF8H > > > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Matplotlib-users mailing list > > Mat...@li... > > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, > CA > -OSBC tackles the biggest issue in open source: Open Sourcing the > Enterprise > -Strategies to boost innovation and cut costs with open source > participation > -Receive a $600 discount off the registration fee with the source code: > SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > |
|
From: Jae-Joon L. <lee...@gm...> - 2009-03-07 17:29:29
|
Your code works fine for me with mpl 0.98.5.2.
What version of mpl are you using?
print matplotlib.__version__
-JJ
On Thu, Mar 5, 2009 at 12:03 PM, Erik Granstedt <egr...@gm...> wrote:
> Hello,
>
> I found an issue in working with subplots and using figlegend: it
> doesn't display markers. This code illustrates the problem:
>
> x=r_[0.:11.:1.]
> y=x**1.5
> figure()
> subplot(211)
> line=plot(x,y,'sb-.')
> figlegend( (line,),('y',),'right' )
>
> Supplying the "numpoints" keyword to figlegend doesn't seem to have
> any effect, ie. I get the same results with:
> figlegend( (line,),('y',),'right',numpoints=10 )
>
> Is this the intended behavior? Is there a good way to display the markers?
>
> I did find a workaround, but I don't think this is the ideal method:
> x=r_[0.:11.:1.]
> y=x**1.5
> figure()
> subplot(111)
> line=plot(x,y,'sb-.')
> figlegend( (line,),('y',),'right' )
> subplot(211)
> line=plot(x,y,'sb-.')
>
> Thanks,
>
> -Erik
>
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
> -Strategies to boost innovation and cut costs with open source participation
> -Receive a $600 discount off the registration fee with the source code: SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
|
|
From: Jae-Joon L. <lee...@gm...> - 2009-03-07 16:00:45
|
http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.bar use ax.set_xticks(ind+width*.5) instead of ax.set_xticks(ind+width) -JJ On Thu, Mar 5, 2009 at 1:40 PM, Timmie <tim...@gm...> wrote: > Hello, > I tried to modify the bar chart demo for my case. > I want to plot only bar charts for one data set. > > But the xticklables are not centered below the bars, rather are they left in > place as if there were still two data sets. > > How do I modify set_xticklabels in oder to get the lables centered below the bar > one data set? > > Thanks in advance, > Timmie > > > #### modified bar charts demo > > > #!/usr/bin/env python > # a bar plot with errorbars > import numpy as np > import matplotlib.pyplot as plt > > N = 5 > menMeans = (20, 35, 30, 35, 27) > menStd = (2, 3, 4, 1, 2) > > ind = np.arange(N) # the x locations for the groups > width = 0.35 # the width of the bars > > fig = plt.figure() > ax = fig.add_subplot(111) > rects1 = ax.bar(ind, menMeans, width, color='r', yerr=menStd) > > womenMeans = (25, 32, 34, 20, 25) > womenStd = (3, 5, 2, 3, 3) > #~ rects2 = ax.bar(ind+width, womenMeans, width, color='y', yerr=womenStd) > > # add some > ax.set_ylabel('Scores') > ax.set_title('Scores by group and gender') > ax.set_xticks(ind+width) > ax.set_xticklabels( ('G1', 'G2', 'G3', 'G4', 'G5'), multialignment='left', > position=(-2,0) ) > > #~ ax.legend( (rects1[0], rects2[0]), ('Men', 'Women') ) > > def autolabel(rects): > # attach some text labels > for rect in rects: > #~ print rect > height = rect.get_height() > print height > ax.text(rect.get_x()+rect.get_width()/2., 1.05*height, '%d'%int(height), > ha='center', va='bottom') > > > autolabel(rects1) > #~ autolabel(rects2) > > plt.show() > > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |