Re: [Matplotlib-users] Same X and Y scale

2010-07-30 Thread Nikolaus Rath
Ryan May writes: > On Jul 30, 2010, at 14:34, Nikolaus Rath > wrote: > >> Hi, >> >> Consider this: >> >> X = np.linspace(0.70, 1.1, 100) >> Y = np.linspace(-1.19, 1.19, 70) >> (Xs, Ys) = np.meshgrid(X, Y) >> Z = np.sqrt((Xs-0.9)**2 + Ys**2) - 0.10 >> fig = plt.figure() >> ax = fig.add_subplot(

[Matplotlib-users] Permission error after installing MPL 1.0 on Mac

2010-07-30 Thread Jeremy Conlin
I recently installed MPL on two Macs, one running 10.6 and another running 10.5. When I try to plot, I get the following error: TclError: couldn't open "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/mpl-data/images/home.ppm": permission denied After che

Re: [Matplotlib-users] natgrid?

2010-07-30 Thread william ratcliff
Thanks! On Fri, Jul 30, 2010 at 2:49 PM, Jeff Whitaker wrote: > On 7/30/10 12:38 PM, william ratcliff wrote: > >> building 'mpl_toolkits.natgrid._natgrid' extension >> c:\Program Files\pythonxy\mingw\bin\gcc.exe -mno-cygwin -mdll -O -Wall >> -Isrc -Ic >> :\python25\include -Ic:\python25\PC -c s

Re: [Matplotlib-users] Same X and Y scale

2010-07-30 Thread Ryan May
On Jul 30, 2010, at 14:34, Nikolaus Rath wrote: > Hi, > > Consider this: > > X = np.linspace(0.70, 1.1, 100) > Y = np.linspace(-1.19, 1.19, 70) > (Xs, Ys) = np.meshgrid(X, Y) > Z = np.sqrt((Xs-0.9)**2 + Ys**2) - 0.10 > fig = plt.figure() > ax = fig.add_subplot(111) > ax.contour(X, Y, Z) > fig.s

[Matplotlib-users] Same X and Y scale

2010-07-30 Thread Nikolaus Rath
Hi, Consider this: X = np.linspace(0.70, 1.1, 100) Y = np.linspace(-1.19, 1.19, 70) (Xs, Ys) = np.meshgrid(X, Y) Z = np.sqrt((Xs-0.9)**2 + Ys**2) - 0.10 fig = plt.figure() ax = fig.add_subplot(111) ax.contour(X, Y, Z) fig.show() This works, but gives the y axis a different scale than the x axis

Re: [Matplotlib-users] natgrid?

2010-07-30 Thread Jeff Whitaker
On 7/30/10 12:21 PM, william ratcliff wrote: > Is it just me, or are some of the headers missing in the mpl-toolkit > on source-forge required to build natgrid 0.2? Works for me. Can you be more specific (what's the compilation error?) -Jeff -- Jeffrey S. Whitaker Phone : (303)497

Re: [Matplotlib-users] natgrid?

2010-07-30 Thread Jeff Whitaker
On 7/30/10 12:38 PM, william ratcliff wrote: > building 'mpl_toolkits.natgrid._natgrid' extension > c:\Program Files\pythonxy\mingw\bin\gcc.exe -mno-cygwin -mdll -O -Wall > -Isrc -Ic > :\python25\include -Ic:\python25\PC -c src\natgridd.c -o > build\temp.win32-2.5\Re > lease\src\natgridd.o > sr

Re: [Matplotlib-users] natgrid?

2010-07-30 Thread william ratcliff
building 'mpl_toolkits.natgrid._natgrid' extension c:\Program Files\pythonxy\mingw\bin\gcc.exe -mno-cygwin -mdll -O -Wall -Isrc -Ic :\python25\include -Ic:\python25\PC -c src\natgridd.c -o build\temp.win32-2.5\Re lease\src\natgridd.o src\natgridd.c:17:26: ncarg/ngmath.h: No such file or directory s

[Matplotlib-users] natgrid?

2010-07-30 Thread william ratcliff
Is it just me, or are some of the headers missing in the mpl-toolkit on source-forge required to build natgrid 0.2? -- The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++

Re: [Matplotlib-users] Data margin/buffer in matplotlib (Date formatted axis)

2010-07-30 Thread Eric Firing
On 07/29/2010 05:52 AM, bobnojio wrote: > > I am trying to figure out how to set 'buffers' or something of the sort on my > matplotlib plots, so that my first and last data points are not centered > exactly on the left and right border of the axis. > my Y axis does this just fine (integer data), bu

[Matplotlib-users] Data margin/buffer in matplotlib (Date formatted axis)

2010-07-30 Thread bobnojio
I am trying to figure out how to set 'buffers' or something of the sort on my matplotlib plots, so that my first and last data points are not centered exactly on the left and right border of the axis. my Y axis does this just fine (integer data), but my X axis has no buffer/margin what soever. m

Re: [Matplotlib-users] Matplotlib-users Digest, Vol 50, Issue 80

2010-07-30 Thread Waléria Antunes David
Hi Paul, Thank you very much.. You tip helped me a lot, problem solved. Thank you On Thu, Jul 29, 2010 at 9:47 PM, wrote: > Whoops. That didn’t stick like I thought it would. Try here: > http://pastebin.com/rJtUuWne > > -paul > > > > *From:* Paul Hobson > *Sent:* Thursday, July 29, 2010 5:46