[Matplotlib-users] setting axis label offset from end of spine

2009-08-29 Thread jason-sage
I'm trying to change the position of the axis label so that it is a certain number of points off the end of the spine representing the x-axis. I'm trying to use the transform attribute and the offset_copy function to say "put the label 5 points right of the end of the spine". So far, my code

Re: [Matplotlib-users] "Piecewise Cubic Hermite Interpolating Polynomial" in python

2009-08-29 Thread Chris Michalski
Thanks for the inputs... perhaps it will provide the impetus for future postings as well... chris On Aug 29, 2009, at 11:49 AM, John Hunter wrote: > On Sat, Aug 29, 2009 at 1:12 PM, Eric Firing > wrote: > >> This looks interesting. I successfully ran your program by using >> copy >> and

[Matplotlib-users] After update to 0.99.0 - mpl doesn't work

2009-08-29 Thread Sebastian Pająk
Hi When I try to import anything from mpl, Python's interpreter exits without any error. This happens after the 0.99.0 upgrade. This is example session: d:\>python Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license"

Re: [Matplotlib-users] "Piecewise Cubic Hermite Interpolating Polynomial" in python

2009-08-29 Thread John Hunter
On Sat, Aug 29, 2009 at 1:12 PM, Eric Firing wrote: > This looks interesting.  I successfully ran your program by using copy > and paste to get it into a file, but for the future I certainly > recommend that you attach such a file directly--file attachments > generally work very well these days, b

Re: [Matplotlib-users] "Piecewise Cubic Hermite Interpolating Polynomial" in python

2009-08-29 Thread Eric Firing
Chris Michalski wrote: > > Offered for those who might have the same need – a Python pchip() > equivalent ==> pypchip(). Since I'm not sure how attachments work (or > if they work at all...), I copied the code I used below, followed by a > PNG showing "success": Chris, This looks interestin

[Matplotlib-users] plot a complete sine, but shade where x>0.25pi and x<0.75pi

2009-08-29 Thread marc desmarais
Is this the only way to plot a sin from x=0 to x=2pi, but shade where x>0.25pi and x<0.75pi? x0 = np.linspace(0.0, 0.25*np.pi, 100) x1 = np.linspace(0.25*np.pi, 0.75*np.pi, 100) x2 = np.linspace(0.75*np.pi,2*np.pi, 100) y0 = np.sin(x0) y1 = np.sin(x1) y2 = np.sin(x2) fig = figure() ax1 = fig.ad