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
(2) 
2
(1) 
3
(6) 
4
(19) 
5
(11) 
6
(2) 
7

8
(5) 
9
(13) 
10
(25) 
11
(28) 
12
(6) 
13
(10) 
14
(3) 
15
(4) 
16
(8) 
17
(16) 
18
(12) 
19
(16) 
20
(12) 
21
(11) 
22
(13) 
23
(11) 
24
(22) 
25
(28) 
26
(11) 
27
(8) 
28
(7) 
29
(19) 
30
(3) 
31
(20) 




From: George Nurser <agn@no...>  20060125 22:31:50

On 25 Jan 2006, at 21:13, Eric Firing wrote: > James Boyle wrote: >> In the quadmesh demo the shapes of the data(Z) and the coordinates >> (Qx,Qz) are exactly the same (n x n). >> Now my understanding is that what is being plotted are values in a >> mesh which needs (n+1,n+1) vertices to describe it. >> If I have a mesh of quadrilaterals defined by the vertices  how >> can pcolormesh plot this? >> In collections.py the comments of QuadMesh appear to be addressing >> the description of the vertices, how is this used by pcolormesh? >> It is very likely something very simple I am missing but I am at a >> loss at present. >> Jim > > > Jim, > > I think that all the pcolortype functions and methods simply throw > away the last row and column of Z. This behavior is inherited from > Matlab. Perhaps it could be clarified (made explicit) in the > documentation. This has always been a very annoying feature of matlab. > I would also be inclined to make these functions accept a Z with > dimensions (m1, n1) for a grid with dimensions (m,n). It is > silly to have to tack on an extra dummy row and column just to be > able to use all the values in a Z array. It really would be much more logical. George. 
From: Jack Sankey <jack.sankey@gm...>  20060125 21:44:31

When you click on the close button of a graphics window, does this call pylab.close()? Jack 
From: Darren Dale <dd55@co...>  20060125 21:36:33

On Wednesday 25 January 2006 14:59, Ryan Krauss wrote: > My guess on the first problem is that you don't have ps2eps installed. > This is a dependency that I am not sure is checked. There was a bug in the function that checks for ps2eps. It is fixed in cvs. 
From: Eric Firing <efiring@ha...>  20060125 21:14:52

James Boyle wrote: > In the quadmesh demo the shapes of the data(Z) and the > coordinates(Qx,Qz) are exactly the same (n x n). > Now my understanding is that what is being plotted are values in a mesh > which needs (n+1,n+1) vertices to describe it. > > If I have a mesh of quadrilaterals defined by the vertices  how can > pcolormesh plot this? > > In collections.py the comments of QuadMesh appear to be addressing the > description of the vertices, how is this used by pcolormesh? > > It is very likely something very simple I am missing but I am at a loss > at present. > > Jim Jim, I think that all the pcolortype functions and methods simply throw away the last row and column of Z. This behavior is inherited from Matlab. Perhaps it could be clarified (made explicit) in the documentation. I would also be inclined to make these functions accept a Z with dimensions (m1, n1) for a grid with dimensions (m,n). It is silly to have to tack on an extra dummy row and column just to be able to use all the values in a Z array. Other people are working on the pcolortype functions now, so I don't want to barge in and make these changes, but I don't see any reason they can't be made once the dust settles. Eric 
From: James Boyle <boyle5@ll...>  20060125 20:29:22

In the quadmesh demo the shapes of the data(Z) and the coordinates(Qx,Qz) are exactly the same (n x n). Now my understanding is that what is being plotted are values in a mesh which needs (n+1,n+1) vertices to describe it. If I have a mesh of quadrilaterals defined by the vertices  how can pcolormesh plot this? In collections.py the comments of QuadMesh appear to be addressing the description of the vertices, how is this used by pcolormesh? It is very likely something very simple I am missing but I am at a loss at present. Jim 
From: Graeme Lufkin <graeme.lufkin@gm...>  20060125 20:11:00

D'oh! I thought I had caught all the dependencies. That did it for the distilling, thanks. Anyone else with this problem, ps2eps can be found at http://www.tm.uka.de/~bless/ps2eps. On 1/25/06, Ryan Krauss <ryanlists@...> wrote: > My guess on the first problem is that you don't have ps2eps installed. > This is a dependency that I am not sure is checked. The output of > this command should create an .eps file in the tmp folder you were > looking at. >   Graeme graeme.lufkin@... 
From: Ryan Krauss <ryanlists@gm...>  20060125 19:59:21

My guess on the first problem is that you don't have ps2eps installed. This is a dependency that I am not sure is checked. The output of this command should create an .eps file in the tmp folder you were looking at. Try typing ps2eps v at a command prompt and see if you have it. You also need ps2pdf and pdftops, but if the message is complaining about an eps file, ps2eps is likely the problem. I think these commands are mainly ghostscript wrappers, but I am not sure. Ryan On 1/25/06, Graeme Lufkin <graeme.lufkin@...> wrote: > I'm quite excited about usetex; it looks like exactly what I want. > I'm using matplotlib 0.86.2, dvipng 1.7, xpdf 3.00 and > gnughostscript8.16. I've got two issues. > First, I tried setting ps.usedistiller to xpdf, and got the error > 'file not found: ~/tmp/<long hash here>.eps'. If I look, a '.ps' file > is there, which is probably what the distilling process means. Help? > Second: In the script below, I've edited tex_demo.py to reveal two > bugs. First, if I don't specify the right size axes, the top plot > label gets cut off, presumably because the height of the latex > fragment isn't calculated right or something. Second, I've increased > the amplitude of the function, making the yaxis ticks integral. With > this change, the y axis ticks are now back in the default matplotlib > font, instead of Computer Modern as when they were between 0 and 2. > Not sure how this could happen. > Thanks for your great work so far. > > tex_demo.py: > rc('text', usetex=3DTrue) > #figure(1) > #ax =3D axes([0.1, 0.1, 0.8, 0.7]) > t =3D arange(0.0, 1.0+0.01, 0.01) > s =3D 50 * cos(2*2*pi*t)+50 > plot(t, s) > > xlabel(r'\bf{time (s)}') > ylabel(r'\it{voltage (mV)}',fontsize=3D16) > title(r"\TeX\ is Number > $\displaystyle\sum_{n=3D1}^\infty\frac{e^{i\pi}}{2^n}$!", > fontsize=3D16, color=3D'r') > grid(True) > savefig('tex_demo') > show() > >  >  Graeme > graeme.lufkin@... > > >  > This SF.net email is sponsored by: Splunk Inc. Do you grep through log fi= les > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.asus.falkag.net/sel?cmdlnk&kid=103432&bid#0486&dat=121642 > _______________________________________________ > Matplotlibusers mailing list > Matplotlibusers@... > https://lists.sourceforge.net/lists/listinfo/matplotlibusers > 
From: Robert Kern <robert.kern@gm...>  20060125 19:48:11

Graeme Lufkin wrote: > Reading the user's guide, matplotlib looks for the matplotlibrc file > in current directory, home dir, get_data_path(), then finally > $MATPLOTLIBDATA before giving up. I assumed that this order meant > that options found higher in the list overrode those set in > lowerpriority rc files. When I started playing with usetex, I found > that lower priority rc files aren't read at all, only the first found > rc file. This goes counter to standard rc file practice, where a > systemwide file is read first, then possibly overridden by personal > ($HOME) and working directory options. > Is this analysis correct? More or less. > Is there a reason for it? It was the easiest thing to do and didn't seem to be place too onerous a burden on anyone. > Can it be > changed? Well, I believe that an overhaul of the options system has been on the table for some time now. I'm sure that if you are willing to write code to implement such semantics that it will probably be included.  Robert Kern robert.kern@... "In the fields of hell where the grass grows high Are the graves of dreams allowed to die."  Richard Harter 
From: Graeme Lufkin <graeme.lufkin@gm...>  20060125 19:28:04

I'm quite excited about usetex; it looks like exactly what I want.=20 I'm using matplotlib 0.86.2, dvipng 1.7, xpdf 3.00 and gnughostscript8.16. I've got two issues. First, I tried setting ps.usedistiller to xpdf, and got the error 'file not found: ~/tmp/<long hash here>.eps'. If I look, a '.ps' file is there, which is probably what the distilling process means. Help? Second: In the script below, I've edited tex_demo.py to reveal two bugs. First, if I don't specify the right size axes, the top plot label gets cut off, presumably because the height of the latex fragment isn't calculated right or something. Second, I've increased the amplitude of the function, making the yaxis ticks integral. With this change, the y axis ticks are now back in the default matplotlib font, instead of Computer Modern as when they were between 0 and 2.=20 Not sure how this could happen. Thanks for your great work so far. tex_demo.py: rc('text', usetex=3DTrue) #figure(1) #ax =3D axes([0.1, 0.1, 0.8, 0.7]) t =3D arange(0.0, 1.0+0.01, 0.01) s =3D 50 * cos(2*2*pi*t)+50 plot(t, s) xlabel(r'\bf{time (s)}') ylabel(r'\it{voltage (mV)}',fontsize=3D16) title(r"\TeX\ is Number $\displaystyle\sum_{n=3D1}^\infty\frac{e^{i\pi}}{2^n}$!", fontsize=3D16, color=3D'r') grid(True) savefig('tex_demo') show()   Graeme graeme.lufkin@... 
From: Graeme Lufkin <graeme.lufkin@gm...>  20060125 19:13:15

Reading the user's guide, matplotlib looks for the matplotlibrc file in current directory, home dir, get_data_path(), then finally $MATPLOTLIBDATA before giving up. I assumed that this order meant that options found higher in the list overrode those set in lowerpriority rc files. When I started playing with usetex, I found that lower priority rc files aren't read at all, only the first found rc file. This goes counter to standard rc file practice, where a systemwide file is read first, then possibly overridden by personal ($HOME) and working directory options. Is this analysis correct? Is there a reason for it? Can it be changed? Thanks   Graeme graeme.lufkin@... 
From: Travis E. Oliphant <oliphant.travis@ie...>  20060125 19:01:42

Jeff Whitaker wrote: > Stephens, A (Ag) wrote: > > > Ag: You should be able to use either contourf or pcolor to make the > plot by just passing it the X and Y coordinates of the radial distance, > azimuth points. Here's a simple example: > > from pylab import * > deltatheta = 2.*pi/100. > theta = arange(0.,2.*pi,deltatheta) > R = arange(0.,pi,deltatheta) > r,t = meshgrid(R, theta) I see this kind of code a lot on this list. I just want to point out that in NumPy (and Numeric and Numarray) you don't have to completely generate the "meshgrid" like this because of broadcasting. All you need is for r to be Nx1 and t to be 1xN and the broadcasting will take care of it so that Z, X, and Y below are all NxN. This can save space and time particularly for large values of N. In NumPy (and old SciPy) there is even a simple constructor for these "open" grids: r,t = ogrid[0:pi:deltatheta, 0:2*pi:deltatheta] would replace the three lines above. > Z = sin(r)*sin(3.*t) > X = r*cos(t) > Y = r*sin(t) > figure(figsize=(8,8)) > cs = contourf(X, Y, Z) > title('Simple polar contour plot') > show() Sorry for the somewhat offtopic post. Travis 
From: Eric Firing <efiring@ha...>  20060125 17:30:59

Christian, James, I added masked_array support to the scatter function in CVS yesterday, so that with mpl from CVS one should be able to used masked arrays for any or all of the array arguments and it will plot only the unmasked values. I added examples/scatter_masked.py to illustrate this. Eric Christian Meesters wrote: > Hi James, > > Guess I can't provide what Jim wants to code, but perhaps the wiki entry I > wrote a while ago will help out: > http://new.scipy.org/Wiki/Cookbook/Matplotlib/Plotting_values_with_masked_arrays > (apparently the new highlighter messed up some lines, but it is still > readable) > > Christian > > >  > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.asus.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 > _______________________________________________ > Matplotlibusers mailing list > Matplotlibusers@... > https://lists.sourceforge.net/lists/listinfo/matplotlibusers 
From: Arnd Baecker <arnd.baecker@we...>  20060125 16:10:44

Hi Ryan, On Wed, 25 Jan 2006, Ryan Krauss wrote: > This is a threading problem. As I understand it, you have two options: > 1. Stick with TkAgg. Hmm. Unfortunately, TkAgg is a factor 2 slower for animations than GTKAgg. > 2. Run the demo under iPython. I just tried that, i.e. via: ipython pylab run tst.py but it did not work: whenever the plot window is behind some other window during the raw_input(""), the contents is destroyed. Best, Arnd 
From: Ryan Krauss <ryanlists@gm...>  20060125 14:40:02

This is a threading problem. As I understand it, you have two options: 1. Stick with TkAgg. 2. Run the demo under iPython. Otherwise the user has to close the plot window to keep the thread going. On 1/25/06, Arnd Baecker <arnd.baecker@...> wrote: > Hi, > > I need help for the conversion from scipy.xplt to matplotlib: > > We have several cases where one plot is shown after another, > separated via > raw_input("press <enter> for the next plot") > > However, while waiting for <enter> the redraw of the plot window > does not work (e.g if it gets behind some other window). > > This example, run as a script, demonstrates the problem: > > # > from pylab import * > ion() # interactive mode > x =3D arange(10) > plot(x,x*x) # add something to the plot > draw() > raw_input("press <enter> for the next plot") > clf() # another plot > plot(x,x**3) > draw() > raw_input("press <enter> for end") > # > > This does work for TkAgg but not for GTK, GTKAgg and WX. > > Best, Arnd > > P.S.: This is under debian linux with the latest CVS. > I could not test it under WXAgg because this gives me > (process:4035): GLibGObjectCRITICAL **: g_object_new: assertion > `G_TYPE_IS_OBJECT (object_type)' failed > > > > >  > This SF.net email is sponsored by: Splunk Inc. Do you grep through log fi= les > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.asus.falkag.net/sel?cmd=3Dlnk&kid=3D103432&bid=3D230486&dat= =3D121642 > _______________________________________________ > Matplotlibusers mailing list > Matplotlibusers@... > https://lists.sourceforge.net/lists/listinfo/matplotlibusers > 
From: Arnd Baecker <arnd.baecker@we...>  20060125 14:04:40

Hi, I need help for the conversion from scipy.xplt to matplotlib: We have several cases where one plot is shown after another, separated via raw_input("press <enter> for the next plot") However, while waiting for <enter> the redraw of the plot window does not work (e.g if it gets behind some other window). This example, run as a script, demonstrates the problem: # from pylab import * ion() # interactive mode x = arange(10) plot(x,x*x) # add something to the plot draw() raw_input("press <enter> for the next plot") clf() # another plot plot(x,x**3) draw() raw_input("press <enter> for end") # This does work for TkAgg but not for GTK, GTKAgg and WX. Best, Arnd P.S.: This is under debian linux with the latest CVS. I could not test it under WXAgg because this gives me (process:4035): GLibGObjectCRITICAL **: g_object_new: assertion `G_TYPE_IS_OBJECT (object_type)' failed 
From: Jeff Whitaker <jswhit@fa...>  20060125 13:21:06

Stephens, A (Ag) wrote: > Dear all, > > I am just looking at matplotlib for the first time and liking very much > what I see. I have a requirement to try and plot a horizontal scan from > a radar. The incoming data is simply array(distanceFromInstrument, > azimuth). Has anybody tried doing for a polar plot without converting > the data to a lat/lon grid first? > > An example of what I'd like to do is visible at: > > http://www.chilbolton.rl.ac.uk/weather/latest/latest_ppi_v2.png > > Thanks, > > Ag > Ag: You should be able to use either contourf or pcolor to make the plot by just passing it the X and Y coordinates of the radial distance, azimuth points. Here's a simple example: from pylab import * deltatheta = 2.*pi/100. theta = arange(0.,2.*pi,deltatheta) R = arange(0.,pi,deltatheta) r,t = meshgrid(R, theta) Z = sin(r)*sin(3.*t) X = r*cos(t) Y = r*sin(t) figure(figsize=(8,8)) cs = contourf(X, Y, Z) title('Simple polar contour plot') show() Jeff  Jeffrey S. Whitaker Phone : (303)4976313 Meteorologist FAX : (303)4976449 NOAA/OAR/PSD R/PSD1 Email : Jeffrey.S.Whitaker@... 325 Broadway Office : Skaggs Research Cntr 1D124 Boulder, CO, USA 803033328 Web : http://tinyurl.com/5telg 
From: Darren Dale <dd55@co...>  20060125 11:42:23

On Tuesday 24 January 2006 10:41 pm, Christopher Fonnesbeck wrote: > For some reason, the current cvs build of matplotlib > generates a strange error: > > import pylab > pylab.plot([1,2,3]) > > yields: > > ValueError: arrays must have same number of dimensions I think this was discussed on the devel list last week: http://sourceforge.net/mailarchive/forum.php?thread_id=9520529&forum_id=36187 
From: Christian Meesters <meesters@un...>  20060125 08:26:35

Hi James, Guess I can't provide what Jim wants to code, but perhaps the wiki entry I wrote a while ago will help out: http://new.scipy.org/Wiki/Cookbook/Matplotlib/Plotting_values_with_masked_arrays (apparently the new highlighter messed up some lines, but it is still readable) Christian 
From: David TREMOUILLES <david.trem@gm...>  20060125 05:32:31

Hi, I'm looking for a pygtk GUI to configure matplotlib plot attributes like it is done in Mplot http://cars9.uchicago.edu/~newville/Python/MPlot/screenshots.html <http://cars9.uchicago.edu/%7Enewville/Python/MPlot/screenshots.html>; or something equivalent using a tree .... David 
From: David TREMOUILLES <david.trem@gm...>  20060125 05:29:58

Hi, I'm looking for a pygtk GUI to configure matplotlib plot attributes like it is done in Mplot http://cars9.uchicago.edu/~newville/Python/MPlot/screenshots.html or something equivalent using a tree .... David 
From: Matt Newville <newville@ca...>  20060125 05:08:06

Jack, It's not exactly the same (it doesn't use a tree to access 'objects'), but MPlot has a wxPython GUI for configuring many of the plot attributes such as line style, color, etc. See http://cars9.uchicago.edu/~newville/Python/MPlot/screenshots.html Matt 
From: Eric Firing <efiring@ha...>  20060125 04:07:44

Christopher Fonnesbeck wrote: > For some reason, the current cvs build of matplotlib > generates a strange error: > > import pylab > pylab.plot([1,2,3]) > > yields: > > ValueError: arrays must have same number of dimensions > > I thought perhaps a second array was required, but: > > pylab.plot([1,2,3],[1,2,3]) > > yields the same error. > > Anyone else getting this? Chris, I'm not. Looking at your traceback, I see that your version of lines.py is not uptodate, and is missing the changes required for numpy support that will solve this problem. There have been several such changes during the past week. Either there are big problems with CVS mirror lag, or you have not updated recently enough. Eric 
From: Charlie Moad <cwmoad@gm...>  20060125 03:59:34

Judging from "matplotlib0.86py2.4macosx10.4ppc.egg" I am guessing you are not using cvs matplotlib. That is a strange error none the less. 0.86.2 was released today. Can you give it a try? On 1/24/06, Christopher Fonnesbeck <chris@...> wrote: > For some reason, the current cvs build of matplotlib > generates a strange error: > > import pylab > pylab.plot([1,2,3]) > > yields: > > ValueError: arrays must have same number of dimensions > > I thought perhaps a second array was required, but: > > pylab.plot([1,2,3],[1,2,3]) > > yields the same error. > > Anyone else getting this? > > Here is a full debug of the call using ipython: > > In [4]: pylab.plot([1,2,3]) > =  > exceptions.ValueError > Traceback (most recent call last) > > /Users/chris/<ipython console> > > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/sitepack= ages/matplotlib0.86py2.4macosx10.4ppc.egg/matplotlib/pylab.py > in plot(*args=3D([1, 2, 3],), **kwargs=3D{}) > 2053 def plot(*args, **kwargs): > 2054 # allow callers to override the hold state > by passing hold=3DTrueFalse > > 2055 b =3D ishold() > b =3D undefined > global ishold =3D <function ishold at 0x175a270> > 2056 h =3D popd(kwargs, 'hold', None) > 2057 if h is not None: > > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/sitepack= ages/matplotlib0.86py2.4macosx10.4ppc.egg/matplotlib/pylab.py > in ishold() > 937 Return the hold status of the current axes > 938 """ > > 939 return gca().ishold() > global gca.ishold =3D undefined > 940 > 941 def isinteractive(): > > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/sitepack= ages/matplotlib0.86py2.4macosx10.4ppc.egg/matplotlib/pylab.py > in gca(**kwargs=3D{}) > 888 """ > 889 > > 890 ax =3D gcf().gca(**kwargs) > ax =3D undefined > global gcf.gca =3D undefined > kwargs =3D {} > 891 return ax > 892 > > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/sitepack= ages/matplotlib0.86py2.4macosx10.4ppc.egg/matplotlib/figure.py > in gca(self=3D<matplotlib.figure.Figure instance at > 0x16a3440>, **kwargs=3D{}) > 613 ax =3D self._axstack() > 614 if ax is not None: return ax > > 615 return self.add_subplot(111, **kwargs) > self.add_subplot =3D <bound method > Figure.add_subplot of <matplotlib.figure.Figure > instance at 0x16a3440>> > kwargs =3D {} > 616 > 617 def sca(self, a): > > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/sitepack= ages/matplotlib0.86py2.4macosx10.4ppc.egg/matplotlib/figure.py > in add_subplot(self=3D<matplotlib.figure.Figure instance > at 0x16a3440>, *args=3D(111,), **kwargs=3D{}) > 463 a =3D PolarSubplot(self, *args, > **kwargs) > 464 else: > > 465 a =3D Subplot(self, *args, > **kwargs) > a =3D undefined > global Subplot =3D <class > matplotlib.axes.Subplot at 0x169ec30> > self =3D <matplotlib.figure.Figure instance at > 0x16a3440> > args =3D (111,) > kwargs =3D {} > 466 > 467 > > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/sitepack= ages/matplotlib0.86py2.4macosx10.4ppc.egg/matplotlib/axes.py > in __init__(self=3D<matplotlib.axes.Subplot instance at > 0x16e67d8>, fig=3D<matplotlib.figure.Figure instance at > 0x16a3440>, *args=3D(111,), **kwargs=3D{}) > 3972 def __init__(self, fig, *args, **kwargs): > 3973 SubplotBase.__init__(self, fig, *args) > > 3974 Axes.__init__(self, fig, > [self.figLeft, self.figBottom, > global Axes.__init__ =3D <unbound method > Axes.__init__> > self =3D <matplotlib.axes.Subplot instance at > 0x16e67d8> > fig =3D <matplotlib.figure.Figure instance at > 0x16a3440> > self.figLeft =3D 0.125 > self.figBottom =3D 0.099999999999999978 > self.figW =3D 0.77500000000000002 > self.figH =3D 0.80000000000000004 > kwargs =3D {} > 3975 self.figW, > self.figH], **kwargs) > 3976 > > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/sitepack= ages/matplotlib0.86py2.4macosx10.4ppc.egg/matplotlib/axes.py > in __init__(self=3D<matplotlib.axes.Subplot instance at > 0x16e67d8>, fig=3D<matplotlib.figure.Figure instance at > 0x16a3440>, rect=3D[0.125, 0.099999999999999978, > 0.77500000000000002, 0.80000000000000004], > axisbg=3DNone, frameon=3DTrue, sharex=3DNone, sharey=3DNone, > label=3D'', **kwargs=3D{}) > 329 > 330 # this call may differ for nonsep > axes, eg polar > > 331 self._init_axis() > self._init_axis =3D <bound method > Subplot._init_axis of <matplotlib.axes.Subplot > instance at 0x16e67d8>> > 332 > 333 > > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/sitepack= ages/matplotlib0.86py2.4macosx10.4ppc.egg/matplotlib/axes.py > in _init_axis(self=3D<matplotlib.axes.Subplot instance > at 0x16e67d8>) > 358 def _init_axis(self): > 359 "move this out of __init__ because > nonseparable axes don't use it" > > 360 self.xaxis =3D XAxis(self) > self.xaxis =3D undefined > global XAxis =3D <class matplotlib.axis.XAxis at > 0x167a060> > self =3D <matplotlib.axes.Subplot instance at > 0x16e67d8> > 361 self.yaxis =3D YAxis(self) > 362 > > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/sitepack= ages/matplotlib0.86py2.4macosx10.4ppc.egg/matplotlib/axis.py > in __init__(self=3D<matplotlib.axis.XAxis instance at > 0x177fb48>, axes=3D<matplotlib.axes.Subplot instance at > 0x16e67d8>) > 499 self.minorTicks =3D [] > 500 > > 501 self.cla() > self.cla =3D <bound method XAxis.cla of > <matplotlib.axis.XAxis instance at 0x177fb48>> > 502 > 503 def cla(self): > > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/sitepack= ages/matplotlib0.86py2.4macosx10.4ppc.egg/matplotlib/axis.py > in cla(self=3D<matplotlib.axis.XAxis instance at > 0x177fb48>) > 522 popall(self.minorTicks) > 523 > > 524 > self.majorTicks.extend([self._get_tick(major=3DTrue) > for i in range(1)]) > self.majorTicks.extend =3D <builtin method > extend of list object at 0x177fcb0> > self._get_tick =3D <bound method XAxis._get_tick > of <matplotlib.axis.XAxis instance at 0x177fb48>> > global major =3D undefined > global True =3D undefined > i =3D 0 > global range =3D undefined > 525 > self.minorTicks.extend([self._get_tick(major=3DFalse) > for i in range(1)]) > 526 > > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/sitepack= ages/matplotlib0.86py2.4macosx10.4ppc.egg/matplotlib/axis.py > in _get_tick(self=3D<matplotlib.axis.XAxis instance at > 0x177fb48>, major=3DTrue) > 832 > 833 def _get_tick(self, major): > > 834 return XTick(self.axes, 0, '', > major=3Dmajor) > global XTick =3D <class matplotlib.axis.XTick at > 0x1614f60> > self.axes =3D <matplotlib.axes.Subplot instance > at 0x16e67d8> > major =3D True > 835 > 836 def _get_label(self): > > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/sitepack= ages/matplotlib0.86py2.4macosx10.4ppc.egg/matplotlib/axis.py > in __init__(self=3D<matplotlib.axis.XTick instance at > 0x177fe40>, axes=3D<matplotlib.axes.Subplot instance at > 0x16e67d8>, loc=3D0, label=3D'', size=3D4.0, gridOn=3DFalse, > tick1On=3DTrue, tick2On=3DTrue, label1On=3DTrue, > label2On=3DFalse, major=3DTrue) > 98 > 99 > > 100 self.tick1line =3D > self._get_tick1line(loc) > self.tick1line =3D undefined > self._get_tick1line =3D <bound method > XTick._get_tick1line of <matplotlib.axis.XTick > instance at 0x177fe40>> > loc =3D 0 > 101 self.tick2line =3D > self._get_tick2line(loc) > 102 self.gridline =3D > self._get_gridline(loc) > > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/sitepack= ages/matplotlib0.86py2.4macosx10.4ppc.egg/matplotlib/axis.py > in _get_tick1line(self=3D<matplotlib.axis.XTick instance > at 0x177fe40>, loc=3D0) > 274 antialiased=3DFalse, > 275 marker =3D > self._xtickmarkers[0], > > 276 markersize=3Dself._size, > global markersize =3D undefined > self._size =3D 4.0 > 277 ) > 278 > > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/sitepack= ages/matplotlib0.86py2.4macosx10.4ppc.egg/matplotlib/lines.py > in __init__(self=3D<matplotlib.lines.Line2D instance at > 0x177fe90>, xdata=3D(0,), ydata=3D(0,), linewidth=3D1.0, > linestyle=3D'None', color=3D'k', marker=3D2, markersize=3D4.0, > markeredgewidth=3D0.5, markeredgecolor=3D'black', > markerfacecolor=3D'blue', antialiased=3DFalse, > dash_capstyle=3D'butt', solid_capstyle=3D'projecting', > dash_joinstyle=3D'miter', solid_joinstyle=3D'miter', > **kwargs=3D{}) > 209 self.verticalOffset =3D None > 210 > > 211 self.set_data(xdata, ydata) > self.set_data =3D <bound method Line2D.set_data > of <matplotlib.lines.Line2D instance at 0x177fe90>> > xdata =3D (0,) > ydata =3D (0,) > 212 > 213 if not > self._lineStyles.has_key(linestyle): > > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/sitepack= ages/matplotlib0.86py2.4macosx10.4ppc.egg/matplotlib/lines.py > in set_data(self=3D<matplotlib.lines.Line2D instance at > 0x177fe90>, *args=3D((0,), (0,))) > 280 x =3D ma.masked_array(x, > mask=3Dmask).compressed() > 281 y =3D ma.masked_array(y, > mask=3Dmask).compressed() > > 282 self._segments =3D > unmasked_index_ranges(mask) > self._segments =3D undefined > global unmasked_index_ranges =3D <function > unmasked_index_ranges at 0x1248970> > mask =3D False > 283 else: > 284 self._segments =3D None > > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/sitepack= ages/matplotlib0.86py2.4macosx10.4ppc.egg/matplotlib/lines.py > in unmasked_index_ranges(mask=3DFalse, compressed=3DTrue) > 67 > 68 ''' > > 69 m =3D concatenate(((1,), mask, (1,))) > m =3D undefined > global concatenate =3D <builtin function > concatenate> > mask =3D False > 70 indices =3D arange(len(mask) + 1) > 71 mdif =3D m[1:]  m[:1] > > ValueError: arrays must have same number of dimensions > > >  > This SF.net email is sponsored by: Splunk Inc. Do you grep through log fi= les > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.asus.falkag.net/sel?cmd=3Dlnk&kid=3D103432&bid=3D230486&dat= =3D121642 > _______________________________________________ > Matplotlibusers mailing list > Matplotlibusers@... > https://lists.sourceforge.net/lists/listinfo/matplotlibusers > 
From: Christopher Fonnesbeck <chris@tr...>  20060125 03:41:20

For some reason, the current cvs build of matplotlib generates a strange error: import pylab pylab.plot([1,2,3]) yields: ValueError: arrays must have same number of dimensions I thought perhaps a second array was required, but: pylab.plot([1,2,3],[1,2,3]) yields the same error. Anyone else getting this? Here is a full debug of the call using ipython: In [4]: pylab.plot([1,2,3])  exceptions.ValueError Traceback (most recent call last) /Users/chris/<ipython console> /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/sitepackages/matplotlib0.86py2.4macosx10.4ppc.egg/matplotlib/pylab.py in plot(*args=([1, 2, 3],), **kwargs={}) 2053 def plot(*args, **kwargs): 2054 # allow callers to override the hold state by passing hold=TrueFalse > 2055 b = ishold() b = undefined global ishold = <function ishold at 0x175a270> 2056 h = popd(kwargs, 'hold', None) 2057 if h is not None: /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/sitepackages/matplotlib0.86py2.4macosx10.4ppc.egg/matplotlib/pylab.py in ishold() 937 Return the hold status of the current axes 938 """ > 939 return gca().ishold() global gca.ishold = undefined 940 941 def isinteractive(): /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/sitepackages/matplotlib0.86py2.4macosx10.4ppc.egg/matplotlib/pylab.py in gca(**kwargs={}) 888 """ 889 > 890 ax = gcf().gca(**kwargs) ax = undefined global gcf.gca = undefined kwargs = {} 891 return ax 892 /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/sitepackages/matplotlib0.86py2.4macosx10.4ppc.egg/matplotlib/figure.py in gca(self=<matplotlib.figure.Figure instance at 0x16a3440>, **kwargs={}) 613 ax = self._axstack() 614 if ax is not None: return ax > 615 return self.add_subplot(111, **kwargs) self.add_subplot = <bound method Figure.add_subplot of <matplotlib.figure.Figure instance at 0x16a3440>> kwargs = {} 616 617 def sca(self, a): /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/sitepackages/matplotlib0.86py2.4macosx10.4ppc.egg/matplotlib/figure.py in add_subplot(self=<matplotlib.figure.Figure instance at 0x16a3440>, *args=(111,), **kwargs={}) 463 a = PolarSubplot(self, *args, **kwargs) 464 else: > 465 a = Subplot(self, *args, **kwargs) a = undefined global Subplot = <class matplotlib.axes.Subplot at 0x169ec30> self = <matplotlib.figure.Figure instance at 0x16a3440> args = (111,) kwargs = {} 466 467 /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/sitepackages/matplotlib0.86py2.4macosx10.4ppc.egg/matplotlib/axes.py in __init__(self=<matplotlib.axes.Subplot instance at 0x16e67d8>, fig=<matplotlib.figure.Figure instance at 0x16a3440>, *args=(111,), **kwargs={}) 3972 def __init__(self, fig, *args, **kwargs): 3973 SubplotBase.__init__(self, fig, *args) > 3974 Axes.__init__(self, fig, [self.figLeft, self.figBottom, global Axes.__init__ = <unbound method Axes.__init__> self = <matplotlib.axes.Subplot instance at 0x16e67d8> fig = <matplotlib.figure.Figure instance at 0x16a3440> self.figLeft = 0.125 self.figBottom = 0.099999999999999978 self.figW = 0.77500000000000002 self.figH = 0.80000000000000004 kwargs = {} 3975 self.figW, self.figH], **kwargs) 3976 /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/sitepackages/matplotlib0.86py2.4macosx10.4ppc.egg/matplotlib/axes.py in __init__(self=<matplotlib.axes.Subplot instance at 0x16e67d8>, fig=<matplotlib.figure.Figure instance at 0x16a3440>, rect=[0.125, 0.099999999999999978, 0.77500000000000002, 0.80000000000000004], axisbg=None, frameon=True, sharex=None, sharey=None, label='', **kwargs={}) 329 330 # this call may differ for nonsep axes, eg polar > 331 self._init_axis() self._init_axis = <bound method Subplot._init_axis of <matplotlib.axes.Subplot instance at 0x16e67d8>> 332 333 /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/sitepackages/matplotlib0.86py2.4macosx10.4ppc.egg/matplotlib/axes.py in _init_axis(self=<matplotlib.axes.Subplot instance at 0x16e67d8>) 358 def _init_axis(self): 359 "move this out of __init__ because nonseparable axes don't use it" > 360 self.xaxis = XAxis(self) self.xaxis = undefined global XAxis = <class matplotlib.axis.XAxis at 0x167a060> self = <matplotlib.axes.Subplot instance at 0x16e67d8> 361 self.yaxis = YAxis(self) 362 /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/sitepackages/matplotlib0.86py2.4macosx10.4ppc.egg/matplotlib/axis.py in __init__(self=<matplotlib.axis.XAxis instance at 0x177fb48>, axes=<matplotlib.axes.Subplot instance at 0x16e67d8>) 499 self.minorTicks = [] 500 > 501 self.cla() self.cla = <bound method XAxis.cla of <matplotlib.axis.XAxis instance at 0x177fb48>> 502 503 def cla(self): /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/sitepackages/matplotlib0.86py2.4macosx10.4ppc.egg/matplotlib/axis.py in cla(self=<matplotlib.axis.XAxis instance at 0x177fb48>) 522 popall(self.minorTicks) 523 > 524 self.majorTicks.extend([self._get_tick(major=True) for i in range(1)]) self.majorTicks.extend = <builtin method extend of list object at 0x177fcb0> self._get_tick = <bound method XAxis._get_tick of <matplotlib.axis.XAxis instance at 0x177fb48>> global major = undefined global True = undefined i = 0 global range = undefined 525 self.minorTicks.extend([self._get_tick(major=False) for i in range(1)]) 526 /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/sitepackages/matplotlib0.86py2.4macosx10.4ppc.egg/matplotlib/axis.py in _get_tick(self=<matplotlib.axis.XAxis instance at 0x177fb48>, major=True) 832 833 def _get_tick(self, major): > 834 return XTick(self.axes, 0, '', major=major) global XTick = <class matplotlib.axis.XTick at 0x1614f60> self.axes = <matplotlib.axes.Subplot instance at 0x16e67d8> major = True 835 836 def _get_label(self): /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/sitepackages/matplotlib0.86py2.4macosx10.4ppc.egg/matplotlib/axis.py in __init__(self=<matplotlib.axis.XTick instance at 0x177fe40>, axes=<matplotlib.axes.Subplot instance at 0x16e67d8>, loc=0, label='', size=4.0, gridOn=False, tick1On=True, tick2On=True, label1On=True, label2On=False, major=True) 98 99 > 100 self.tick1line = self._get_tick1line(loc) self.tick1line = undefined self._get_tick1line = <bound method XTick._get_tick1line of <matplotlib.axis.XTick instance at 0x177fe40>> loc = 0 101 self.tick2line = self._get_tick2line(loc) 102 self.gridline = self._get_gridline(loc) /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/sitepackages/matplotlib0.86py2.4macosx10.4ppc.egg/matplotlib/axis.py in _get_tick1line(self=<matplotlib.axis.XTick instance at 0x177fe40>, loc=0) 274 antialiased=False, 275 marker = self._xtickmarkers[0], > 276 markersize=self._size, global markersize = undefined self._size = 4.0 277 ) 278 /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/sitepackages/matplotlib0.86py2.4macosx10.4ppc.egg/matplotlib/lines.py in __init__(self=<matplotlib.lines.Line2D instance at 0x177fe90>, xdata=(0,), ydata=(0,), linewidth=1.0, linestyle='None', color='k', marker=2, markersize=4.0, markeredgewidth=0.5, markeredgecolor='black', markerfacecolor='blue', antialiased=False, dash_capstyle='butt', solid_capstyle='projecting', dash_joinstyle='miter', solid_joinstyle='miter', **kwargs={}) 209 self.verticalOffset = None 210 > 211 self.set_data(xdata, ydata) self.set_data = <bound method Line2D.set_data of <matplotlib.lines.Line2D instance at 0x177fe90>> xdata = (0,) ydata = (0,) 212 213 if not self._lineStyles.has_key(linestyle): /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/sitepackages/matplotlib0.86py2.4macosx10.4ppc.egg/matplotlib/lines.py in set_data(self=<matplotlib.lines.Line2D instance at 0x177fe90>, *args=((0,), (0,))) 280 x = ma.masked_array(x, mask=mask).compressed() 281 y = ma.masked_array(y, mask=mask).compressed() > 282 self._segments = unmasked_index_ranges(mask) self._segments = undefined global unmasked_index_ranges = <function unmasked_index_ranges at 0x1248970> mask = False 283 else: 284 self._segments = None /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/sitepackages/matplotlib0.86py2.4macosx10.4ppc.egg/matplotlib/lines.py in unmasked_index_ranges(mask=False, compressed=True) 67 68 ''' > 69 m = concatenate(((1,), mask, (1,))) m = undefined global concatenate = <builtin function concatenate> mask = False 70 indices = arange(len(mask) + 1) 71 mdif = m[1:]  m[:1] ValueError: arrays must have same number of dimensions 
From: Robert Kern <robert.kern@gm...>  20060125 02:29:03

Jack Sankey wrote: > Hello, > > Has anyone done something like this? > > http://www.businessfist.com/zany/grab.jpg > > I've been making it with features as I need it, but if someone already > has one, I'd just get THAT. We do this with Chaco and Traits UI all the time. I'm sure you could do something similar with matplotlib and Traits UI, too. http://code.enthought.com/chaco/ http://code.enthought.com/traits/  Robert Kern robert.kern@... "In the fields of hell where the grass grows high Are the graves of dreams allowed to die."  Richard Harter 