Re: [Matplotlib-users] contourf question

2007-10-04 Thread [EMAIL PROTECTED]
Thanks again Eric, Your examples are exactly what I was after. My colleague was hypothesizing that there's probably a less-than instead of a less-than-or-equal somewhere, if it is a bug. regards, Gary Eric Firing <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Thanks Eric. > >

Re: [Matplotlib-users] contourf question

2007-10-04 Thread Eric Firing
[EMAIL PROTECTED] wrote: > Thanks Eric. > > However, when I specify the same number of levels as suggested, contourf > divides this example into three regions, with a diagonal 'stripe' instead of > a clean boundary, so I guess I'm asking whether it's possible to trick > contourf into generating

Re: [Matplotlib-users] contourf question

2007-10-04 Thread [EMAIL PROTECTED]
Thanks Eric. However, when I specify the same number of levels as suggested, contourf divides this example into three regions, with a diagonal 'stripe' instead of a clean boundary, so I guess I'm asking whether it's possible to trick contourf into generating a single boundary between the two re

[Matplotlib-users] contourf question

2007-10-04 Thread Gary Ruben
I'm notice that contourf behaves differently to contour by default in where it decides to position contours. For example, using pylab, if you try a=tri(10) contourf(a,0) contour(a,1) I'd have expected the contours to line up, but they don't. Is there a way to get contourf to place its contours

Re: [Matplotlib-users] Automatic Marker Generation

2007-10-04 Thread Robert Kern
David D Clark wrote: > Hi Folks, > > I have an array A=f(x) with a family of curves. Is there an easy way to > get a different marker for each line of plot(x,A). Use itertools.cycle() to make an iterator that goes round-and-round. Use itertools.izip() to match it up with your data, and perhaps a

[Matplotlib-users] Automatic Marker Generation

2007-10-04 Thread David D Clark
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Folks, I have an array A=f(x) with a family of curves. Is there an easy way to get a different marker for each line of plot(x,A). This is what I currently have: mrkrs=array(['o','^','v','<','>', 's','+','x','D','d', '1'

Re: [Matplotlib-users] newbie: how to set string ticklabels?

2007-10-04 Thread John Hunter
On 10/1/07, Iacopo <[EMAIL PROTECTED]> wrote: > Hi everybody, > > I tried: > > >>> import pylab > >>> pylab.plot(["a", "b", "c"], [1, 2, 3]) > > ValueError: invalid literal for float(): a > > Well, I expected that. I wrote this to just explain my trouble: printing > strings instead float along x-ax

Re: [Matplotlib-users] images layers

2007-10-04 Thread Jeff Whitaker
Lionel Roubeyrie wrote: > Hi Jeff, > I've saw that, but I have the smalls images coordinates in geographic system, > then I need to recompute their position everytime the user will change the > figure's aspect, ... Not very usefull. Is there a way to extend the missing > areas around each small i

[Matplotlib-users] xticks vs yticks

2007-10-04 Thread Jan Strube
I'm having some problems understanding the difference between pylab.xticks() and pylab.yticks() Consider the following: > import pylab as P > import numpy as N > > data = N.random.random((10, 10)) > P.matshow(data) > P.xticks([0, 1, 2], ['1', '2', '3']) > P.show() Why does this work, but if I ch

[Matplotlib-users] missing module

2007-10-04 Thread Herman Berendsen
After installing matplotlib (matplotlib-0.90.1.win32-py2.5.exe) on Windows XP, the command "from pylab import *" results in an error message complaining that the file "_agg" is missing. Indeed there is no file "_agg.py" in the distribution, although a file "_agg.pyd" exists. Can anyone sugges

[Matplotlib-users] newbie: how to set string ticklabels?

2007-10-04 Thread Iacopo
Hi everybody, I tried: >>> import pylab >>> pylab.plot(["a", "b", "c"], [1, 2, 3]) ValueError: invalid literal for float(): a Well, I expected that. I wrote this to just explain my trouble: printing strings instead float along x-axes (a sort of mapping floats to strings...). Writing that pylab.

Re: [Matplotlib-users] ImportError with Tkagg on windows

2007-10-04 Thread Simon Forman
On 9/26/07, Simon Forman <[EMAIL PROTECTED]> wrote: > Hello, > > I just installed Matplotlib (and NumPy) on a windows XP machine, and > I'm getting the following traceback when I try to use the TkAgg > backend. > > Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit (Intel)] > on >

[Matplotlib-users] ImportError with Tkagg on windows

2007-10-04 Thread Simon Forman
Hello, I just installed Matplotlib (and NumPy) on a windows XP machine, and I'm getting the following traceback when I try to use the TkAgg backend. Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more info

Re: [Matplotlib-users] pytz, dateutil not getting installed from svn build

2007-10-04 Thread John Hunter
On 10/4/07, Chris <[EMAIL PROTECTED]> wrote: > Is there a way of forcing them to install? I dont mind going in and > deleting things by hand myself, but I am trying to have a build that > installs for almost everyone with minimum tinkering. Yes, just edit setup.py and remove the conditional check

Re: [Matplotlib-users] images layers

2007-10-04 Thread Lionel Roubeyrie
Hi Jeff, I've saw that, but I have the smalls images coordinates in geographic system, then I need to recompute their position everytime the user will change the figure's aspect, ... Not very usefull. Is there a way to extend the missing areas around each small image by a "transparent" value, and

Re: [Matplotlib-users] pytz, dateutil not getting insta lled from svn build

2007-10-04 Thread Chris
John Hunter <[EMAIL PROTECTED]> writes: > > On 7/17/07, Chris Fonnesbeck <[EMAIL PROTECTED]> wrote: > > For some reason, builds from SVN dont install either pytz > > or dateutil (at least not in the right place). Importing pylab > > from these builds results in an import error. > > > This is typic

Re: [Matplotlib-users] images layers

2007-10-04 Thread Jeff Whitaker
Lionel Roubeyrie wrote: > Hi all, > I think it's a trivial question, but don't find a solution: > Drawing an image with imshow (in fact basemap.imshow), I need to put others > images on it, but smallers, at specified locations. > Is there a way to do so, I have tried with extent parameter, but doe

[Matplotlib-users] images layers

2007-10-04 Thread Lionel Roubeyrie
Hi all, I think it's a trivial question, but don't find a solution: Drawing an image with imshow (in fact basemap.imshow), I need to put others images on it, but smallers, at specified locations. Is there a way to do so, I have tried with extent parameter, but doesn't do what I expect? Thanks --