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
(19) |
2
(3) |
3
(12) |
4
(2) |
5
|
6
(9) |
7
(27) |
8
(39) |
9
(17) |
10
(22) |
11
(5) |
12
(1) |
13
(11) |
14
(12) |
15
(14) |
16
(29) |
17
(32) |
18
(8) |
19
(3) |
20
(10) |
21
(27) |
22
(11) |
23
(8) |
24
(4) |
25
(4) |
26
(3) |
27
(18) |
28
(7) |
29
(29) |
30
(13) |
31
(4) |
|
Charlie Moad <cwmoad@...> writes: > > Are you using numarray as your numerix? If so, is it specified in > matplotlibrc of the exe bundle? Charlie, Yes. I'm using numarray for numerix. I've specified this in a local matplotlibrc file that configures my application, as well as the default matplotlibrc file in the C:\Python24\Lib\site-packages\matplotlib\mpl-data directory. My .exe is called VizTool.exe. The output from VizTool.exe.log is : Traceback (most recent call last): File "VizTool.py", line 2, in ? File "VizTool\Controllers.pyo", line 4, in ? File "VizTool\GraphPanels.pyo", line 1, in ? File "wxmpl.pyo", line 32, in ? File "matplotlib\numerix\__init__.pyo", line 145, in ? ImportError: No module named random_array Any suggestions? As always, thanks for the help. Regards, Daniel McQuillen Oakland, CA
Further little testing I forgot... Printing disconnect_id gives me an id, so there is an answer from self.control.mpl_connect() ... I also tested with 'key_press_event' to see if the mouse events were the problem, but no luck... m. -- Massimo Sandal University of Bologna Department of Biochemistry "G.Moruzzi" snail mail: Via Irnerio 48, 40126 Bologna, Italy email: mas...@un... tel: +39-051-2094388 fax: +39-051-2094387
Hi, I'm building a simple wxpython + matplotlib application using wxmpl (no pylab). I'm currently trying to get X and Y coordinates of a point I click inside a graph plotted in a PlotPanel. So I'm trying to connect the PlotPanel to a button_press_event. The problem is it fails silently. No error, but it seems that the connected function is never called and even that the connecting itself never happens. My hypothesis: I see that the PlotPanel has default zooming when selecting a box with the mouse, so I think it is already connected with button_press_event? should I disconnect? how (what's the id)? Should I use something different from PlotPanel? ------------------- Here are relevant code snippets: class MainWindow(wx.Frame): def __init__(self,parent,id,title): wx.Frame.__init__(self,parent,ID_FRAME,title,size=(800,600),style=wx.DEFAULT_FRAME_STYLE|wx.NO_FULL_REPAINT_ON_RESIZE) self.control=wxmpl.PlotPanel(self,1) [Then, if I send the right wxpython event (I want my plot giving me coordinates only when I say the gui to do it), I call ClickPlot, that should turn on the connection between the mpl event 'button_press_event' and another function, for my PlotPanel.] def ClickPlot(self,event): #test code print 'you're calling ClickPlot()' def click_me(mpl_event): #test code print 'you click me!' if mpl_event.inaxes: print 'in axes too!' disconnect_id=self.control.mpl_connect('button_press_event',click_me) -------------------------- I checked and ClickPlot() is called, but as said before, click_me() is not. Any idea? What could I do to figure out what's (not) happening? Thanks, Massimo -- Massimo Sandal University of Bologna Department of Biochemistry "G.Moruzzi" snail mail: Via Irnerio 48, 40126 Bologna, Italy email: mas...@un... tel: +39-051-2094388 fax: +39-051-2094387
Darren, I tried "idle -n" and got the same result: Python 2.4.2 (#67, Sep 28 2005, 12:41:11) [MSC v.1310 32 bit (Intel)] on win32 Type "copyright", "credits" or "license()" for more information. **************************************************************** Personal firewall software may warn about the connection IDLE makes to its subprocess using this computer's internal loopback interface. This connection is not visible on any external interface and no data is sent to or received from the Internet. **************************************************************** =20 IDLE 1.1.2 =3D=3D=3D=3D No Subprocess =3D=3D=3D=3D >>> import subprocess >>> process =3D subprocess.Popen(['dir'], shell=3DTrue,=20 >>> stdout=3Dsubprocess.PIPE, stderr=3Dsubprocess.STDOUT) Traceback (most recent call last): File "<pyshell#1>", line 1, in ? process =3D subprocess.Popen(['dir'], shell=3DTrue, stdout=3Dsubprocess.PIPE, stderr=3Dsubprocess.STDOUT) File "C:\Python\lib\subprocess.py", line 533, in __init__ (p2cread, p2cwrite, File "C:\Python\lib\subprocess.py", line 593, in _get_handles p2cread =3D self._make_inheritable(p2cread) File "C:\Python\lib\subprocess.py", line 634, in _make_inheritable DUPLICATE_SAME_ACCESS) TypeError: an integer is required PJR > -----Original Message----- > From: mat...@li... > [mailto:mat...@li...] On=20 > Behalf Of Darren Dale > Sent: 20 March 2006 16:19 > To: mat...@li... > Subject: Re: [Matplotlib-users] matplotlib-0.87.2 on Windows=20 > - using subprocess.Popen() >=20 >=20 > On Monday 20 March 2006 09:03, Randewijk P-J > <pjr...@su...> wrote: > > Darren, > > > > I prefer using PythonWin to IDLE. Any ideas how to solve the > > subprocess.Popen() problem using PythonWin? What about using > > "win32pipe"? >=20 > I don't know how to solve it for pythonwin, maybe you could > investigate it=20 > with a google search (thats how I learned about the problem=20 > and the solution=20 > for idle). >=20 > I suppose win32pipe is part of pywin32. If that is the case, > I dont think I=20 > can support using it; we are trying to eliminate=20 > dependencies, not add to=20 > them. Subprocess is acceptable because it is part of the=20 > python-2.4 standard=20 > library and we were able to add it to the mpl tree for older=20 > versions of=20 > python. >=20 > Darren >=20 > > -----Original Message----- > > From: Darren Dale [mailto:dd...@co...] > > Sent: 20 March 2006 15:52 > > To: Randewijk P-J <pjr...@su...> > > Subject: Re: ASPN : Python Cookbook : Module to allow Asynchronous > > subprocess use on Windows and Posix platforms > > > > > > I forgot to mention, you may be able to avoid these errors > by starting > > idle with the -n flag. > > > > On Monday 20 March 2006 08:36, you wrote: > > > Aha! > > > > > > In both the IDLE & PythonWin (my default my using pylab) > shells it > > > fails... but not from the python shell... > > > > > > PJR > > > > > > > -----Original Message----- > > > > From: Darren Dale [mailto:dd...@co...] > > > > Sent: 20 March 2006 15:25 > > > > To: Randewijk P-J <pjr...@su...> > > > > Subject: Re: ASPN : Python Cookbook : Module to allow > Asynchronous > > > > subprocess use on Windows and Posix platforms > > > > > > > > > > > > Also, are you running this from IDLE? If so, please try > running it > > > > from a regular python shell, or better, run a script > from the dos > > > > shell. > > > > > > > > On Monday 20 March 2006 08:06, you wrote: > > > > > This is what I get: > > > > > >>> import subprocess > > > > > >>> process =3D subprocess.Popen(['dir'], shell=3DTrue, > > > > > > > > > > stdout=3Dsubprocess.PIPE,stderr=3Dsubprocess.STDOUT) > > > > > Traceback (most recent call last): > > > > > File "<interactive input>", line 1, in ? > > > > > File "C:\Python\lib\subprocess.py", line 533, in __init__ > > > > > (p2cread, p2cwrite, > > > > > File "C:\Python\lib\subprocess.py", line 593, in > _get_handles > > > > > p2cread =3D self._make_inheritable(p2cread) > > > > > File "C:\Python\lib\subprocess.py", line 634, in > > > > _make_inheritable > > > > > > > DUPLICATE_SAME_ACCESS) > > > > > TypeError: an integer is required > > > > > > > > > > PJR > > > > > > > > > > > -----Original Message----- > > > > > > From: Darren Dale [mailto:dd...@co...] > > > > > > Sent: 20 March 2006 14:49 > > > > > > To: Randewijk P-J <pjr...@su...> > > > > > > Subject: Re: ASPN : Python Cookbook : Module to allow > > > > > > > > Asynchronous > > > > > > > > > > subprocess use on Windows and Posix platforms > > > > > > > > > > > > > > > > > > Hi P-J, > > > > > > > > > > > > On Monday 20 March 2006 7:39 am, you wrote: > > > > > > > Dear Darren, > > > > > > > > > > > > > > Maybe this could help solve the Windows problem with > > > > > > > > > > > > Popen()... don't > > > > > > > > > > > > > know about the 2.3 issue however... > > > > > > > > > > > > > >=20 > http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/4405 > > > > > > > 54 > > > > > > > > > > > > I'm not convinced that there is an issue with > subprocess.Popen > > > > > > in windows. I tested the following block on windows (with > > > > > > > > python-2.4) > > > > > > > > > > and it worked fine. > > > > > > > > > > > > import subprocess > > > > > > process =3D subprocess.Popen(['dir'], shell=3DTrue, > > > > > > stdout=3Dsubprocess.PIPE, > > > > > > stderr=3Dsubprocess.STDOUT) > > > > > > stat =3D process.wait() > > > > > > print process.stdout.read() > > > > > > > > > > > > I posted this to the list last week. Did you test it? > > > > > > > > -- > > > > Darren S. Dale, Ph.D. > > > > Cornell High Energy Synchrotron Source > > > > Cornell University > > > > 200L Wilson Lab > > > > Rt. 366 & Pine Tree Road > > > > Ithaca, NY 14853 > > > > > > > > dd...@co... > > > > office: (607) 255-9894 > > > > fax: (607) 255-9001 >=20 > -- > Darren S. Dale, Ph.D. > Cornell High Energy Synchrotron Source > Cornell University > 200L Wilson Lab > Rt. 366 & Pine Tree Road > Ithaca, NY 14853 >=20 > dd...@co... > office: (607) 255-9894 > fax: (607) 255-9001 >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking > scripting language that extends applications into web and=20 > mobile media. Attend the live webcast and join the prime=20 > developer group breaking into this new coding territory!=20 > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D110944&bid=3D241720& dat=3D121642 _______________________________________________ Matplotlib-users mailing list Mat...@li... https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>>>> "David" == David Huard <dav...@gm...> writes: David> Hi, When using an imshow command whose extent is larger David> than the axes limits, the axes are partially hidden by the David> image. That is, one half of the axis line is hidden and the David> other appears fine. I made sure that ax.set_axisbelow is David> False, and I wish I knew what is causing this. David> I attached a screenshot of the png file, please look at the David> top axis. David> Using version 0.86.2 This appears related to the bug described in this patch http://sourceforge.net/tracker/index.php?func=detail&aid=1444703&group_id=80706&atid=560722 When I reviewed this patch, I was concerned because I thought the fix unneccessarily broke the API in order to fix the problem. I haven't heard yet from Toon Verstraelen, who wrote the patch, about this issue. You may want to take a look at it and see if it fixes your problem too. JDH
On Monday 20 March 2006 09:03, Randewijk P-J <pjr...@su...> wrote: > Darren, > > I prefer using PythonWin to IDLE. Any ideas how to solve the > subprocess.Popen() problem using PythonWin? What about using > "win32pipe"? I don't know how to solve it for pythonwin, maybe you could investigate it with a google search (thats how I learned about the problem and the solution for idle). I suppose win32pipe is part of pywin32. If that is the case, I dont think I can support using it; we are trying to eliminate dependencies, not add to them. Subprocess is acceptable because it is part of the python-2.4 standard library and we were able to add it to the mpl tree for older versions of python. Darren > -----Original Message----- > From: Darren Dale [mailto:dd...@co...] > Sent: 20 March 2006 15:52 > To: Randewijk P-J <pjr...@su...> > Subject: Re: ASPN : Python Cookbook : Module to allow Asynchronous > subprocess use on Windows and Posix platforms > > > I forgot to mention, you may be able to avoid these errors by starting > idle > with the -n flag. > > On Monday 20 March 2006 08:36, you wrote: > > Aha! > > > > In both the IDLE & PythonWin (my default my using pylab) shells it > > fails... but not from the python shell... > > > > PJR > > > > > -----Original Message----- > > > From: Darren Dale [mailto:dd...@co...] > > > Sent: 20 March 2006 15:25 > > > To: Randewijk P-J <pjr...@su...> > > > Subject: Re: ASPN : Python Cookbook : Module to allow Asynchronous > > > subprocess use on Windows and Posix platforms > > > > > > > > > Also, are you running this from IDLE? If so, please try running it > > > from a regular python shell, or better, run a script from the dos > > > shell. > > > > > > On Monday 20 March 2006 08:06, you wrote: > > > > This is what I get: > > > > >>> import subprocess > > > > >>> process = subprocess.Popen(['dir'], shell=True, > > > > > > > > stdout=subprocess.PIPE,stderr=subprocess.STDOUT) > > > > Traceback (most recent call last): > > > > File "<interactive input>", line 1, in ? > > > > File "C:\Python\lib\subprocess.py", line 533, in __init__ > > > > (p2cread, p2cwrite, > > > > File "C:\Python\lib\subprocess.py", line 593, in _get_handles > > > > p2cread = self._make_inheritable(p2cread) > > > > File "C:\Python\lib\subprocess.py", line 634, in > > _make_inheritable > > > > > DUPLICATE_SAME_ACCESS) > > > > TypeError: an integer is required > > > > > > > > PJR > > > > > > > > > -----Original Message----- > > > > > From: Darren Dale [mailto:dd...@co...] > > > > > Sent: 20 March 2006 14:49 > > > > > To: Randewijk P-J <pjr...@su...> > > > > > Subject: Re: ASPN : Python Cookbook : Module to allow > > > > > > Asynchronous > > > > > > > > subprocess use on Windows and Posix platforms > > > > > > > > > > > > > > > Hi P-J, > > > > > > > > > > On Monday 20 March 2006 7:39 am, you wrote: > > > > > > Dear Darren, > > > > > > > > > > > > Maybe this could help solve the Windows problem with > > > > > > > > > > Popen()... don't > > > > > > > > > > > know about the 2.3 issue however... > > > > > > > > > > > > http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/440554 > > > > > > > > > > I'm not convinced that there is an issue with subprocess.Popen > > > > > in windows. I tested the following block on windows (with > > > > > > python-2.4) > > > > > > > > and it worked fine. > > > > > > > > > > import subprocess > > > > > process = subprocess.Popen(['dir'], shell=True, > > > > > stdout=subprocess.PIPE, > > > > > stderr=subprocess.STDOUT) > > > > > stat = process.wait() > > > > > print process.stdout.read() > > > > > > > > > > I posted this to the list last week. Did you test it? > > > > > > -- > > > Darren S. Dale, Ph.D. > > > Cornell High Energy Synchrotron Source > > > Cornell University > > > 200L Wilson Lab > > > Rt. 366 & Pine Tree Road > > > Ithaca, NY 14853 > > > > > > dd...@co... > > > office: (607) 255-9894 > > > fax: (607) 255-9001 -- Darren S. Dale, Ph.D. Cornell High Energy Synchrotron Source Cornell University 200L Wilson Lab Rt. 366 & Pine Tree Road Ithaca, NY 14853 dd...@co... office: (607) 255-9894 fax: (607) 255-9001
Darren, I prefer using PythonWin to IDLE. Any ideas how to solve the subprocess.Popen() problem using PythonWin? What about using "win32pipe"? PJR -----Original Message----- From: Darren Dale [mailto:dd...@co...]=20 Sent: 20 March 2006 15:52 To: Randewijk P-J <pjr...@su...> Subject: Re: ASPN : Python Cookbook : Module to allow Asynchronous subprocess use on Windows and Posix platforms I forgot to mention, you may be able to avoid these errors by starting idle=20 with the -n flag. On Monday 20 March 2006 08:36, you wrote: > Aha! > > In both the IDLE & PythonWin (my default my using pylab) shells it=20 > fails... but not from the python shell... > > PJR > > > -----Original Message----- > > From: Darren Dale [mailto:dd...@co...] > > Sent: 20 March 2006 15:25 > > To: Randewijk P-J <pjr...@su...> > > Subject: Re: ASPN : Python Cookbook : Module to allow Asynchronous=20 > > subprocess use on Windows and Posix platforms > > > > > > Also, are you running this from IDLE? If so, please try running it=20 > > from a regular python shell, or better, run a script from the dos=20 > > shell. > > > > On Monday 20 March 2006 08:06, you wrote: > > > This is what I get: > > > >>> import subprocess > > > >>> process =3D subprocess.Popen(['dir'], shell=3DTrue, > > > > > > stdout=3Dsubprocess.PIPE,stderr=3Dsubprocess.STDOUT) > > > Traceback (most recent call last): > > > File "<interactive input>", line 1, in ? > > > File "C:\Python\lib\subprocess.py", line 533, in __init__ > > > (p2cread, p2cwrite, > > > File "C:\Python\lib\subprocess.py", line 593, in _get_handles > > > p2cread =3D self._make_inheritable(p2cread) > > > File "C:\Python\lib\subprocess.py", line 634, in _make_inheritable > > > DUPLICATE_SAME_ACCESS) > > > TypeError: an integer is required > > > > > > PJR > > > > > > > -----Original Message----- > > > > From: Darren Dale [mailto:dd...@co...] > > > > Sent: 20 March 2006 14:49 > > > > To: Randewijk P-J <pjr...@su...> > > > > Subject: Re: ASPN : Python Cookbook : Module to allow > > > > Asynchronous > > > > > > subprocess use on Windows and Posix platforms > > > > > > > > > > > > Hi P-J, > > > > > > > > On Monday 20 March 2006 7:39 am, you wrote: > > > > > Dear Darren, > > > > > > > > > > Maybe this could help solve the Windows problem with > > > > > > > > Popen()... don't > > > > > > > > > know about the 2.3 issue however... > > > > > > > > > > http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/440554 > > > > > > > > I'm not convinced that there is an issue with subprocess.Popen=20 > > > > in windows. I tested the following block on windows (with > > > > python-2.4) > > > > > > and it worked fine. > > > > > > > > import subprocess > > > > process =3D subprocess.Popen(['dir'], shell=3DTrue,=20 > > > > stdout=3Dsubprocess.PIPE, > > > > stderr=3Dsubprocess.STDOUT) > > > > stat =3D process.wait() > > > > print process.stdout.read() > > > > > > > > I posted this to the list last week. Did you test it? > > > > -- > > Darren S. Dale, Ph.D. > > Cornell High Energy Synchrotron Source > > Cornell University > > 200L Wilson Lab > > Rt. 366 & Pine Tree Road > > Ithaca, NY 14853 > > > > dd...@co... > > office: (607) 255-9894 > > fax: (607) 255-9001 --=20 Darren S. Dale, Ph.D. Cornell High Energy Synchrotron Source Cornell University 200L Wilson Lab Rt. 366 & Pine Tree Road Ithaca, NY 14853 dd...@co... office: (607) 255-9894 fax: (607) 255-9001