Re: [Matplotlib-users] create ListedColormap with different alpha values

2008-11-23 Thread John Hunter
On Sun, Nov 23, 2008 at 2:01 AM, Paul Ivanov [EMAIL PROTECTED] wrote: I took a stab at it, how does this look? I also took the liberty of adding alpha to LinearSegmentedColormap and updated its docstring changing two somewhat ambiguous uses of the word 'entry' with 'key' and 'value'. Hey

Re: [Matplotlib-users] Filling between curves conditionally

2008-11-23 Thread John Hunter
On Sun, Nov 23, 2008 at 1:26 PM, John Hunter [EMAIL PROTECTED] wrote: http://matplotlib.sourceforge.net/examples/api/fill_where_demo.html The code is much simpler than the fill_between_posneg original example, which I have just removed from svn. The fill between use case is common enough

Re: [Matplotlib-users] Filling between curves conditionally

2008-11-23 Thread Zane Selvans
On Nov 23, 2008, at 12:36 PM, John Hunter wrote: On Sun, Nov 23, 2008 at 1:26 PM, John Hunter [EMAIL PROTECTED] wrote: The code is much simpler than the fill_between_posneg original example, which I have just removed from svn. The fill between use case is common enough that I decided to

Re: [Matplotlib-users] Filling between curves conditionally

2008-11-23 Thread Joshua Lippai
The version of NumPy in Chris's superpack should be recent enough for you to just need to build matplotlib from SVN and not the other stuff, and I assume he includes installation of wxPython or some other compatible backend for matplotlib. It's really straightforward; you just need to get the

Re: [Matplotlib-users] Filling between curves conditionally

2008-11-23 Thread Zane Selvans
Either way, it's pretty straightforward; just change one line in the Python Makefile and matplotlib will install with a simple sudo python setup.py install Huh, well there was a make target for Leopard that had that fixed CFLAGS that you suggested, and it seemed to build and install without

Re: [Matplotlib-users] Filling between curves conditionally

2008-11-23 Thread Alan Jackson
On Sun, 23 Nov 2008 16:48:59 -0800 Zane Selvans [EMAIL PROTECTED] wrote: Incidentally, when you do it with ax.plot() instead you can see more easily that the corners where the two sinusoidal functions intersect are getting kind of chopped off by the polygon filling. Don't know if

Re: [Matplotlib-users] Two questions regarding axis scaling

2008-11-23 Thread John Owens
Jeff Whitaker wrote: Jeremy Conlin wrote: Thanks for that information, that is what I needed. But now I come up with a separate problem. I have the following in my code: pylab.plot(n, S, 'b.', label='x') pylab.legend() ax2 = pylab.twinx()

Re: [Matplotlib-users] Animate scatter plots

2008-11-23 Thread Cohen-Tanugi Johann
hi, I tried your script, commenting/uncommenting the backend line, but I still get: [EMAIL PROTECTED] ~]$ ipython -pylab MACROS/animation.py --- AttributeErrorTraceback (most recent call

Re: [Matplotlib-users] Two questions regarding axis scaling

2008-11-23 Thread Jae-Joon Lee
What if I wanted one legend with both entries in it, rather than two separate legends with a different entry in each? Is that possible? That's more desirable than two separate legends. Check http://www.nabble.com/displaying-a-legend-from-a-different-subplot-td18447966.html#a18447966 The