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}
(151) 
_{Aug}

_{Sep}

_{Oct}

_{Nov}

_{Dec}

S  M  T  W  T  F  S 






1
(13) 
2
(3) 
3
(4) 
4
(24) 
5
(12) 
6
(11) 
7
(14) 
8
(17) 
9
(3) 
10
(5) 
11
(23) 
12
(7) 
13
(9) 
14
(17) 
15
(1) 
16
(2) 
17
(2) 
18
(11) 
19
(14) 
20
(9) 
21
(13) 
22
(12) 
23
(1) 
24

25
(7) 
26
(11) 
27
(20) 
28
(19) 
29
(11) 
30
(1) 
From: Jason Addison <jraddison@gm...>  20070627 02:36:05

I would like to view a 3D array (or a python list of 2D arrays) as a sequence of images using something like imshow. For example, something like this: imshow(rand(6,12,12), imagecube=true) then the display would show a 12x12 image, [0, :, :]. Then I could scroll through the other frames to display any of the 6 frames in the same window. Syntax like this would also be nice: imshow([a,b,c]) where [a,b,c] is a python list of 2D arrays. Does matplotlib support anything like this? Are there other packages that do this? I looked at using numdisplay with ds9, but that only seemed to handle 2D images even though ds9 can handle image cubes on its own. Thanks ... 
From: Brian T.N. Gunney <gunneyb@ll...>  20070626 23:15:48

I have a matplotlib script that generates several figures. When a figure receives an event, how do I know which figure it did it? For example, the key event 'w' is meant to close the figure, but so far, I have no way to control which figure gets closed. In the pick_event_demo.py example, each figure is connected to an event handler specific to it. I think this wouldn't work in my case because I don't know how many figures I'd have until I process some data. In any case, all my event handlers can be independent of the figure generating the event. They just need to know which figure to refer to. My workaround right now is to save the canvas attributes from all the figure handle. I compare this canvas to the canvas attribute of the event. When I found a match, I know I have the right figure. This seems kludgey, especially after most of the figures have been closed. I'd appreciate any help or pointers. Brian 
From: Matthias Michler <MatthiasM<ichler@gm...>  20070626 18:31:37

Hello John, thank you for your reply. I'm not sure I really understood the widgetlock, but I think the following lines seem to do what I want  (Am I right?): + # If canvas was locked + if not self.canvas.widgetlock.available(self): + return True I attached once more my patch including these new lines. best regards, Matthias On Tuesday 26 June 2007 16:35, John Hunter wrote: > On 6/26/07, Matthias Michler <MatthiasMichler@...> wrote: > > Hello everybody, > > > > first of all: Sorry for posting to my own thread. > > But I really like this new feature and may be the last message got lost > > among the lots of mplmails. So I ask you once more for comments on this > > issue (please). > > > > Is this new feature a bug to some of the RectangleSelectorusers or a > > real feature? > > Could it be part of mpl? > > Thanks for reminding us on this one. Making these widgets work well > together can be a pain. I wrote some locking functionality to help > coordinate them, is any of this functionality useful to you? > > The patch looks mostly correct, but the code trying to get the toolbar > state is problematic > > + # If zoom mode was activated > + if not (Gcf.get_active().toolbar.mode == ''): > + return True > + > > Gcf is a pylab construct, and code in widgets must not be dependent on > pylab. Also, using the mode string here looks a bit hackish since it > is designed to communicate to the user rather than represent state. > See if you can use the lock functionality to achieve the same purpose >  eg look at how widgetlock is used in the toolbar in backend_bases. > If this is not viable, let me know why and we'll figure a better way > for these widgets to communicate. > > JDH 
From: Andrew Straw <strawman@as...>  20070626 18:12:18

Can you convert your radial coordinates to Cartesian coordinates and use approach #2 here: http://scipy.org/Cookbook/Matplotlib/Gridding_irregularly_spaced_data Lorenzo Isella wrote: > Hello, > Sorry for this tread getting quite long, but I am not getting there yet. > Online I found examples like: > > 
From: Matthias Michler <MatthiasM<ichler@gm...>  20070626 17:46:54

Hello John, Hello all, I thought once more about the textbox and added some of your (Johns) features to my class 'InputButton'. Probably my solution isn't the best possible, but I attached this version to express what I'm thinking of and to see what others think about my solution and needed skills of the textbox . Could this be helpful / useful for others? best regards, Matthias On Wednesday 06 June 2007 17:25, John Hunter wrote: > On 6/6/07, Matthias Michler <MatthiasMichler@...> wrote: > > By the way: What do you think about the "insert a 'l' or 'g' into your > > TextBox and get a grid or logscale"issue? Is there a possibility to > > switch the mplmeaning of 'l', 'g' and 'f' off? > > Yes, this is clearly an issue that has to be dealt with in a cleanup. > The current implementation has no concept of whether the text box is > the active widget. We would need to do something like activate the > text box when you click on it (and figure out the right cursor > location based on the click if there is already text in there) and > deactivate it on a carriage return or click in another axes. The > current implementation was only a proof of concept. > > JDH 
From: Lorenzo Isella <lorenzo.isella@gm...>  20070626 15:42:36

Hello, Sorry for this tread getting quite long, but I am not getting there yet. Online I found examples like: #! /usr/bin/env python from pylab import * x=arange(2,2,0.1) y=arange(2,2,0.05) X,Y=meshgrid(x,y) z=exp((X*X + Y*Y)) + 0.6*exp(((X+1.8)**2 + Y**2)) #contour(x,y,z,arange(0,1,0.1)) imshow(z,interpolation='nearest') show() and both the imshow() and contour() commands do nicely their job, but the scalar z is defined on a trivial rectangular domain and represented as a 2D array. In my problem I have: 1) a set of couples (theta,r) specifying a list of positions on a tube crosssection. 2) for each (theta,r) couple, I have a single value of T (which is thus a long 1D array). In general, (theta,r) may be two coordinates given on a nontrivial domain and I have a scalar specified for each couple I thus form. Both contour and imshow complain because they expect a 2D array. I am sorry if I am struggling over some triviality, but I am not making much progress by myself. Many thanks Lorenzo On 26/06/07, Brian <forand@...> wrote: > It sounds to me that you want to have a contour plot which takes as input > the r,theta, and T. I would suggest just > > > On 6/26/07, Lorenzo Isella < lorenzo.isella@...> wrote: > > > > Hello, > > Thanks for your suggestion, but I still have a problem. > > Maybe I did not make myself clear (or most likely I have a problem > > about how to implement your suggestion): actually I have T=T(r,theta) > > and I would like to make a 2D plot using colors such that one can see > > that the domain where I am plotting is actually a circle. > > The example I mentioned is not exactly what I need since there one can > > find how to plot in polar coordinates a function of r alone. > > Furthermore, I do not have necessarily an equally spaced grid. > > For instance, let me consider the case of 5 theta's and 7 radial > > position and consequentely 35 values of T: > > > > theta R > > T > > 0.000000000000000000e+00 0.000000000000000000e+00 5.459815003314423620e+01 > > 0.000000000000000000e+00 1.666666666666666574e01 4.853828855239110851e+01 > > 0.000000000000000000e+00 3.333333333333333148e01 4.315101251901344881e+01 > > 0.000000000000000000e+00 5.000000000000000000e01 3.836167151642037965e+01 > > 0.000000000000000000e+00 6.666666666666666297e01 3.410390059527122020e+01 > > 0.000000000000000000e+00 8.333333333333332593e01 3.031870066752165016e+01 > > 0.000000000000000000e+00 1.000000000000000000e+00 2.695362096775039973e+01 > > 1.570796326794896558e+00 0.000000000000000000e+00 2.396203225329512776e+01 > > 1.570796326794896558e+00 1.666666666666666574e01 2.130248067207563523e+01 > > 1.570796326794896558e+00 3.333333333333333148e01 1.893811334477913277e+01 > > 1.570796326794896558e+00 5.000000000000000000e01 1.683616770181326316e+01 > > 1.570796326794896558e+00 6.666666666666666297e01 1.496751749887080329e+01 > > 1.570796326794896558e+00 8.333333333333332593e01 1.330626922033307302e+01 > > 1.570796326794896558e+00 1.000000000000000000e+00 1.182940327795447999e+01 > > 3.141592653589793116e+00 0.000000000000000000e+00 1.051645503298913731e+01 > > 3.141592653589793116e+00 1.666666666666666574e01 9.349231221746512333e+00 > > 3.141592653589793116e+00 3.333333333333333148e01 8.311557855141172624e+00 > > 3.141592653589793116e+00 5.000000000000000000e01 7.389056098930650407e+00 > > 3.141592653589793116e+00 6.666666666666666297e01 6.568943029058285532e+00 > > 3.141592653589793116e+00 8.333333333333332593e01 5.839854501207304871e+00 > > 3.141592653589793116e+00 1.000000000000000000e+00 5.191687680104649871e+00 > > 4.712388980384689674e+00 0.000000000000000000e+00 4.615461046534314882e+00 > > 4.712388980384689674e+00 1.666666666666666574e01 4.103189942205120566e+00 > > 4.712388980384689674e+00 3.333333333333333148e01 3.647775927922803252e+00 > > 4.712388980384689674e+00 5.000000000000000000e01 3.242908421924544982e+00 > > 4.712388980384689674e+00 6.666666666666666297e01 2.882977255397825012e+00 > > 4.712388980384689674e+00 8.333333333333332593e01 2.562994933482758420e+00 > > 4.712388980384689674e+00 1.000000000000000000e+00 2.278527524544009530e+00 > > 6.283185307179586232e+00 0.000000000000000000e+00 2.025633220058637107e+00 > > 6.283185307179586232e+00 1.666666666666666574e01 1.800807713756398032e+00 > > 6.283185307179586232e+00 3.333333333333333148e01 1.600935643142084031e+00 > > 6.283185307179586232e+00 5.000000000000000000e01 1.423247420534685892e+00 > > 6.283185307179586232e+00 6.666666666666666297e01 1.265280855439646635e+00 > > 6.283185307179586232e+00 8.333333333333332593e01 1.124847036463023642e+00 > > 6.283185307179586232e+00 1.000000000000000000e+00 1.000000000000000000e+00 > > > > > > > > How would you plot them in order to have a 2Dcolor plot where one can > > understand we are working on a circle (well, maybe it will look like > > something different since I have only a few grid points, but the aim > > is clear, I hope)? > > Kind Regards > > > > Lorenzo 
From: Brian <forand@gm...>  20070626 15:14:38

It sounds to me that you want to have a contour plot which takes as input the r,theta, and T. I would suggest just On 6/26/07, Lorenzo Isella <lorenzo.isella@...> wrote: > > Hello, > Thanks for your suggestion, but I still have a problem. > Maybe I did not make myself clear (or most likely I have a problem > about how to implement your suggestion): actually I have T=3DT(r,theta) > and I would like to make a 2D plot using colors such that one can see > that the domain where I am plotting is actually a circle. > The example I mentioned is not exactly what I need since there one can > find how to plot in polar coordinates a function of r alone. > Furthermore, I do not have necessarily an equally spaced grid. > For instance, let me consider the case of 5 theta's and 7 radial > position and consequentely 35 values of T: > > theta R > T > 0.000000000000000000e+00 0.000000000000000000e+00 5.459815003314423620e+0= 1 > 0.000000000000000000e+00 1.666666666666666574e01 4.853828855239110851e+0= 1 > 0.000000000000000000e+00 3.333333333333333148e01 4.315101251901344881e+0= 1 > 0.000000000000000000e+00 5.000000000000000000e01 3.836167151642037965e+0= 1 > 0.000000000000000000e+00 6.666666666666666297e01 3.410390059527122020e+0= 1 > 0.000000000000000000e+00 8.333333333333332593e01 3.031870066752165016e+0= 1 > 0.000000000000000000e+00 1.000000000000000000e+00 2.695362096775039973e+0= 1 > 1.570796326794896558e+00 0.000000000000000000e+00 2.396203225329512776e+0= 1 > 1.570796326794896558e+00 1.666666666666666574e01 2.130248067207563523e+0= 1 > 1.570796326794896558e+00 3.333333333333333148e01 1.893811334477913277e+0= 1 > 1.570796326794896558e+00 5.000000000000000000e01 1.683616770181326316e+0= 1 > 1.570796326794896558e+00 6.666666666666666297e01 1.496751749887080329e+0= 1 > 1.570796326794896558e+00 8.333333333333332593e01 1.330626922033307302e+0= 1 > 1.570796326794896558e+00 1.000000000000000000e+00 1.182940327795447999e+0= 1 > 3.141592653589793116e+00 0.000000000000000000e+00 1.051645503298913731e+0= 1 > 3.141592653589793116e+00 1.666666666666666574e01 9.349231221746512333e+0= 0 > 3.141592653589793116e+00 3.333333333333333148e01 8.311557855141172624e+0= 0 > 3.141592653589793116e+00 5.000000000000000000e01 7.389056098930650407e+0= 0 > 3.141592653589793116e+00 6.666666666666666297e01 6.568943029058285532e+0= 0 > 3.141592653589793116e+00 8.333333333333332593e01 5.839854501207304871e+0= 0 > 3.141592653589793116e+00 1.000000000000000000e+00 5.191687680104649871e+0= 0 > 4.712388980384689674e+00 0.000000000000000000e+00 4.615461046534314882e+0= 0 > 4.712388980384689674e+00 1.666666666666666574e01 4.103189942205120566e+0= 0 > 4.712388980384689674e+00 3.333333333333333148e01 3.647775927922803252e+0= 0 > 4.712388980384689674e+00 5.000000000000000000e01 3.242908421924544982e+0= 0 > 4.712388980384689674e+00 6.666666666666666297e01 2.882977255397825012e+0= 0 > 4.712388980384689674e+00 8.333333333333332593e01 2.562994933482758420e+0= 0 > 4.712388980384689674e+00 1.000000000000000000e+00 2.278527524544009530e+0= 0 > 6.283185307179586232e+00 0.000000000000000000e+00 2.025633220058637107e+0= 0 > 6.283185307179586232e+00 1.666666666666666574e01 1.800807713756398032e+0= 0 > 6.283185307179586232e+00 3.333333333333333148e01 1.600935643142084031e+0= 0 > 6.283185307179586232e+00 5.000000000000000000e01 1.423247420534685892e+0= 0 > 6.283185307179586232e+00 6.666666666666666297e01 1.265280855439646635e+0= 0 > 6.283185307179586232e+00 8.333333333333332593e01 1.124847036463023642e+0= 0 > 6.283185307179586232e+00 1.000000000000000000e+00 1.000000000000000000e+0= 0 > > > > How would you plot them in order to have a 2Dcolor plot where one can > understand we are working on a circle (well, maybe it will look like > something different since I have only a few grid points, but the aim > is clear, I hope)? > Kind Regards > > Lorenzo > > > > > > On 26/06/07, Benoit Donnet <benoit.donnet@...> wrote: > > Hey, > > > > That's quite simple. Assume your file containing the data is name > > Data.dat and is in the same directory than your python script. > > > > from pylab import * > > from numpy import * > > > > tab =3D load('Data.dat') #load the file > > r =3D tab[:,0] #get the r coordinates > > theta =3D tab[:,1] #get the theta coordinates > > T =3D tab[:,2] #get the temperature > > > > # now, you can process/plot your data > > > > Hope this help. > > > > Best regards. > > > > Benoit > > > > > > Le 25juin07 =E0 19:03, Lorenzo Isella a =E9crit : > > > > > Dear All, > > > I am quite a newbie about Python and Pylab, but I am starting to like > > > the ease you can develop with using these tools. > > > I am interested in 2D radial plots (think for instance about the plot > > > of the temperature along the crosssection of a pipe). > > > I had a look at the tutorial online, in particular to the case > > > described in: > > > > > > http://matplotlib.sourceforge.net/screenshots/polar_demo.py > > > > > > but there is something which is not 100% clear to me. > > > What if, instead of having an analytical expression for the quantity = I > > > want to plot I have to read it (together with the r and theta > > > coordinates) from a file, e.g.: > > > > > > r theta T > > > > > > > > > where the columns r and theta contain the list of (r,theta) > > > coordinates (the "grid" I am using along the cross section) and T the > > > temperature evaluated at that grid point? > > > If necessary, I can post an example file (but at the moment I am > > > working with fairly big files and I think I conveyed an idea of what = I > > > am after). > > > Many thanks > > > > > > Lorenzo > > > > > > =  > > >  > > > This SF.net email is sponsored by DB2 Express > > > Download DB2 Express C  the FREE version of DB2 express and take > > > control of your XML. No limits. Just data. Click to get it now. > > > http://sourceforge.net/powerbar/db2/ > > > _______________________________________________ > > > Matplotlibusers mailing list > > > Matplotlibusers@... > > > https://lists.sourceforge.net/lists/listinfo/matplotlibusers > > > >  > > Dr. Benoit Donnet > > Universit=E9 Catholique de Louvain (UCL) > > Facult=E9 des Sciences Appliqu=E9es  D=E9partement d'Ing=E9nierie > > Informatique (INGI) > > Place Sainte Barbe, 2 > > 1348 LouvainlaNeuve > > Belgium > > Phone: +32 10 47 87 18 > > Home page: http://inl.info.ucl.ac.be/donnet > > > > > > > > > >  > This SF.net email is sponsored by DB2 Express > Download DB2 Express C  the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Matplotlibusers mailing list > Matplotlibusers@... > https://lists.sourceforge.net/lists/listinfo/matplotlibusers > > > 
From: John Hunter <jdh2358@gm...>  20070626 14:35:23

On 6/26/07, Matthias Michler <MatthiasMichler@...> wrote: > Hello everybody, > > first of all: Sorry for posting to my own thread. > But I really like this new feature and may be the last message got lost among > the lots of mplmails. So I ask you once more for comments on this issue > (please). > > Is this new feature a bug to some of the RectangleSelectorusers or a real > feature? > Could it be part of mpl? Thanks for reminding us on this one. Making these widgets work well together can be a pain. I wrote some locking functionality to help coordinate them, is any of this functionality useful to you? The patch looks mostly correct, but the code trying to get the toolbar state is problematic + # If zoom mode was activated + if not (Gcf.get_active().toolbar.mode == ''): + return True + Gcf is a pylab construct, and code in widgets must not be dependent on pylab. Also, using the mode string here looks a bit hackish since it is designed to communicate to the user rather than represent state. See if you can use the lock functionality to achieve the same purpose  eg look at how widgetlock is used in the toolbar in backend_bases. If this is not viable, let me know why and we'll figure a better way for these widgets to communicate. JDH 
From: Lorenzo Isella <lorenzo.isella@gm...>  20070626 13:36:35

Hello, Thanks for your suggestion, but I still have a problem. Maybe I did not make myself clear (or most likely I have a problem about how to implement your suggestion): actually I have T=3DT(r,theta) and I would like to make a 2D plot using colors such that one can see that the domain where I am plotting is actually a circle. The example I mentioned is not exactly what I need since there one can find how to plot in polar coordinates a function of r alone. Furthermore, I do not have necessarily an equally spaced grid. For instance, let me consider the case of 5 theta's and 7 radial position and consequentely 35 values of T: theta R T 0.000000000000000000e+00 0.000000000000000000e+00 5.459815003314423620e+01 0.000000000000000000e+00 1.666666666666666574e01 4.853828855239110851e+01 0.000000000000000000e+00 3.333333333333333148e01 4.315101251901344881e+01 0.000000000000000000e+00 5.000000000000000000e01 3.836167151642037965e+01 0.000000000000000000e+00 6.666666666666666297e01 3.410390059527122020e+01 0.000000000000000000e+00 8.333333333333332593e01 3.031870066752165016e+01 0.000000000000000000e+00 1.000000000000000000e+00 2.695362096775039973e+01 1.570796326794896558e+00 0.000000000000000000e+00 2.396203225329512776e+01 1.570796326794896558e+00 1.666666666666666574e01 2.130248067207563523e+01 1.570796326794896558e+00 3.333333333333333148e01 1.893811334477913277e+01 1.570796326794896558e+00 5.000000000000000000e01 1.683616770181326316e+01 1.570796326794896558e+00 6.666666666666666297e01 1.496751749887080329e+01 1.570796326794896558e+00 8.333333333333332593e01 1.330626922033307302e+01 1.570796326794896558e+00 1.000000000000000000e+00 1.182940327795447999e+01 3.141592653589793116e+00 0.000000000000000000e+00 1.051645503298913731e+01 3.141592653589793116e+00 1.666666666666666574e01 9.349231221746512333e+00 3.141592653589793116e+00 3.333333333333333148e01 8.311557855141172624e+00 3.141592653589793116e+00 5.000000000000000000e01 7.389056098930650407e+00 3.141592653589793116e+00 6.666666666666666297e01 6.568943029058285532e+00 3.141592653589793116e+00 8.333333333333332593e01 5.839854501207304871e+00 3.141592653589793116e+00 1.000000000000000000e+00 5.191687680104649871e+00 4.712388980384689674e+00 0.000000000000000000e+00 4.615461046534314882e+00 4.712388980384689674e+00 1.666666666666666574e01 4.103189942205120566e+00 4.712388980384689674e+00 3.333333333333333148e01 3.647775927922803252e+00 4.712388980384689674e+00 5.000000000000000000e01 3.242908421924544982e+00 4.712388980384689674e+00 6.666666666666666297e01 2.882977255397825012e+00 4.712388980384689674e+00 8.333333333333332593e01 2.562994933482758420e+00 4.712388980384689674e+00 1.000000000000000000e+00 2.278527524544009530e+00 6.283185307179586232e+00 0.000000000000000000e+00 2.025633220058637107e+00 6.283185307179586232e+00 1.666666666666666574e01 1.800807713756398032e+00 6.283185307179586232e+00 3.333333333333333148e01 1.600935643142084031e+00 6.283185307179586232e+00 5.000000000000000000e01 1.423247420534685892e+00 6.283185307179586232e+00 6.666666666666666297e01 1.265280855439646635e+00 6.283185307179586232e+00 8.333333333333332593e01 1.124847036463023642e+00 6.283185307179586232e+00 1.000000000000000000e+00 1.000000000000000000e+00 How would you plot them in order to have a 2Dcolor plot where one can understand we are working on a circle (well, maybe it will look like something different since I have only a few grid points, but the aim is clear, I hope)? Kind Regards Lorenzo On 26/06/07, Benoit Donnet <benoit.donnet@...> wrote: > Hey, > > That's quite simple. Assume your file containing the data is name > Data.dat and is in the same directory than your python script. > > from pylab import * > from numpy import * > > tab =3D load('Data.dat') #load the file > r =3D tab[:,0] #get the r coordinates > theta =3D tab[:,1] #get the theta coordinates > T =3D tab[:,2] #get the temperature > > # now, you can process/plot your data > > Hope this help. > > Best regards. > > Benoit > > > Le 25juin07 =E0 19:03, Lorenzo Isella a =E9crit : > > > Dear All, > > I am quite a newbie about Python and Pylab, but I am starting to like > > the ease you can develop with using these tools. > > I am interested in 2D radial plots (think for instance about the plot > > of the temperature along the crosssection of a pipe). > > I had a look at the tutorial online, in particular to the case > > described in: > > > > http://matplotlib.sourceforge.net/screenshots/polar_demo.py > > > > but there is something which is not 100% clear to me. > > What if, instead of having an analytical expression for the quantity I > > want to plot I have to read it (together with the r and theta > > coordinates) from a file, e.g.: > > > > r theta T > > > > > > where the columns r and theta contain the list of (r,theta) > > coordinates (the "grid" I am using along the cross section) and T the > > temperature evaluated at that grid point? > > If necessary, I can post an example file (but at the moment I am > > working with fairly big files and I think I conveyed an idea of what I > > am after). > > Many thanks > > > > Lorenzo > > > >  > >  > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C  the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > > Matplotlibusers mailing list > > Matplotlibusers@... > > https://lists.sourceforge.net/lists/listinfo/matplotlibusers > >  > Dr. Benoit Donnet > Universit=E9 Catholique de Louvain (UCL) > Facult=E9 des Sciences Appliqu=E9es  D=E9partement d'Ing=E9nierie > Informatique (INGI) > Place Sainte Barbe, 2 > 1348 LouvainlaNeuve > Belgium > Phone: +32 10 47 87 18 > Home page: http://inl.info.ucl.ac.be/donnet > > > > 
From: Matthias Michler <MatthiasM<ichler@gm...>  20070626 13:15:53

Hello everybody, first of all: Sorry for posting to my own thread. But I really like this new feature and may be the last message got lost among the lots of mplmails. So I ask you once more for comments on this issue (please). Is this new feature a bug to some of the RectangleSelectorusers or a real feature? Could it be part of mpl? Thanks in advance for any comments. Matthias Michler On Thursday 03 May 2007 18:22, Matthias Michler wrote: > Hello list, > > refering to the thread 'activate/deactivate RectangleSelector' of the > developermailinglist I thought a bit about the problem because I found it > quite irritating that the RS couldn't be stopped during zooming. > > I attached a patch including Martin's example and my proposal to > (de)activate RectangleSelector including deactivation during zoom mode. > > I hope this is helpful for others too and can be part of matplotlib. > > best regards, > Matthias > > PS: Should I send those mails to developer mailing list? 
From: Nils Wagner <nwagner@ia...>  20070626 09:12:02

Hi all, I would like to plot the largest eigenvalue of an affine matrix over a grid. I followed the hints available at http://www.scipy.org/Cookbook/Matplotlib/mplot3D I missed the hint "Note that not all examples on this page are up to date, so some of them might not be working." How can I fix the problem ? Nils python i eigplot.py verbosehelpful matplotlib data path /usr/lib64/python2.4/sitepackages/matplotlib/mpldata $HOME=/home/nwagner CONFIGDIR=/home/nwagner/.matplotlib loaded rc file /home/nwagner/.matplotlib/matplotlibrc matplotlib version 0.90.1 verbose.level helpful interactive is False units is True platform is linux2 numerix numpy 1.0.4.dev3875 font search path ['/usr/lib64/python2.4/sitepackages/matplotlib/mpldata/fonts/ttf', '/usr/lib64/python2.4/sitepackages/matplotlib/mpldata/fonts/afm'] loaded ttfcache file /home/nwagner/.matplotlib/ttffont.cache backend TkAgg version 8.4 Traceback (most recent call last): File "eigplot.py", line 28, in ? ax.contourf3D(X,Y,Z) File "/usr/lib64/python2.4/sitepackages/matplotlib/axes3d.py", line 590, in contourf3D raise NotImplementedError("contourf3D is broken") NotImplementedError: contourf3D is broken 
From: Benoit Donnet <benoit.donnet@uc...>  20070626 06:17:20

Hey, That's quite simple. Assume your file containing the data is name =20 Data.dat and is in the same directory than your python script. from pylab import * from numpy import * tab =3D load('Data.dat') #load the file r =3D tab[:,0] #get the r coordinates theta =3D tab[:,1] #get the theta coordinates T =3D tab[:,2] #get the temperature # now, you can process/plot your data Hope this help. Best regards. Benoit Le 25juin07 =E0 19:03, Lorenzo Isella a =E9crit : > Dear All, > I am quite a newbie about Python and Pylab, but I am starting to like > the ease you can develop with using these tools. > I am interested in 2D radial plots (think for instance about the plot > of the temperature along the crosssection of a pipe). > I had a look at the tutorial online, in particular to the case =20 > described in: > > http://matplotlib.sourceforge.net/screenshots/polar_demo.py > > but there is something which is not 100% clear to me. > What if, instead of having an analytical expression for the quantity I > want to plot I have to read it (together with the r and theta > coordinates) from a file, e.g.: > > r theta T > > > where the columns r and theta contain the list of (r,theta) > coordinates (the "grid" I am using along the cross section) and T the > temperature evaluated at that grid point? > If necessary, I can post an example file (but at the moment I am > working with fairly big files and I think I conveyed an idea of what I > am after). > Many thanks > > Lorenzo > > =20= >  > This SF.net email is sponsored by DB2 Express > Download DB2 Express C  the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Matplotlibusers mailing list > Matplotlibusers@... > https://lists.sourceforge.net/lists/listinfo/matplotlibusers  Dr. Benoit Donnet Universit=E9 Catholique de Louvain (UCL) Facult=E9 des Sciences Appliqu=E9es  D=E9partement d'Ing=E9nierie =20 Informatique (INGI) Place Sainte Barbe, 2 1348 LouvainlaNeuve Belgium Phone: +32 10 47 87 18 Home page: http://inl.info.ucl.ac.be/donnet 
From: Lorenzo Isella <lorenzo.isella@gm...>  20070625 17:03:41

Dear All, I am quite a newbie about Python and Pylab, but I am starting to like the ease you can develop with using these tools. I am interested in 2D radial plots (think for instance about the plot of the temperature along the crosssection of a pipe). I had a look at the tutorial online, in particular to the case described in: http://matplotlib.sourceforge.net/screenshots/polar_demo.py but there is something which is not 100% clear to me. What if, instead of having an analytical expression for the quantity I want to plot I have to read it (together with the r and theta coordinates) from a file, e.g.: r theta T where the columns r and theta contain the list of (r,theta) coordinates (the "grid" I am using along the cross section) and T the temperature evaluated at that grid point? If necessary, I can post an example file (but at the moment I am working with fairly big files and I think I conveyed an idea of what I am after). Many thanks Lorenzo 
From: Eric Firing <efiring@ha...>  20070625 16:57:28

Steve Schmerler wrote: > Beha Online wrote: >> I receive the following message when I import pylab with: "from pylab import *": >> >> /usr/lib64/python2.4/sitepackages/matplotlib/numerix/__init__.py:67: >> DeprecationWarning: Numeric use as a numerix backed for matplotlib is >> deprecated >> DeprecationWarning, stacklevel=1) >> > > In your ~/.matplotlib/matplotlibrc file set "numerix: numpy" in order to > use numpy. AFAIK, the support for Numeric and numarray will be dropped > sooner or later. > Correct. It has already been dropped in svn, so the next release will support only numpy. The numerix module will still be present, so the change to numpyonly inside mpl should not break user code, provided the user has numpy installed. Eric 
From: Steve Schmerler <elcorto@gm...>  20070625 11:26:06

Beha Online wrote: > I receive the following message when I import pylab with: "from pylab import *": > > /usr/lib64/python2.4/sitepackages/matplotlib/numerix/__init__.py:67: > DeprecationWarning: Numeric use as a numerix backed for matplotlib is > deprecated > DeprecationWarning, stacklevel=1) > In your ~/.matplotlib/matplotlibrc file set "numerix: numpy" in order to use numpy. AFAIK, the support for Numeric and numarray will be dropped sooner or later.  cheers, steve Random number generation is the art of producing pure gibberish as quickly as possible. 
From: Beha Online <beha.online@gm...>  20070625 11:05:53

I receive the following message when I import pylab with: "from pylab import *": /usr/lib64/python2.4/sitepackages/matplotlib/numerix/__init__.py:67: DeprecationWarning: Numeric use as a numerix backed for matplotlib is deprecated DeprecationWarning, stacklevel=1) What can be wrong here? I am on Linux Fedora 6, 64 bits version, Python 2.4.4 Thanks for any help. Beha 
From: Pierre GM <pgmdevlist@gm...>  20070625 01:14:15

On Sunday 24 June 2007 20:45:09 Rodrigo L=F3pez Negrete de la Fuente wrote: > I've been trying to generate certain plots, but sometimes I get strange > additions to the yticks in the plots. I've been wondering if there is a w= ay > to force matplotlib to not do that, and only use multiplicative correctio= ns > to the plots (i.e., just the x1e3 for example and not the +4.519x10). Rodrigo, This behaviour is controlled by the formatter of the yaxis. Choose one=20 formatter that suits you, or define your own. More info: http://matplotlib.sourceforge.net/matplotlib.ticker.html examples/newscalarformatter_demo.py 
From: <soyrush@gm...>  20070625 00:46:55

From: <soyrush@gm...>  20070625 00:45:46

SGkKCkkndmUgYmVlbiB0cnlpbmcgdG8gZ2VuZXJhdGUgY2VydGFpbiBwbG90cywgYnV0IHNvbWV0 aW1lcyBJIGdldCBzdHJhbmdlCmFkZGl0aW9ucyB0byB0aGUgeXRpY2tzIGluIHRoZSBwbG90cy4g SSd2ZSBiZWVuIHdvbmRlcmluZyBpZiB0aGVyZSBpcyBhIHdheQp0byBmb3JjZSBtYXRwbG90bGli IHRvIG5vdCBkbyB0aGF0LCBhbmQgb25seSB1c2UgbXVsdGlwbGljYXRpdmUgY29ycmVjdGlvbnMK dG8gdGhlIHBsb3RzIChpLmUuLCBqdXN0IHRoZSB4MWUtMyBmb3IgZXhhbXBsZSBhbmQgbm90IHRo ZSArNC41MTl4MTApLgoKQW55IGhlbHAgd2lsbCBiZSB2ZXJ5IG11Y2ggYXBwcmVjaWF0ZWQhIHRo YW5rcwoKClJvZHJpZ28KCi0tIApSb2RyaWdvIEzDs3BleiBOZWdyZXRlCmh0dHA6Ly9tdW9uLmJs b2dkbnMub3JnL35ydXNoLwo= 
From: Antonio Gonzalez <Antonio.G<onzalez@ki...>  20070623 09:07:31

> Yep this was it  fixed in svn. Thanks for the clever test case! > > JDH Oh, well  thanks for the very quick fix. Comes in very handy. A 
From: John Hunter <jdh2358@gm...>  20070622 20:05:37

On 6/22/07, John Hunter <jdh2358@...> wrote: > Truly an interesting bug. It doesn't show up in PS but does in Agg. > The most likely explanation is that the draw marker function is > setting a clip path that isn't properly getting cleared and subsequent > draws are being clipped to the original axes. Yep this was it  fixed in svn. Thanks for the clever test case! JDH 
From: John Hunter <jdh2358@gm...>  20070622 19:43:06

On 6/22/07, Antonio Gonzalez <Antonio.Gonzalez@...> wrote: > I'm seeing a rather odd behaviour when plotting (using mpl 3405): >  create a figure with two subplots >  plot something on each axis >  plot an extra something on the first axis USING A SYMBOL >  set axis off >  show() > Result: the second plot won't be shown Truly an interesting bug. It doesn't show up in PS but does in Agg. The most likely explanation is that the draw marker function is setting a clip path that isn't properly getting cleared and subsequent draws are being clipped to the original axes. I'll look into it. JDH 
From: Antonio Gonzalez <Antonio.G<onzalez@ki...>  20070622 19:21:13

I'm seeing a rather odd behaviour when plotting (using mpl 3405):  create a figure with two subplots  plot something on each axis  plot an extra something on the first axis USING A SYMBOL  set axis off  show() Result: the second plot won't be shown However, the second plot will be shown if I follow the same process without using a symbol, or if I don't switch off the axes. To illustrate, consider the following code: from pylab import figure, rand, show fig = figure() ax1 = fig.add_subplot(121) ax2 = fig.add_subplot(122) ax1.plot(rand(100)) ax1.plot([50, 60], [.5, .6], '^') ax2.plot(rand(100)) for ax in fig.axes: ax.set_axis_off() show() The second plot (ax2) is not shown. Now, if line 8 is commented, or if a symbol is not used in line 6, as in: ax1.plot([50, 60], [.5, .6]) then the two plots are shown as expected. Looks like a bug to me, right? Regards, Antonio 
From: Ryan Krauss <ryanlists@gm...>  20070622 18:55:33

There is a nice gnuplot python interface out there. Google for gnuplot.py On 6/22/07, Stephan Bourduas <stephan.bourduas@...> wrote: > On June 20, 2007, Eric Firing wrote: > > Unfortunately, the 3D plotting capability is incomplete and mostly > > unmaintained. > > > > > Orest Kozyar wrote: > > > One thing I would really love to be able to do is generate a surface > > > map that is colorcoded. Right now I can generate a singlecolor > > > surface map, but a colorcoded surface map would be much easier to > > > interpret. > > I needed to make a surface plot last week and I ended up using gnuplot > (http://www.gnuplot.info/) instead of matplotlib. As stated above, the 3D > plotting capabilities of matplotlib are somewhat limited, so you may need to > use an alternative package. gnuplot generates plots which are quite similar > to Matlab, check out the 'pm3d' plot style: > > http://gnuplot.sourceforge.net/demo_4.2/pm3d.html > > You can also control the color map: > http://gnuplot.sourceforge.net/demo_4.2/pm3dcolors.html > > Stephan > >  > This SF.net email is sponsored by DB2 Express > Download DB2 Express C  the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Matplotlibusers mailing list > Matplotlibusers@... > https://lists.sourceforge.net/lists/listinfo/matplotlibusers > 
From: Stephan Bourduas <stephan.bourduas@vi...>  20070622 18:45:10

On June 20, 2007, Eric Firing wrote: > Unfortunately, the 3D plotting capability is incomplete and mostly > unmaintained. > > Orest Kozyar wrote: > > One thing I would really love to be able to do is generate a surface > > map that is colorcoded. Right now I can generate a singlecolor > > surface map, but a colorcoded surface map would be much easier to > > interpret. I needed to make a surface plot last week and I ended up using gnuplot (http://www.gnuplot.info/) instead of matplotlib. As stated above, the 3D plotting capabilities of matplotlib are somewhat limited, so you may need to use an alternative package. gnuplot generates plots which are quite similar to Matlab, check out the 'pm3d' plot style: http://gnuplot.sourceforge.net/demo_4.2/pm3d.html You can also control the color map: http://gnuplot.sourceforge.net/demo_4.2/pm3dcolors.html Stephan 