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
(2) |
2
(5) |
3
(8) |
4
(6) |
5
(9) |
6
(7) |
7
(6) |
8
(10) |
9
(27) |
10
(7) |
11
(22) |
12
(13) |
13
(7) |
14
(4) |
15
(12) |
16
(32) |
17
(26) |
18
(14) |
19
(1) |
20
(11) |
21
(6) |
22
(11) |
23
(17) |
24
(18) |
25
(28) |
26
(11) |
27
(6) |
28
(1) |
29
(10) |
30
(12) |
|
|
|
|
There is a SciPy Cookbook here: http://www.scipy.org/Cookbook And also a more general Python cookbook here: http://code.activestate.com/recipes/langs/python/ Other list members may have other resources, too, but those are two I use on a regular basis. Mike Kaushik Ghose wrote: > Hi Everyone, > > As I've been learning python and using it more and more in my analysis work I've > been wondering where I can go to post and find code snippets for python. A > central file exchange, much like matlab's file exchange, would be great. > > I'm thinking of a very streamlined, blog like interface, where you log in, > upload a bunch of .py files and then write a little description of what the code > does and add some tags to it. > > So now we have a little repository where we can go and find code snippets to > help us learn python. > > Is there such a repository? > > Thanks > -Kaushik > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA
Hi Everyone, As I've been learning python and using it more and more in my analysis work I've been wondering where I can go to post and find code snippets for python. A central file exchange, much like matlab's file exchange, would be great. I'm thinking of a very streamlined, blog like interface, where you log in, upload a bunch of .py files and then write a little description of what the code does and add some tags to it. So now we have a little repository where we can go and find code snippets to help us learn python. Is there such a repository? Thanks -Kaushik
You could do something like: def bitget(value, bit_number): return (value & (1 << bit_number)) != 0 which will return True or False for the given bit number, and this function works on numpy arrays. (Bits are numbered base-0 -- I don't know if that matches matlab). Hope that helps, Mike Marjolaine Rouault wrote: > Hi, > > I was wondering if python has the equivalent of the matlab bitget.m function. > > I have a large 2 dimensional variable of type uint32 which I must convert to binaries and then find if bit 23 of the binary for each point is 0 or 1. The matlab bitget function is ideal for that but I can't find much in python. The only thing I found was binary_repr which converts to a sting and can only be used for 1 point at a time. > > Any suggestions? > > Thanks, Marjolaine. > > -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA
Hi, I was wondering if python has the equivalent of the matlab bitget.m function. I have a large 2 dimensional variable of type uint32 which I must convert to binaries and then find if bit 23 of the binary for each point is 0 or 1. The matlab bitget function is ideal for that but I can't find much in python. The only thing I found was binary_repr which converts to a sting and can only be used for 1 point at a time. Any suggestions? Thanks, Marjolaine. -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support.
Thanks for the report. Indeed, it was drawing the fill over top of the hatch, rather than the other way around. This has now been fixed in SVN r6068. You can use that patch to patch your local copy, if you're not tracking SVN. Cheers, Mike Crend King wrote: > I tried hatch option in pylab.bar() in both matplotlib 0.98.2 and > 0.98.3. The hatch_demo.py in the example directory only draw four grey > bars, no hatch or them. However, when I try the same script on > matplotlib 0.91.4 (the maintainance version), it's working. I wonder > if it is a bug introduced recently? If so, it's good to have it fixed, > right? > > BTW: can I set the line width for the hatches? > > Thanks! > > ------------------------------------------------------------------------ > See how Windows Mobile brings your life together—at home, work, or on > the go. See Now > <http://clk.atdmt.com/MRT/go/msnnkwxp1020093182mrt/direct/01/> > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > ------------------------------------------------------------------------ > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA
Erik Tollerud wrote: > I've been playing with some of the projections in matplotlib, > recently, and have some questions/noticed some odd behavior: > > 1. Is there any way to activate a projection mode with the pyplot > interface other than the subplot(111,projection='whatever') method a > la /examples/api/custom_projection_example.py ? Along these same > lines, is the projection feature documented in greater detail > somewhere? About everything I've figured out has come from > custom_projection_example.py ... > There is some additional documentation in the new documentation here: http://matplotlib.sourceforge.net/doc/html/devel/add_new_projection.html > 2. I have a skymap I would like to plot using a particular projection > - what I've been doing so far is specifying x and y coordinates using > mgrid and calling contourf(x,y,data,100) to approximate this. But > what I'd rather do is something like > imshow(data,extent=[-pi,pi,-pi/2,pi/2]) ... when I call that with a > projection axis activated, the projection isn't honored - the image > just appears as a regular square box. Is there any way to get imshow > to respect the projection? > As Jae-Joon suggested, try pcolor. It will be slower (and there are no interpolation options), but it should use the custom projection. imshow is really optimized for uniform, rectilinear images. Cheers, Mike -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA
Jeff Whitaker wrote: > Eric Firing wrote: >> Jeff Whitaker wrote: >>> Michael Roettger wrote: >>>> Hi all, >>>> >>>> maybe I've misunderstood something concerning masking or quiver plots: >>>> I want to exclude some data from a quiver plot. Here's an example: >>>> >>>> --------------------8<---- >>>> import numpy as N >>>> import pylab as pl >>>> import matplotlib.numerix.ma as ma >>>> >>>> # prepare data >>>> X,Y = pl.meshgrid(range(5),range(5)) >>>> angles = pl.rand(5,5) >>>> U = N.cos(angles) >>>> V = N.sin(angles) >>>> >>>> # prepare mask >>>> M = N.zeros((5,5), dtype='bool') >>>> M[2,2] = True >>>> >>>> # apply mask >>>> Um = ma.masked_array(U,mask=M) >>>> Vm = ma.masked_array(V,mask=M) >>>> >>>> # plot >>>> pl.quiver(X,Y,Um,Vm) >>>> # pl.plot(range(5),Um[2],'x') >>>> >>>> pl.show() >>>> ---------------------->8---- >>>> >>>> Using the commented 'plot' command works as expected, but 'quiver' >>>> results in >>>> empty axes. If I take U,V instead of Um,Vm, the arrows are drawn .. >>>> What am I doing wrong or is there another way to exclude arrows from >>>> being >>>> plotted? >>>> >>>> Thank you in advance, >>>> >>>> Michael >>>> >>>> >>> >>> Michael: I've fixed this now in svn. If you don't want to update to >>> svn trunk, you can make this simple change in quiver.py >> >> Jeff, >> >> Thanks for the quick fix--it will help for now, and will work in most >> use cases, but it is not actually correct in general. The problem is >> that quiver supports input of changed values of U, V, and C on the >> existing X, Y grid, and these changed values can be masked arrays with >> different points masked. (See Quiver.set_UVC().) That is why I did not >> use delete_masked_points in the first place. Masked values used to be >> handled correctly; I suspect the bug is actually in collections, not >> in quiver itself. I can't track it down right now, but may be able to >> look at it over the weekend. >> >> Eric > > OK Eric - I figured you'd chime in when you got a chance. Let's > consider it a temporary workaround then. BTW: I updated the > quiver_demo.py example to test the masking. Very useful, thank you. I have removed the workaround and made a more consistent repair to the masked array handling. The problem came in when PolyCollection was changed to automatically close the path by default. Eric > > > -Jeff >> >>> >>> --- lib/matplotlib/quiver.py (revision 6046) >>> +++ lib/matplotlib/quiver.py (working copy) >>> @@ -334,6 +334,12 @@ >>> def __init__(self, ax, *args, **kw): >>> self.ax = ax >>> X, Y, U, V, C = self._parse_args(*args) >>> + if C is not None: >>> + X, Y, U, V, C = >>> delete_masked_points(X.ravel(),Y.ravel(),U.ravel(), >>> + V.ravel(),C.ravel()) >>> + else: >>> + X, Y, U, V = >>> delete_masked_points(X.ravel(),Y.ravel(),U.ravel(), >>> + V.ravel()) >>> self.X = X >>> self.Y = Y >>> self.XY = np.hstack((X[:,np.newaxis], Y[:,np.newaxis])) >>> >>> >>> -Jeff >>> >> > >
Hey all, When I plot using python 2.5.2 and matplotlib 0.98.3 (and 0.98.1) I have the following problem. If I run a script from the command line that plots and saves the figure, I get the default aspect ratio of (8, 6). If, however, I close the plotting window and replot without exiting the python prompt and starting anew, the aspect changes to something like (8, 6.04). I can reliably get the (8, 6) aspect ratio if I quit the python prompt and load a new prompt. The problem only comes after I close the plot window and replot. The new aspect ratio is consistent after it first changes. That is, if I plot, close the window, replot, close the window, and replot again, the 2nd and 3rd figures would save with the same aspect ratio while the first would have the one I desire. What could be the problem? Cheers, Josh
I tried hatch option in pylab.bar() in both matplotlib 0.98.2 and 0.98.3. The hatch_demo.py in the example directory only draw four grey bars, no hatch or them. However, when I try the same script on matplotlib 0.91.4 (the maintainance version), it's working. I wonder if it is a bug introduced recently? If so, it's good to have it fixed, right? BTW: can I set the line width for the hatches? Thanks! _________________________________________________________________ See how Windows Mobile brings your life together—at home, work, or on the go. http://clk.atdmt.com/MRT/go/msnnkwxp1020093182mrt/direct/01/