Re: [Matplotlib-users] Scatter plots, pdf and rasterization

2009-04-01 Thread Eric Firing
Tiago Pereira wrote: > Hi, > > I have a recurrent problem when trying to put some plots in pdf format. > Searching in this mailing list and google I haven't been able to find a > reasonable answer to this problem, and was wondering if someone could > point me in the right direction. > > The probl

[Matplotlib-users] Using Windows Binary to install MatPlotLib in different site-packages folder

2009-04-01 Thread R. Haynie
Ok, I am not sure if this is possible, but here is the situation. I am using VirtualEnv to have multiple virtual environments that have their own site-packages folder. So each environment is its own sandbox. I am on Windows, and would like to use the binary installation files you provide. The i

[Matplotlib-users] Being able to move figure around during time.sleep()

2009-04-01 Thread VC
Hi all, I am experiencing the following difficulty: My program basically loops and wants to redraw a plot (using imshow() ) every 5 seconds or so. So it looks something like: ion() while 1: do redraw business.. time.sleep(5) The redrawing shows up fine, the only problem is that during

Re: [Matplotlib-users] compound conditions with pylab.find

2009-04-01 Thread Eric Firing
Michael Hearne wrote: > Is it possible to use multiple conditionals with the pylab.find() function? > > For example, in Matlab, I can do the following: > > x = rand(1,10); > i = find(x > 0.5 & x < 0.9); %returns the indices between 0.5 and 0.9 > > In Python: (ipython -pylab) > x = rand(1,10) >

Re: [Matplotlib-users] compound conditions with pylab.find

2009-04-01 Thread Jeff Whitaker
Michael Hearne wrote: > Is it possible to use multiple conditionals with the pylab.find() function? > > For example, in Matlab, I can do the following: > > x = rand(1,10); > i = find(x > 0.5 & x < 0.9); %returns the indices between 0.5 and 0.9 > > In Python: (ipython -pylab) > x = rand(1,10) > > No

[Matplotlib-users] compound conditions with pylab.find

2009-04-01 Thread Michael Hearne
Is it possible to use multiple conditionals with the pylab.find() function? For example, in Matlab, I can do the following: x = rand(1,10); i = find(x > 0.5 & x < 0.9); %returns the indices between 0.5 and 0.9 In Python: (ipython -pylab) x = rand(1,10) None of the following approaches work: #i

Re: [Matplotlib-users] error bars on a log log plot

2009-04-01 Thread Cohen-Tanugi Johann
I tried to look at the code (axes.py I presume) in order to attempt a patch, but it defeated me, I do not have the instructions to navigate through this code :) Where is the actual transform of the error bars occurring? thanks, Johann Michael Droettboom wrote: > I have to say I don't really hav

Re: [Matplotlib-users] legends with fill_between

2009-04-01 Thread John Hunter
On Wed, Apr 1, 2009 at 2:50 PM, empty83 wrote: > > I understand why things were not behaving as I expected and I don't really > have any good ideas on how to make a legend from a RegularPolyCollection in > general. > > However, I do not grok why fill_between returns a RegularPolyCollection > rathe

Re: [Matplotlib-users] legends with fill_between

2009-04-01 Thread empty83
I understand why things were not behaving as I expected and I don't really have any good ideas on how to make a legend from a RegularPolyCollection in general. However, I do not grok why fill_between returns a RegularPolyCollection rather than a Polygon (like fill does). Does fill_between(x,y0,y

Re: [Matplotlib-users] embedding figures inside another (coordinates)

2009-04-01 Thread Jae-Joon Lee
This thread might be helpful. http://thread.gmane.org/gmane.comp.python.matplotlib.general/16373 Take a look at the above thread and see if it fits your need. However, it became tricky if your axes adjust its position (e.g., aspect=1) during the drawing time. The example below will be helpful in

Re: [Matplotlib-users] legends with fill_between

2009-04-01 Thread Jae-Joon Lee
The matplotlib legend does not currently support fill_between. As a matter of fact, fill_between command creates RegularPolyCollection artist, and the mpl legend does not know how to handle this kind of artist at this time. And I personally do not have good idea how to draw a handle for this (a sim

[Matplotlib-users] embedding figures inside another (coordinates)

2009-04-01 Thread oyarsa the old
Hello, I am new to matplotlib and pylab. I have an image plotted with imshow/contour, or even just a coordinate system plotted with axis. I need to plot smaller contours/images on them at selected pixels. The only way I can figure how to do that is using axes. However, axes is defined on normalis

[Matplotlib-users] Plotting Scalar on a Circular Grid

2009-04-01 Thread Lorenzo Isella
Dear All, I am having a hard time with something which must be fairly doable: I would like to plot a simple scalar function on a circular domain. Consider for instance a trivial modification of one of the online examples: Code 1 #!/usr/bin/env python """ See pcolor_demo2 for a much faster way of