[Matplotlib-users] Plotting one figure on sevral subplots

2007-09-07 Thread Matthieu Brucher
Hi, I want to know if it is possible to create a plot on several subplots. For instance : pl.subplot(2, 2, 1) pl.plot(y1) pl.sublot(2, 2, 2) pl.plot(y2) pl.subplot(2, 2, ???) # Create a plot on the last line plot(y3) Is it possible ? Matthieu

Re: [Matplotlib-users] Plotting one figure on sevral subplots

2007-09-07 Thread John Hunter
On 9/7/07, Matthieu Brucher <[EMAIL PROTECTED]> wrote: > Hi, > > I want to know if it is possible to create a plot on several subplots. For > instance : > > pl.subplot(2, 2, 1) > pl.plot(y1) > pl.sublot(2, 2, 2) > pl.plot(y2) > pl.subplot(2, 2, ???) # Create a plot on the last line > plot(y3) > > I

Re: [Matplotlib-users] Plotting one figure on sevral subplots

2007-09-07 Thread Matthieu Brucher
> > Although I am not completely sure what you are asking, I think you are > asking for: > > subplot(221) > subplot(222) > subplot(212) > > then the last subplot (bottom row) will span both columns. > > JDH > Thank you for the fast answer :) That should be what I asked for. Won't the other subplo

Re: [Matplotlib-users] Plotting one figure on sevral subplots

2007-09-07 Thread John Hunter
On 9/7/07, Matthieu Brucher <[EMAIL PROTECTED]> wrote: > > Thank you for the fast answer :) > That should be what I asked for. Won't the other subplots be erased ? Only if this subplots overlap -- in this case they do not. When a previous subplot is overlapped by a new subplot, the old one is er

Re: [Matplotlib-users] Vector magnitude?

2007-09-07 Thread Steve Schmerler
Norbert Nemec wrote: > >> 2) Is there a way to calculate the magnitude (length) of a vector? > numpy.linalg.norm(X) > This makes more sense than len(). I've got confused by "length" :) -- cheers, steve I love deadlines. I like the whooshing sound they make as they fly by. -- Douglas Adams

Re: [Matplotlib-users] Plotting one figure on sevral subplots

2007-09-07 Thread Matthieu Brucher
> > Only if this subplots overlap -- in this case they do not. When a > previous subplot is overlapped by a new subplot, the old one is > erased. > That means too that having a plot on 2/3 of the screen is not possible, I suppose ? Matthieu --

Re: [Matplotlib-users] Plotting one figure on sevral subplots

2007-09-07 Thread John Hunter
On 9/7/07, Matthieu Brucher <[EMAIL PROTECTED]> wrote: > That means too that having a plot on 2/3 of the screen is not possible, I > suppose ? To do that you need to use the axes command (a subplot is just a special case of an axes on a regular grid). For example, you could do (the arguments are

[Matplotlib-users] matplotlib and ipython inside ide (mac osx)

2007-09-07 Thread killian koepsell
hi, i am looking for help in using matplotlib inside a graphical IDE in mac osx and preferabley even ipython with matplotlib inside an IDE. i am used to interact with the python interpreter (inside ipython, even inside ipython-inside-emacs) while several plot windows are open, but i don't have any