Re: [Matplotlib-users] contour coordinates

2009-02-02 Thread Lionel Roubeyrie
Hi all, just a little question : how matplotlib computes contours? Is it based on an internal library? Is it possible to access it from outside? Thanks Le vendredi 30 janvier 2009 à 10:22 -0500, Eli Brosh a écrit : Hello again, I finally found the command I was looking for. It is the

Re: [Matplotlib-users] [matplotlib-devel] What would you like to see in a book about Matplotlib?

2009-02-02 Thread Gael Varoquaux
On Mon, Feb 02, 2009 at 03:47:32PM +, Chris Walker wrote: One of the things I liked about Gael's article was its discussion of threading - separating the gui from the calculations from the data acquisition. Thanks. Be aware that this is a rats nest, though, as threading is the best way to

[Matplotlib-users] Strange Recursion error with plot()

2009-02-02 Thread Durand
Hi, I'm using matplotlib on Ubuntu Jaunty and a script that I wrote recently stopped working. I think this may have something to do with changes in matplotlib as it fails with the error pasted at http://pastebin.ca/1325576 and the main problem is that I can't actually work out what the error is

Re: [Matplotlib-users] Strange Recursion error with plot()

2009-02-02 Thread Durand
On Mon, 02 Feb 2009 19:30:58 -, Darren Dale dsdal...@gmail.com wrote: Hmm... I was passing strings! That is really weird because it used to work when I just passed strings and I have no idea why. I guess I should have converted to numbers right from the beginning. Anyway, I've fixed it by

Re: [Matplotlib-users] Strange Recursion error with plot()

2009-02-02 Thread Ryan May
This is fixed in SVN head now so that strings will work again (though I wouldn't exactly say that this is supported.) Durand wrote: On Mon, 02 Feb 2009 19:30:58 -, Darren Dale dsdal...@gmail.com wrote: Oh and thinking about it, I think matplotlib needs a better error message. Maybe

Re: [Matplotlib-users] Strange Recursion error with plot()

2009-02-02 Thread Durand
On Mon, 02 Feb 2009 19:57:15 -, Ryan May rma...@gmail.com wrote: I think it makes sense to accept only numbers but I suppose it's needed for backwards compatibility. Maybe you could have a deprecation warning? This is fixed in SVN head now so that strings will work again (though I

Re: [Matplotlib-users] datetutil issues

2009-02-02 Thread Sandro Tosi
On Mon, Feb 2, 2009 at 20:29, C M cmpyt...@gmail.com wrote: I'm doing some date plotting and make use of dateutil. The version I have is given as 1.2-mpl and I believe it installed directly with the latest matplotlib installation. My problem is with dateutil's microsecond precision. An

Re: [Matplotlib-users] Strange Recursion error with plot()

2009-02-02 Thread Ryan May
Durand wrote: On Mon, 02 Feb 2009 19:57:15 -, Ryan May rma...@gmail.com wrote: I think it makes sense to accept only numbers but I suppose it's needed for backwards compatibility. Maybe you could have a deprecation warning? This is fixed in SVN head now so that strings will work again

Re: [Matplotlib-users] datetutil issues

2009-02-02 Thread Sandro Tosi
On Mon, Feb 2, 2009 at 21:18, C M cmpyt...@gmail.com wrote: OK, great. How do I get 1.4.1? you say nothing about your operating system, so how can you expect us to help? I use Debian, and the package it's there, try find it in your distribution, if not install setuptools (since it needs that

Re: [Matplotlib-users] Strange Recursion error with plot()

2009-02-02 Thread Darren Dale
On Mon, Feb 2, 2009 at 2:17 PM, Durand dura...@gmail.com wrote: Hi, I'm using matplotlib on Ubuntu Jaunty and a script that I wrote recently stopped working. I think this may have something to do with changes in matplotlib as it fails with the error pasted at http://pastebin.ca/1325576and

Re: [Matplotlib-users] Strange Recursion error with plot()

2009-02-02 Thread Durand
On Mon, 02 Feb 2009 20:17:06 -, Ryan May rma...@gmail.com wrote: Fair enough I suppose. I'm not really sure where I got the string input idea from anyway.. Durand wrote: On Mon, 02 Feb 2009 19:57:15 -, Ryan May rma...@gmail.com wrote: I think it makes sense to accept only numbers

[Matplotlib-users] x-axis line in bar plots

2009-02-02 Thread Ramashish Baranwal
Hi, I am creating a bar graph which contains negative values on y-axis. Everything is fine, but there is no line corresponding to y=0, so the bars seem a bit weird. Here is a short example- x = range(10) y = [random.randint(-10, 10) for i in x] bar(x, y) What I want is a line to be drawn at

Re: [Matplotlib-users] x-axis line in bar plots

2009-02-02 Thread Jouni K . Seppänen
Ramashish Baranwal ramashish.li...@gmail.com writes: x = range(10) y = [random.randint(-10, 10) for i in x] bar(x, y) What I want is a line to be drawn at y=0. Any idea how to get it done? How about axhline: axhline(color='k', lw=1) See the documentation of axhline (and hlines) for

Re: [Matplotlib-users] [matplotlib-devel] What would you like to see in a book about Matplotlib?

2009-02-02 Thread Chris Walker
On Sun, Feb 01, 2009 at 11:59:06PM +0100, Sandro Tosi wrote: Hi Chris, thanks for your reply, helpful as usual :) On Fri, Jan 30, 2009 at 18:59, Chris Walker chr...@chiark.greenend.org.uk wrote: Firstly, good luck with the book. cheers :) The sort of book I'd buy would explain

[Matplotlib-users] Polar plot with y-lim set to non-zero

2009-02-02 Thread Ariel Rokem
Hi All - is there any way to make a polar plot with the center of the plot *not* set to 0? I tried resetting ylim, but that just changes the grid laid over the plot, not the location of the markers. Thanks -- Ariel

Re: [Matplotlib-users] contour coordinates

2009-02-02 Thread Michael Droettboom
matplotlib uses some C-based contouring code that began life in GIST. You can see it here: http://matplotlib.svn.sourceforge.net/viewvc/matplotlib/trunk/matplotlib/src/cntr.c?revision=5781view=markup It has some limitations, notably around certain donut-shaped contours, and a number of us

Re: [Matplotlib-users] datetutil issues

2009-02-02 Thread Christopher Barker
My problem is with dateutil's microsecond precision. An example: date = '2009-01-11 03:55:23.255000' d = dateutil.parser.parse(date) d datetime.datetime(2009, 1, 11, 3, 55, 23, 254999) Note the microseconds of the datetime object are 254999, whereas the original date string given was

[Matplotlib-users] datetutil issues

2009-02-02 Thread C M
I'm doing some date plotting and make use of dateutil. The version I have is given as 1.2-mpl and I believe it installed directly with the latest matplotlib installation. My problem is with dateutil's microsecond precision. An example: date = '2009-01-11 03:55:23.255000' d =

[Matplotlib-users] scatterhist matlab equivalent

2009-02-02 Thread per freem
hello, is there a way to make a 2d scatter plot that includes (outside the axes) histograms of the marginals of the two variables? like the matlab function 'scatterhist'. see this for an example:

Re: [Matplotlib-users] x-axis line in bar plots

2009-02-02 Thread Ramashish Baranwal
x = range(10) y = [random.randint(-10, 10) for i in x] bar(x, y) What I want is a line to be drawn at y=0. Any idea how to get it done? How about axhline: axhline(color='k', lw=1) See the documentation of axhline (and hlines) for more. Thanks Jouni! This is exactly what I was looking