Re: [Matplotlib-users] import pylab produces rounding error

2008-07-16 Thread Angela Rivera Campos
John Hunter escribió: On Tue, Jul 15, 2008 at 2:37 AM, Angela Rivera Campos [EMAIL PROTECTED] wrote: matplotlib version 0.90.1 numerix numpy 1.0.3 your numpy and matplotlib versions are pretty old. Any chance you can upgrade to numpy 1.1 and matplotlib 98.1? JDH OK. I've been

Re: [Matplotlib-users] import pylab produces rounding error

2008-07-16 Thread Angela Rivera Campos
Hi, again I've trying to install everything, from the begining on another machine, this one's running openSUSE 10.3. So I've installed the latest versions of numpy, scipy and matplotlib and I've discovered something new which also happens in the first machine, the one with openSUSE 10.2. The

Re: [Matplotlib-users] Error when running multiple jobs utilizing the Tex utilities in matplotlib

2008-07-16 Thread Ian Harry
2008/7/15 Darren Dale [EMAIL PROTECTED]: Hi Ian, On Tuesday 15 July 2008 10:13:02 am Ian Harry wrote: Thanks for helping with this problem. I have investigated further this issue and here is what I have found out: I have traced the errors themselves back to two functions in

[Matplotlib-users] basemap Cairo exception

2008-07-16 Thread Alex Stapleton
Not sure if this is the right place to send this, can't seem to find a dedicated bugs list or issue tracker. Or much discussion regarding the basemap toolkit at all really. Trying to savefig some Basemap instances causes the following exception in the Cairo backend. Seems to work alright using

Re: [Matplotlib-users] import pylab produces rounding error

2008-07-16 Thread John Hunter
On Wed, Jul 16, 2008 at 6:12 AM, Angela Rivera Campos [EMAIL PROTECTED] wrote: Hi, again I've trying to install everything, from the begining on another machine, this one's running openSUSE 10.3. So I've installed the latest versions of numpy, scipy and matplotlib and I've discovered

Re: [Matplotlib-users] basemap Cairo exception

2008-07-16 Thread Jeff Whitaker
Alex Stapleton wrote: Not sure if this is the right place to send this, can't seem to find a dedicated bugs list or issue tracker. Or much discussion regarding the basemap toolkit at all really. Trying to savefig some Basemap instances causes the following exception in the Cairo backend.

Re: [Matplotlib-users] import pylab produces rounding error

2008-07-16 Thread Manuel Metz
John Hunter wrote: On Wed, Jul 16, 2008 at 6:12 AM, Angela Rivera Campos [EMAIL PROTECTED] wrote: Hi, again I've trying to install everything, from the begining on another machine, this one's running openSUSE 10.3. So I've installed the latest versions of numpy, scipy and matplotlib and

Re: [Matplotlib-users] basemap Cairo exception

2008-07-16 Thread Alex Stapleton
2008/7/16 Jeff Whitaker [EMAIL PROTECTED]: Alex Stapleton wrote: Not sure if this is the right place to send this, can't seem to find a dedicated bugs list or issue tracker. Or much discussion regarding the basemap toolkit at all really. Trying to savefig some Basemap instances causes the

Re: [Matplotlib-users] basemap Cairo exception

2008-07-16 Thread Jeff Whitaker
Alex Stapleton wrote: 2008/7/16 Jeff Whitaker [EMAIL PROTECTED]: Alex Stapleton wrote: Not sure if this is the right place to send this, can't seem to find a dedicated bugs list or issue tracker. Or much discussion regarding the basemap toolkit at all really. Trying to savefig

[Matplotlib-users] getting a subregion with the cursor

2008-07-16 Thread Ken Dere
I would like to be able to call something like: sub = getSub(myImage) and then click my cursor on two places in an image and have that subregion returned as sub. I would also like to be able to do this with a single statement rather doing z=connect('button_press_event',getSub). Seems like

Re: [Matplotlib-users] getting a subregion with the cursor

2008-07-16 Thread John Hunter
On Wed, Jul 16, 2008 at 7:36 AM, Ken Dere [EMAIL PROTECTED] wrote: I would like to be able to call something like: sub = getSub(myImage) and then click my cursor on two places in an image and have that subregion returned as sub. I would also like to be able to do this with a single

[Matplotlib-users] ploting a contour graph from data files

2008-07-16 Thread Oz Nahum
Hi, I want to draw a contour plot which uses data from files. I know how to import the files, so it's not the main issue. Let's say I want to do a profile which has the following data: distance, depth and some oceanographic data like temp, oxygen and stuff so for simplicity lets say I have:

Re: [Matplotlib-users] ploting a contour graph from data files

2008-07-16 Thread Eric Firing
Oz Nahum wrote: Hi, I want to draw a contour plot which uses data from files. I know how to import the files, so it's not the main issue. Let's say I want to do a profile which has the following data: distance, depth and some oceanographic data like temp, oxygen and stuff so for

Re: [Matplotlib-users] ploting a contour graph from data files

2008-07-16 Thread Oz Nahum
Thanks for the quick answer. So if I have a series of 18 points withe measured distance, and 18 data points with distance, it makes it almost impossible to build the graph ??? I can't type 18^18 points I want the computer to plot the points and extrapulate between them... excuse me the

Re: [Matplotlib-users] basemap Cairo exception

2008-07-16 Thread Michael Droettboom
Alex Stapleton wrote: 2008/7/16 Jeff Whitaker [EMAIL PROTECTED]: Alex Stapleton wrote: Alex: I don't have the Cairo backend installed, but I bet it would work if you changed resolution='i' to resolution='l'. Seems like a pretty severe limitation of the backend though. I

Re: [Matplotlib-users] ploting a contour graph from data files

2008-07-16 Thread Eric Firing
Oz Nahum wrote: Thanks for the quick answer. So if I have a series of 18 points withe measured distance, and 18 data points with distance, it makes it almost impossible to build the graph ??? I can't type 18^18 points I want the computer to plot the points and extrapulate between

Re: [Matplotlib-users] ploting a contour graph from data files

2008-07-16 Thread Oz Nahum
Ok, I played with it a little bit. Here is what I know: importing the data is not a big issue, I aready wrote a tutorial about it here: http://www.tabula0rasa.org/?p=21 here is a sample code I wrote. from matplotlib import pyplot as plt from pylab import * temperature=[ [1,3,4],

Re: [Matplotlib-users] ploting a contour graph from data files

2008-07-16 Thread John Hunter
On Wed, Jul 16, 2008 at 1:25 PM, Oz Nahum [EMAIL PROTECTED] wrote: Ok, I played with it a little bit. Here is what I know: importing the data is not a big issue, I aready wrote a tutorial about it here: http://www.tabula0rasa.org/?p=21 There are a couple of functions for loading ASCII data

Re: [Matplotlib-users] ploting a contour graph from data files

2008-07-16 Thread Eric Firing
Oz Nahum wrote: Ok, I played with it a little bit. Here is what I know: importing the data is not a big issue, I aready wrote a tutorial about it here: http://www.tabula0rasa.org/?p=21 here is a sample code I wrote. from matplotlib import pyplot as plt from pylab import *

Re: [Matplotlib-users] ploting a contour graph from data files

2008-07-16 Thread Oz Nahum
Hi Eric, really thanks for your help so far. I am doing a quick short course, and I'll do the examples later. I've fixed the code, here it is: from matplotlib import pyplot as plt temperature=[ [10,8,6], [9,7,5], [8,7,4] ] distance = (100,200,300) depth =

Re: [Matplotlib-users] ploting a contour graph from data files

2008-07-16 Thread Oz Nahum
Here is why the contours are wrong: they are ploted verticaly, while I think, it is more common to draw temp. contours in oceanography when the are horizontal. Also, one more thing, I can't find how to expand the borders of the plot, say from 350 to 400 (same for depth) I tried usig xlim and

Re: [Matplotlib-users] ploting a contour graph from data files

2008-07-16 Thread John Hunter
On Wed, Jul 16, 2008 at 2:58 PM, Oz Nahum [EMAIL PROTECTED] wrote: Here is why the contours are wrong: they are ploted verticaly, while I think, it is more common to draw temp. contours in oceanography when the are horizontal. You can transpose your inputs. For numpy arrays: x = x.transpose()

Re: [Matplotlib-users] ploting a contour graph from data files

2008-07-16 Thread Oz Nahum
You can transpose your inputs. For numpy arrays: x = x.transpose() i wrote: for np arrays: x = x.transpose() but I still get a syntax error. Also, one more thing, I can't find how to expand the borders of the plot, say from 350 to 400 (same for depth) I tried usig xlim and ylim(0,900)

Re: [Matplotlib-users] ploting a contour graph from data files

2008-07-16 Thread Tim Michelsen
Oz Nahum schrieb: Hi, I want to draw a contour plot which uses data from files. I know how to import the files, so it's not the main issue. I was discussion a similar issue with Jeff this week. Take a look at the thread: http://news.gmane.org/gmane.comp.python.matplotlib.general

Re: [Matplotlib-users] ploting a contour graph from data files

2008-07-16 Thread John Hunter
On Wed, Jul 16, 2008 at 3:18 PM, Oz Nahum [EMAIL PROTECTED] wrote: You can transpose your inputs. For numpy arrays: x = x.transpose() i wrote: for np arrays: x = x.transpose() but I still get a syntax error. umm that was english, not python. They python is x = x.transpose() I

Re: [Matplotlib-users] ploting a contour graph from data files

2008-07-16 Thread Michael Droettboom
Oz Nahum wrote: I am mostly frustrated with documentation writers who write very nice tutorials describing how to plot completely unusfull graphs of spheres inside loops and a dolphin swimming in the middle. I'm sorry. I just couldn't resist writing a tutorial example for this. Please take

Re: [Matplotlib-users] ploting a contour graph from data files

2008-07-16 Thread Oz Nahum
Dear Mike, I really laughed. Many thanks. It's almost to late for me to really understand the code now. But some how you managed to throw in some stuff that can help: you've made what I've wanted except for the dolphin. I am sorry about the exagerating, but everybody here keep talking about this

[Matplotlib-users] animated hexbin plot

2008-07-16 Thread Chee Sing Lee
Hello, I'm pretty new to matplotlib, so please bear with me. I am writing an application that includes a hexagonally binned scatter plot that updates periodically, up to a couple times a second. My current approach is clearing axes.collections, calling hexbin() with the updated data, and then

[Matplotlib-users] ocean profile

2008-07-16 Thread Oz Nahum
So, after mailing all the previous mails, I've thought maybe I'm not asking the right question. What I want to do plot is a cross section, and there is no easy way to extrapulate between points. Not in excell and not in matlab. here is a simplification:

Re: [Matplotlib-users] ploting a contour graph from data files

2008-07-16 Thread Christopher Barker
Oz Nahum wrote: I still get this error Traceback (most recent call last): File yael.py, line 24, in module x = x.transpose() AttributeError: 'tuple' object has no attribute 'transpose' as someone suggested, you really want to read up on numpy -- the transpose method is a method of

Re: [Matplotlib-users] ploting a contour graph from data files

2008-07-16 Thread Alan G Isaac
On Wed, 16 Jul 2008, Michael Droettboom apparently wrote: [Attachment: dolphin.py : TEXT/PLAIN, 62 lines] I have to say, I was completely unaware of the path.Path capability of Matplotlib, but even if I had known of it, I would not have thought of how to exploit it this way. Even though this

Re: [Matplotlib-users] ocean profile

2008-07-16 Thread Christopher Barker
Oz Nahum wrote: What I want to do plot is a cross section, and there is no easy way to extrapulate between points. Not in excell and not in matlab. I hope you mean interpolate -- extrapolation is fraught with danger! here is a simplification:

Re: [Matplotlib-users] ocean profile

2008-07-16 Thread John Hunter
On Wed, Jul 16, 2008 at 5:51 PM, Christopher Barker [EMAIL PROTECTED] wrote: In there, is says that MPL does not have this functionality built in -- is that still true? If so, I'd like to see the Delaunay stuff included -- in fact, you could contour irregular data directly using Delaunay

Re: [Matplotlib-users] ocean profile

2008-07-16 Thread Alan G Isaac
On Wed, Jul 16, 2008 at 5:51 PM, Christopher Barker wrote: I'd like to see the Delaunay stuff included -- in fact, you could contour irregular data directly using Delaunay triangulation. On Wed, 16 Jul 2008, John Hunter apparently wrote: I'd love to see it included to -- I believe the