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
(1) |
2
(1) |
3
(9) |
4
(2) |
5
|
6
(6) |
7
(3) |
8
(1) |
9
(6) |
10
(1) |
11
|
12
|
13
(2) |
14
(8) |
15
(2) |
16
|
17
(11) |
18
(5) |
19
(2) |
20
(2) |
21
(4) |
22
(2) |
23
(5) |
24
(6) |
25
|
26
|
27
(2) |
28
(9) |
|
Does anyone know the preferred method for stopping FuncAnimation? I am using it to record data from a oscilloscope and woud like to be able to pause and restart the data on demand. Is there any way I can send a button click event to it? Thanks, Derek
Hi, when I try to change the ylim and xlim directly from the displayed canvas i get this error(when I change them in the code I have no problems): Traceback (most recent call last): File "C:\Anaconda\lib\site-packages\matplotlib\backends\backend_qt4.py", line 594, in edit_parameters figureoptions.figure_edit(axes, self) File "C:\Anaconda\lib\site-packages\matplotlib\backends\qt4_editor\figureoptio ns.py", line 134, in figure_edit icon=get_icon('qt4_editor_options.svg'), apply=apply_callback) File "C:\Anaconda\lib\site-packages\matplotlib\backends\qt4_editor\formlayout.py", line 544, in fedit dialog = FormDialog(data, title, comment, icon, parent, apply) File "C:\Anaconda\lib\site-packages\matplotlib\backends\qt4_editor\formlayout.py", line 461, in __init__ self.formwidget.setup() File "C:\Anaconda\lib\site-packages\matplotlib\backends\qt4_editor\formlayout.py", line 433, in setup widget.setup() File "C:\Anaconda\lib\site-packages\matplotlib\backends\qt4_editor\formlayout.py", line 408, in setup widget.setup() File "C:\Anaconda\lib\site-packages\matplotlib\backends\qt4_editor\formlayout.py", line 302, in setup field = ColorLayout(QColor(value), self) TypeError: QVariant must be holding a QColor my code is: fig = plt.figure() figf = plt.figure() for el in sequence: #some operations ax = fig.add_subplot(111) img = ax.plot(xflo, yflo, label=etich, marker = '.') ax.set_yscale('log') ax.set_xscale('log') ax.legend(bbox_to_anchor=(1.05, 1), loc=4, borderaxespad=0.) fig.canvas.draw() ax1 = figf.add_subplot(111) img1 = ax1.plot(logx, logy, label=etich)#, marker = style) ax1.legend(bbox_to_anchor=(1.05, 1), loc=4, borderaxespad=0.) figf.canvas.draw() thanks Gabriele
Hi It has been reported in http://matplotlib.1069221.n5.nabble.com/How-to-properly-use-path-Path-contains-point-td40718.htmlbut I do not see anything has happened after this. Following code illustrates the problem, when polygon defined in one direction, I can check if point is inside it, if other direction, I can not. from matplotlib.patches import Polygon poly1=Polygon([[0.,0.],[1.,0.],[1.,1.],[0.,1.]],facecolor='none') print(poly1.contains_point([0.5,0.5])) poly2=Polygon([[0.,0.],[0.,1.],[1.,1.],[1.,0.]],facecolor='none') print(poly2.contains_point([0.5,0.5])) print(poly2.contains_point([-0.5,-0.5])) I do not see an obvious reason why polygons should be defined in one direction only. I have tried the code with several versions of matplotlib, newest is 1.3.1 with numpy 1.8 and python 3.2.3 and all newer versions do not work as I would accept them. Only the oldest version, python2.6.6 with matplotlib 0.99.1.1 gives me correct answer. I have digged in the source code and ended up in file _path.cpp where the function point_in_path_impl seems to do the actual job, but understanding it completely seems to take more time than I have at the moment. Any feedback appreciated. Andres
You're not adding your subplot to an existing figure, so a new one is created. put "fig = plt.figure(...)" at the top of your script and replace "axii = plt.subplot(numalp, numobs, axisNum)" with "axii = fig.add_subplot(numalp, numobs, axisNum)" On Sat, Feb 22, 2014 at 5:28 PM, Gabriele Brambilla < gb....@gm...> wrote: > Hi, > I'm trying to follow this example to make a grid of subplot: > > http://matplotlib.org/examples/pylab_examples/line_styles.html > > but my code plot the two rows in two different figures (i attach them but > I don't know if they are useful). Does anyone understand why? > > this is an extract of my code: > > alphas = [45, 75] > numalp = len(alphas) > > angles = np.linspace(pi/12, pi/2, num=10) > numobs = len(angles) > > axisNum = 0 > > for a in alphas: > > #[some operations] > > for obsangl in angles: > > #[some operations] > > axisNum += 1 > axii = plt.subplot(numalp, numobs, axisNum) > plt.errorbar(g, Pgamma, yerr = ePgamma, color = > 'green', fmt = '.') > axii1 = axii.twinx() > plt.plot(g, lightcurva, 'b-') > axii.set_yticklabels([]) > axii.set_xticklabels([]) > axii1.set_yticklabels([]) > axii1.set_xticklabels([]) > > > > > > ------------------------------------------------------------------------------ > Managing the Performance of Cloud-Based Applications > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > Read the Whitepaper. > > http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > >
Hi Fadzil, Ah sorry, I glossed over that part of your question. There are actually two solutions to this, one would be to actually find the indices where the latitudes and longitudes are within your desired bounds using numpy.where(). However I generally prefer to use numpy's built-in fancy indexing for this type of problem. For example: # lat and lon are extracted from the netcdf file, assumed to be 1D # Determine which latitudes are between 20S and 10N latidx = (lat >= -20) & (lat <= 10) # Determine which longitudes are between 130E and 170E. # The numbers here may differ depending on the longitude convention in your data. lonidx = (lon >= 130) & (lon <= 170) # Now we will actually subset the data. We need to subset lat too to make sure weights are consistent. sst = sstv[:] sst = sst[:, latidx][..., lonidx] lat = lat[latidx] Yes, the indexing does get a little tricky but it should work if you do it this way, then follow the same procedure outlined in the previous email. Thanks, Alex On Sun, Feb 23, 2014 at 6:02 PM, Fadzil Mnor <fad...@gm...> wrote: > Thanks Alex for the reply. > So, that script calculates the global SST. What if when we want to > calculate for only in specific box? For example, SST over this area only: > > ----------------------------------- 10 N > | | > | | > | | > | SST | > | | > | | > ----------------------------------- 20 S > 130 E 170E > > Thanks. > > Fadzil > -- Alex Goodman Graduate Research Assistant Department of Atmospheric Science Colorado State University
Thanks Alex for the reply. So, that script calculates the global SST. What if when we want to calculate for only in specific box? For example, SST over this area only: ----------------------------------- 10 N | | | | | | | SST | | | | | ----------------------------------- 20 S 130 E 170E Thanks. Fadzil