Re: [Matplotlib-users] multiple (>2) y-axes

2007-10-05 Thread Tony Mannucci
Here's some (incomplete) code snippets I used to place an extra x-axis below the normal one. I hope this helps. I agree that more axes can always be added at an arbitrary offset, although I did not try that. import numpy as N import matplotlib matplotlib.use("TkAgg") import pylab as PLT from ma

Re: [Matplotlib-users] multiple (>2) y-axes

2007-10-05 Thread Alan Isaac
> On 10/5/07, James Boyle <[EMAIL PROTECTED]> wrote: >> I wish to plot 3 lines on a single graph - each line requires a >> separate y scaling but shares a common x. I have not >> found an example of 3 lines ( or greater). On Fri, 5 Oct 2007, John Hunter wrote: > This is on the wish list, but i

Re: [Matplotlib-users] multiple (>2) y-axes

2007-10-05 Thread John Hunter
On 10/5/07, James Boyle <[EMAIL PROTECTED]> wrote: > I wish to plot 3 lines on a single graph - each line requires a > separate y scaling but shares a common x. > The case for 2 such lines is handled by twinx as in the two_scales.py > example. > > I have not found an example of 3 lines ( or greater

[Matplotlib-users] multiple (>2) y-axes

2007-10-05 Thread James Boyle
I wish to plot 3 lines on a single graph - each line requires a separate y scaling but shares a common x. The case for 2 such lines is handled by twinx as in the two_scales.py example. I have not found an example of 3 lines ( or greater). In the case of more than 2 scales the y axis scale wo

Re: [Matplotlib-users] pcolor

2007-10-05 Thread Eric Firing
The short answer to your two messages is that pcolor and contour required gridded data in 2D arrays, and it looks like you are supplying 1D arrays. Look at the differences between what you have below and what is in the pcolor_demo that you started with. Meshgrid is generating 2D arrays for X

[Matplotlib-users] Bug in boxplot ?

2007-10-05 Thread Matthieu Brucher
Hi, I just encountered something odd. I have (with import numpy as n and import pylab as pl) : >>> x = n.arange(0, 2*n.pi, n.pi/30) >>> z = n.array([n.cos(x), n.sin(x)]).T If I draw a boxplot on z : >>> pl.boxplot(z) the values z are modified. Is this a feature or a bug ? Matthieu ---

[Matplotlib-users] pcolor

2007-10-05 Thread yadin Bocuma Rivas
I i have tree lists of values list x of 100... values list y of 100.. values list mag of 100.. values list x and y are coordiantes of points and list Mag is magnitude of something at that point how can i plot this quantities using pcolor from __future__ import division from matplotlib.patches im

[Matplotlib-users] pcolor or contour

2007-10-05 Thread yadin Bocuma Rivas
hi i have been trying to use pcolor and/or contour to make a contor map or intensity map i want to do an intensity or contour map of an electric field i have an array (or list) of points [x,y] and for each point i have the respective value of the electric field (in another list) i have tried

Re: [Matplotlib-users] contourf question

2007-10-05 Thread Eric Firing
[EMAIL PROTECTED] wrote: > Thanks again Eric, > > Your examples are exactly what I was after. Glad to hear it! > My colleague was hypothesizing that there's probably a less-than instead of a > less-than-or-equal somewhere, if it is a bug. > That was part of it, but it was a little more subtle