Re: [Matplotlib-users] O pylab why do you refuse to import?

2009-05-06 Thread Joshua Lippai
John, I've seen this problem happen before with someone else; the person's X11 installation for some reason included the file libfreetype.6.3.dylib but not librfreetype.6.3.dylib. Did you install X11 before or after installing the Xcode development tools? Also, if you had to install X11 yourself,

Re: [Matplotlib-users] OS X backend and latex

2009-01-18 Thread Joshua Lippai
Could you provide an example of code you've written that highlights this and a more specific description of what you mean by coming out poorly? Josh On Sun, Jan 18, 2009 at 11:51 PM, Gideon Simpson wrote: > Has anyone else noticed that when using latex with the OS X backend, > figures, while app

Re: [Matplotlib-users] Fwd: [SciPy-user] reading and writing data inExcel files

2008-12-20 Thread Joshua Lippai
excelerator-devel > > You are advised to rather use xlwt to write Excel: > http://pypi.python.org/pypi/xlwt > and xlrd to read Excel: > http://pypi.python.org/pypi/xlrd/ > > Both maintained by John Machin. > >>>> On 2008/12/10 at 03:11, in message , >>>

Re: [Matplotlib-users] problem building on mac (ppc arch issue)

2008-12-14 Thread Joshua Lippai
If your goal is to build only for Intel, edit the Makefile inside your (wherever your python installation is)/lib/python2.5/config directory and delete "-arch ppc" everywhere you see it. Then try a clean build of matplotlib. I'd make a backup copy of the original somewhere just in case something go

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 sourc

Re: [Matplotlib-users] Saving to a file in a specified directory (and creating said directory along the way)

2008-11-20 Thread Joshua Lippai
But given the vagueness of what I asked, you're right, os.makedirs was a good suggestion too. Thanks. I think I need to sit down and spend some quality time with the os module over Thanksgiving holiday... Josh On Thu, Nov 20, 2008 at 9:30 AM, Joshua Lippai <[EMAIL PROTECTED

Re: [Matplotlib-users] Saving to a file in a specified directory (and creating said directory along the way)

2008-11-20 Thread Joshua Lippai
nient. Josh On Thu, Nov 20, 2008 at 9:22 AM, Christopher Barker <[EMAIL PROTECTED]> wrote: > Joshua Lippai wrote: >> Now that just leaves creating the directory. I like >> the cbook.mkdirs implementation a lot better than the non-recursive >> version in os... thanks for

Re: [Matplotlib-users] Saving to a file in a specified directory (and creating said directory along the way)

2008-11-20 Thread Joshua Lippai
the tip! Josh On Thu, Nov 20, 2008 at 8:48 AM, John Hunter <[EMAIL PROTECTED]> wrote: > On Thu, Nov 20, 2008 at 10:24 AM, Joshua Lippai <[EMAIL PROTECTED]> wrote: >> Hey, >> >> I'm working on a project for which I would like to dump data into a >>

[Matplotlib-users] Saving to a file in a specified directory (and creating said directory along the way)

2008-11-20 Thread Joshua Lippai
Hey, I'm working on a project for which I would like to dump data into a file in a specified directory (that doesn't necessarily exist yet). I know matplotlib.mlab.save(fname, X) will only work if I want to save data from an array/list to a file in the current working directory. Is there an easy w

Re: [Matplotlib-users] Import error on OS X: Reason: image not found

2008-11-19 Thread Joshua Lippai
Note: If you don't have X11 installed at all (not just the dev tools, but not even X11 itself, which would mean you're running something pre_leopard I assume), you can install this as one of the optional components of your OS X install disc. Josh On Wed, Nov 19, 2008 at 1:11 PM, Jos

Re: [Matplotlib-users] Import error on OS X: Reason: image not found

2008-11-19 Thread Joshua Lippai
d 3.1.1 is the latest working version for 10.5 (since it's a large download). Once you're sure you have the X11 tools installed, remove matplotlib and do a clean install. Josh On Wed, Nov 19, 2008 at 12:57 PM, Joshua Lippai <[EMAIL PROTECTED]> wrote: > Could you try just ty

Re: [Matplotlib-users] Import error on OS X: Reason: image not found

2008-11-19 Thread Joshua Lippai
ype "cd > /usr/X11R6/lib" into the terminal is says "no such file or directory." > Do you know what this means? > Thanks for all your help, > Katie > On Nov 19, 2008, at 3:49 PM, Joshua Lippai wrote: > > The sensitive root folders (like /usr) are hidden from

Re: [Matplotlib-users] Import error on OS X: Reason: image not found

2008-11-19 Thread Joshua Lippai
19, 2008 at 12:25 PM, Katie Thomas <[EMAIL PROTECTED]> wrote: > Thanks! I don't know how to find the /usr/X11R6/lib folder though. I > searched for it, but I couldn't find it. > On Nov 19, 2008, at 3:10 PM, Joshua Lippai wrote: > > It appears that matplotlib is havin

Re: [Matplotlib-users] Import error on OS X: Reason: image not found

2008-11-19 Thread Joshua Lippai
It appears that matplotlib is having trouble finding the freetype dynamic lib in your /usr/X11R6/lib folder when it references it. I'd check that folder to see if the dylib is there. If it isn't, reinstall the X11 dev tools. If it is, something is wrong with the dynamic lib opening, so I'd recommen

Re: [Matplotlib-users] imread() and binary PNGs

2008-10-23 Thread Joshua Lippai
h On Thu, Oct 23, 2008 at 3:51 PM, Joshua Lippai <[EMAIL PROTECTED]> wrote: > David, > > After playing around with this file and the various elements of > image.py, I've determined that the pil_to_array function in > matplotlib.image works just fine, so the place where

Re: [Matplotlib-users] imread() and binary PNGs

2008-10-23 Thread Joshua Lippai
David, After playing around with this file and the various elements of image.py, I've determined that the pil_to_array function in matplotlib.image works just fine, so the place where the problem is introduced in imread is the read_png function in matplotlib._png. So a simpler work-around for this

Re: [Matplotlib-users] Build matplotlib 0.98 on OSX

2008-06-11 Thread Joshua Lippai
ge with a > dependency on gcc 4.2, all the other packages I build, numpy, scipy, > ipython, etc... build with gcc 4.0. Why do you have this dependency? > Is there an easier solution? > > I'm reluctant to upgrade to gcc 4.2 and loose the ability to build > other packages I ne

Re: [Matplotlib-users] Numpy v1.1.0 not compatible with pylab in matplotlib 0.9.1

2008-05-29 Thread Joshua Lippai
I've consistently been able to build matplotlib on OS X. Just make sure you have all the dependencies installed. Personally, I have lbpng and whatnot installed in /usr/local instead of /usr/X11. I don't know if that'll help. Also, I use the GCC 4.2 that Apple has available for download on developer

Re: [Matplotlib-users] problem with dynamic subplots and wx

2008-04-23 Thread Joshua Lippai
I should note that I'm doing this on OS X 10.5.2, but I don't imagine Tiger would have a problem Leopard doesn't have. Josh On Wed, Apr 23, 2008 at 6:16 PM, Joshua Lippai <[EMAIL PROTECTED]> wrote: > I'm using SVN matplotlib and wxPython 2.8.7.1, and I'm not run

Re: [Matplotlib-users] problem with dynamic subplots and wx

2008-04-23 Thread Joshua Lippai
I'm using SVN matplotlib and wxPython 2.8.7.1, and I'm not running into the problem. Though I may be interpreting your problem incorrectly. I've attached a screen capture of the window that opens up when I run your program. Josh On Wed, Apr 23, 2008 at 5:33 PM, Brian Blais <[EMAIL PROTECTED]> wro

Re: [Matplotlib-users] legend is not properly drawn when a plot is saved in 'pdf' format

2008-04-23 Thread Joshua Lippai
I just tested it on OS X using the wxAgg backend, and it appears to be fine. I've atached the pdf image. What GUI are you having matplotlib use? Josh On Wed, Apr 23, 2008 at 8:50 AM, Yong-Duk Jin <[EMAIL PROTECTED]> wrote: > I'm using matplotlib 0.91.2 from ubuntu hardy 8.04 > > When I saved a pl

Re: [Matplotlib-users] 'plot' broken on latest svn

2008-04-23 Thread Joshua Lippai
My svn build of numpy does have numpy.ma.masked_invalid. Try building numpy from svn instead of using 1.0.4. It's quite stable and has lots of new features, plus it even passes all the numpy.tests. On Wed, Apr 23, 2008 at 4:45 AM, Antonio Gonzalez <[EMAIL PROTECTED]> wrote: > Hello, > > I've just

Re: [Matplotlib-users] py4science OSX installation problems

2008-04-22 Thread Joshua Lippai
Alternatively, if you're only building this for your own use and not for packaging a Universal Binary you want PowerPC users to be able to use, you could simply eliminate the ppc arch flags in the Makefile inside /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/config/ On Mon, Apr 2

Re: [Matplotlib-users] setting up matplotbib

2008-04-14 Thread Joshua Lippai
Try "from pylab import *" before using the plot function. Josh On Tue, Apr 8, 2008 at 4:28 PM, Nathanael Berestycki <[EMAIL PROTECTED]> wrote: > Hi all, > > I am trying to setup matplotbib on my computer (which is unfortunately > running on windows) and for some reason, it doesn't seem to be work

Re: [Matplotlib-users] saving PNG graphics on mac

2008-04-13 Thread Joshua Lippai
wxPython, rather. Josh On Sun, Apr 13, 2008 at 5:41 PM, Joshua Lippai <[EMAIL PROTECTED]> wrote: > I know I had some matplotlib trouble in terms of compiling on OS X > Leopard before I changed the Makefile inside > > /Library/Frameworks/Python.framework/Versions/Current/li

Re: [Matplotlib-users] saving PNG graphics on mac

2008-04-13 Thread Joshua Lippai
gt; wrote: > I don't see any error when I run python setup.py build for matplotlib. It > seems to identify everything it needs. > -gideon > > > > On Apr 13, 2008, at 10:35 AM, Joshua Lippai wrote: > > > > Are you sure you built pylab correctly? See if you can

Re: [Matplotlib-users] saving PNG graphics on mac

2008-04-13 Thread Joshua Lippai
Are you sure you built pylab correctly? See if you can find something suspicious in the build dialog. I had this error once a long time ago, but at some point since then a rebuild of everything fixed it. In the mean time, using savefig will still work even if the GUI button doesn't. Josh On Sat,

Re: [Matplotlib-users] Building matplotlib on Mac OS X 10.5.2

2008-04-08 Thread Joshua Lippai
Perfect, this works like a charm. And if so desired, this could also be done without changing the symlink by just changing the Python Makefile to use gcc-4.2 and g++-4.2. Thanks! Josh On Tue, Apr 8, 2008 at 3:11 PM, Jeff Whitaker <[EMAIL PROTECTED]> wrote: > Joshua Lippai wrote: >

Re: [Matplotlib-users] Building matplotlib on Mac OS X 10.5.2

2008-04-08 Thread Joshua Lippai
Also, I assume I should also take out the no-cpp-precomp flag since that doesn't work with GCC 4.2 either? Or does it not matter? Josh On Tue, Apr 8, 2008 at 1:57 PM, Joshua Lippai <[EMAIL PROTECTED]> wrote: > Thanks, Jeff. But is there a downside to removing the Wno-long-double &g

Re: [Matplotlib-users] Building matplotlib on Mac OS X 10.5.2

2008-04-08 Thread Joshua Lippai
Thanks, Jeff. But is there a downside to removing the Wno-long-double flag I should know about? Josh On Tue, Apr 8, 2008 at 9:06 AM, Jeff Whitaker <[EMAIL PROTECTED]> wrote: > > Joshua Lippai wrote: > > > Hello all, > > > > I'v been trying to get the sa

[Matplotlib-users] Building matplotlib on Mac OS X 10.5.2

2008-04-08 Thread Joshua Lippai
Hello all, I'v been trying to get the same python module setup in 10.5 qorking that I had going in 10.4, and so far I've been unable to install matplotlib from svn on my own. I've managed to use an installer (easy_install I think...) in the mean time, but I'd really like to be able to keep more up