Re: [matplotlib-devel] mathtext baseline

2007-07-21 Thread John Hunter
On 7/21/07, Paul Kienzle <[EMAIL PROTECTED]> wrote: > Hi, > > I really love mathtext! I wrote a simple formula parser > and now I can label my graphs with easy to read chemical > names (I've attached it below for the curious). > > The problem is that the baseline is wandering. On my machine > the

Re: [matplotlib-devel] rcParams and validation

2007-07-21 Thread Fernando Perez
On 7/21/07, Darren Dale <[EMAIL PROTECTED]> wrote: > On Saturday 21 July 2007 3:12:44 pm Fernando Perez wrote: > > On 7/21/07, Darren Dale <[EMAIL PROTECTED]> wrote: > > > I'm working on converting our existing rc code to tconfig this weekend. > > > So far so good. I just wanted to let people know

[matplotlib-devel] mathtext baseline

2007-07-21 Thread Paul Kienzle
Hi, I really love mathtext! I wrote a simple formula parser and now I can label my graphs with easy to read chemical names (I've attached it below for the curious). The problem is that the baseline is wandering. On my machine the following has the 'h' too low and the 'io' too high: import pyla

Re: [matplotlib-devel] sample canvas object code

2007-07-21 Thread Paul Kienzle
On Sat, Jul 21, 2007 at 02:39:52PM -0500, John Hunter wrote: > On 7/21/07, Paul Kienzle <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I'm attaching the canvas object code I've been playing with. > > > > The API is still incomplete, but in the spirit of release early, > > release often, I'll put it out

Re: [matplotlib-devel] rcParams and validation

2007-07-21 Thread Darren Dale
On Saturday 21 July 2007 3:12:44 pm Fernando Perez wrote: > On 7/21/07, Darren Dale <[EMAIL PROTECTED]> wrote: > > I'm working on converting our existing rc code to tconfig this weekend. > > So far so good. I just wanted to let people know to avoid duplicating > > effort. > > Excellent! Ping me if

Re: [matplotlib-devel] Question about install matplotlib package (tk.tcl file on ubuntu)

2007-07-21 Thread Gael Varoquaux
On Sat, Jul 21, 2007 at 05:50:19PM -0400, Xuedong Zhang wrote: > What I am trying to run is the following command: > sudo checkinstall python setup.py install > I guess this maybe the problem between checkinstall and matplotlib OK, now it's more clear. I suggest you install to /usr/local. That

Re: [matplotlib-devel] Question about install matplotlib package (tk.tcl file on ubuntu)

2007-07-21 Thread Eric Firing
Xuedong Zhang wrote: > Hi, > During the installation of the matplotlib package, > I was told that the matplotlib is trying to replace the tk.tcl file > which belongs to the tk package > > Can anyone told me if this is a bug or feature I don't know what to call it, but if it exists it is in

Re: [matplotlib-devel] Question about install matplotlib package (tk.tcl file on ubuntu)

2007-07-21 Thread Xuedong Zhang
Sorry for my stupid question: What I am trying to run is the following command: sudo checkinstall python setup.py install I guess this maybe the problem between checkinstall and matplotlib Xuedong Xuedong Zhang 写道: > Hi, > During the installation of the matplotlib package, > I was told that

[matplotlib-devel] Question about install matplotlib package (tk.tcl file on ubuntu)

2007-07-21 Thread Xuedong Zhang
Hi, During the installation of the matplotlib package, I was told that the matplotlib is trying to replace the tk.tcl file which belongs to the tk package Can anyone told me if this is a bug or feature Because of this conflict, I cannot install the package on my ubuntu Thanks Xuedong -

Re: [matplotlib-devel] mpl.math namespace

2007-07-21 Thread Jouni K . Seppänen
Eric Firing <[EMAIL PROTECTED]> writes: > 1) Present: always be explicit: npy.sin or ma.sin or math.sin or > cmath.sin. [...] > > 2) Pick a set of math symbols that may be imported directly from numpy > at the top, and either import all routinely, or import as needed. There's also an option t

Re: [matplotlib-devel] sample canvas object code

2007-07-21 Thread John Hunter
On 7/21/07, Paul Kienzle <[EMAIL PROTECTED]> wrote: > Hi, > > I'm attaching the canvas object code I've been playing with. > > The API is still incomplete, but in the spirit of release early, > release often, I'll put it out there for people to comment on. Hey Paul this is really cool stuff. Ther

Re: [matplotlib-devel] mpl.math namespace [was: Polygon examples broken]

2007-07-21 Thread Paul Kienzle
On Sat, Jul 21, 2007 at 08:51:19AM -1000, Eric Firing wrote: > John Hunter wrote: > [...] > > functions or array functions here, eg math.sqrt vs numpy.sqrt? Also, > > a few of your symbols clash with python builtins (min, max, abs) which > > is best avoided. Finally, how would you feel about allo

Re: [matplotlib-devel] mpl.math namespace [was: Polygon examples broken]

2007-07-21 Thread Christopher Barker
John Hunter wrote: > We should prefer the numpyisms anyway, a.max(), a.min(), a.absolute(). Exactly -- OO semantics make the whole namespace thing much more workable. To sum up a bit -- This all started with a comment about how some of the pylab names clash with numpy names, so that: from pylab

Re: [matplotlib-devel] rcParams and validation

2007-07-21 Thread Fernando Perez
On 7/21/07, Darren Dale <[EMAIL PROTECTED]> wrote: > I'm working on converting our existing rc code to tconfig this weekend. So far > so good. I just wanted to let people know to avoid duplicating effort. Excellent! Ping me if you have any problems. I'm going to try and finish hierarchical incl

Re: [matplotlib-devel] rcParams and validation

2007-07-21 Thread Darren Dale
On Friday 20 July 2007 5:13:12 pm Fernando Perez wrote: > On 7/20/07, Darren Dale <[EMAIL PROTECTED]> wrote: > > > This should give you a very reasonable solution for what you wanted to > > > do. > > > > Great! I'm surprised that this was possible. > > And actually easy, for once. > > > Im attachin

Re: [matplotlib-devel] mpl.math namespace [was: Polygon examples broken]

2007-07-21 Thread Fernando Perez
On 7/21/07, Eric Firing <[EMAIL PROTECTED]> wrote: > Sometimes functions from the different sources do the same thing, but > usually at different speeds. And the difference may be *very* significant: In [1]: import numpy as N In [2]: import math as M In [3]: nsqrt = N.sqrt In [4]: msqrt = M.s

Re: [matplotlib-devel] mpl.math namespace [was: Polygon examples broken]

2007-07-21 Thread John Hunter
On 7/21/07, Paul Kienzle <[EMAIL PROTECTED]> wrote: > True > >>> min(a) > 1 > >>> min(b) We should prefer the numpyisms anyway, a.max(), a.min(), a.absolute(). > > Finally, how would you feel about allowing these > > symbols in the module namespace, but w/o the import * semantics, eg, > > fo

Re: [matplotlib-devel] mpl.math namespace [was: Polygon examples broken]

2007-07-21 Thread Eric Firing
John Hunter wrote: [...] > functions or array functions here, eg math.sqrt vs numpy.sqrt? Also, > a few of your symbols clash with python builtins (min, max, abs) which > is best avoided. Finally, how would you feel about allowing these > symbols in the module namespace, but w/o the import * sema

[matplotlib-devel] sample canvas object code

2007-07-21 Thread Paul Kienzle
Hi, I'm attaching the canvas object code I've been playing with. The API is still incomplete, but in the spirit of release early, release often, I'll put it out there for people to comment on. This should use a common callback mechanism with mpl (e.g., the user should bind to a axis limit change

Re: [matplotlib-devel] mpl.math namespace [was: Polygon examples broken]

2007-07-21 Thread Gael Varoquaux
On Sat, Jul 21, 2007 at 11:34:07AM -0400, Paul Kienzle wrote: > Feel free to tune the list appropriately. Particularly since max/min/abs > already do the right things with vectors: Hell, not with anything that more than 1D ! Beware. Gaël -

Re: [matplotlib-devel] mpl.math namespace [was: Polygon examples broken]

2007-07-21 Thread Paul Kienzle
On Sat, Jul 21, 2007 at 09:42:16AM -0500, John Hunter wrote: > On 7/21/07, Paul Kienzle <[EMAIL PROTECTED]> wrote: > > I used the following list: > > > > symlist=`cat < > pi inf Inf nan NaN > > isfinite isnormal isnan isinf > > arccos arcsin arctan arctan2 cos sin tan > > arccosh arcsinh ar

Re: [matplotlib-devel] Plot with no labels

2007-07-21 Thread John Hunter
On 7/21/07, Gael Varoquaux <[EMAIL PROTECTED]> wrote: > Damn it. I feel so stupid. I looked at that docstring so often, but never > noticed this. It is right in the middle of the docstring. Have you read "The Purloined Letter" by Edgar Allen Poe? The basic story is that a man is in possession of

Re: [matplotlib-devel] mpl.math namespace [was: Polygon examples broken]

2007-07-21 Thread John Hunter
On 7/21/07, Paul Kienzle <[EMAIL PROTECTED]> wrote: > I used the following list: > > symlist=`cat < pi inf Inf nan NaN > isfinite isnormal isnan isinf > arccos arcsin arctan arctan2 cos sin tan > arccosh arcsinh arctanh cosh sinh tanh > exp log log10 expm1 log1p exp2 log2 > pow sqrt cbr

[matplotlib-devel] mpl.math namespace [was: Polygon examples broken]

2007-07-21 Thread Paul Kienzle
On Fri, Jul 20, 2007 at 05:05:40PM -0700, Christopher Barker wrote: > >> so I think it does make sense to bring the common names that show up in > >> math expressions into the main namespace. > > >> This is probably best just done by each individual according to his/her > >> taste. > > > > That

Re: [matplotlib-devel] Steeling some of you colormaps

2007-07-21 Thread Gael Varoquaux
On Tue, Jul 17, 2007 at 08:17:50PM -0500, John Hunter wrote: > On 7/17/07, Gael Varoquaux <[EMAIL PROTECTED]> wrote: > > I have written a small script that uses pylab to retrieve the data for > > the MPL colormaps. I am thinking of checking in both the script, and the > > resulting data in Mayavi2

Re: [matplotlib-devel] rcParams and validation

2007-07-21 Thread Gael Varoquaux
On Fri, Jul 20, 2007 at 03:25:06PM -0600, Fernando Perez wrote: > The point is that instead of > -from mplconfig import MPLConfig, ConfigManager, mkConfigObj > I prefer: > +from tconfig import ConfigManager, mkConfigObj > +from mplconfig import MPLConfig > since ConfigManager and mkConfigObj re

Re: [matplotlib-devel] Plot with no labels

2007-07-21 Thread Gael Varoquaux
On Fri, Jul 20, 2007 at 02:55:26PM -0500, John Hunter wrote: > >From the legend docstring: > USAGE: > Make a legend with existing lines > >>> legend() > legend by itself will try and build a legend using the label > property of the lines/patches/collections. You can set the label of >