Thanks for the pointers, Bill.
I tried installing from source as you suggested, but I am getting the
same errors when I try to plot. What backend are you using?
Here is what I get when I try using TkAgg:
casa98-125-dhcp:.matplotlib lisa$ python simple_plot.py --verbose-
helpful
$HOME=/Users/lisa
matplotlib data path /Users/lisa/.local/lib/python2.6/site-packages/
matplotlib/mpl-data
loaded rc file /Users/lisa/.matplotlib/matplotlibrc
matplotlib version 0.99.1.1
verbose.level helpful
interactive is True
units is False
platform is darwin
CONFIGDIR=/Users/lisa/.matplotlib
Using fontManager instance from /Users/lisa/.matplotlib/fontList.cache
backend TkAgg version 8.5
Traceback (most recent call last):
File "simple_plot.py", line 2, in <module>
plot([1,2,3])
File "/Users/lisa/.local/lib/python2.6/site-packages/matplotlib/
pyplot.py", line 2134, in plot
ax = gca()
File "/Users/lisa/.local/lib/python2.6/site-packages/matplotlib/
pyplot.py", line 582, in gca
ax = gcf().gca(**kwargs)
File "/Users/lisa/.local/lib/python2.6/site-packages/matplotlib/
pyplot.py", line 276, in gcf
return figure()
File "/Users/lisa/.local/lib/python2.6/site-packages/matplotlib/
pyplot.py", line 254, in figure
**kwargs)
File "/Users/lisa/.local/lib/python2.6/site-packages/matplotlib/
backends/backend_tkagg.py", line 91, in new_figure_manager
canvas = FigureCanvasTkAgg(figure, master=window)
File "/Users/lisa/.local/lib/python2.6/site-packages/matplotlib/
backends/backend_tkagg.py", line 158, in __init__
master=self._tkcanvas, width=w, height=h)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/lib-tk/Tkinter.py", line 3284, in __init__
Image.__init__(self, 'photo', name, cnf, master, **kw)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/lib-tk/Tkinter.py", line 3240, in __init__
self.tk.call(('image', 'create', imgtype, name,) + options)
_tkinter.TclError: integer value too large to represent
Lisa
On Dec 2, 2009, at 2:17 PM, William Carithers wrote:
> Hi Lisa,
>
> I had lots of trouble installing on 10.6 as well. What finally
> worked for me
> is to use the (recommended) file make.osx that comes with the
> matplotlib
> download. You have to edit that file to point to the versions of
> Python (you
> want 2.6) and OSX (you want 10.6). I'm attaching a version that has
> all
> these edits already made. (I'm assuming you have an intel Mac, not a
> ppc).
>
> Look at the top of the file and you will see an example command line
> that
> begins with PREFIX. You'll execute that command line with the example
> directory changed to your directory and I highly recommend choosing
> the
> directory /Users/(whatever your user name is)/.local All the
> libraries will
> be installed there and Python will know how to find them even without
> explicitly putting them in any PATH variable. This command line will
> even
> check for required dependencies like freetype2, pnglib, ... And will
> go them
> and install them for you if you don't already have them. The command
> line
> should look like:
> sudo PREFIX=/Users/(your username)/.local make -f make.osx fetch deps
> mpl_install
>
> Good luck,
> Bill
> On 12/2/09 12:31 PM, "Lisa M Winter" <[email protected]> wrote:
>
>> Hello.
>>
>> I am finding it very difficult to install matplotlib with snow
>> leopard. I have the Apple XCODE installed along with numpy (which I
>> have tested and works) and am running the python 2.6 version that
>> comes with the Mac.
>>
>> I have run into the following problems:
>> 1) The diskimage installation: When I open the installer, I am told
>> that I can not install matplotlib on my disk because I do not have a
>> system version of python 2.6. I do not understand this error since I
>> am running the default version (which is 2.6.1).
>>
>> 2) As another person on the list pointed out, easy_install matplotlib
>> tries to install an older version that does not work with the newer
>> version of numpy.
>>
>> 3) I downloaded the matplotlib-0.99.1.1-py2.6 egg. I was able to
>> install matplotlib, seemingly. When I import pylab into python, I do
>> not get any errors. However, I do get an error when I try to plot.
>> With the default backend TkAgg (version 8.5), I get the following
>> error when I try to plot:
>> _tkinter.TclError: integer value too large to represent
>>
>> When I try to change the backend to MacOSX, a window opens labeled
>> Figure 1, but nothing plots. With the verbose level on helpful, I
>> find only that "backend MacOSX version unknown".
>>
>> Has anyone seen any of these problems before and have an idea as to
>> how to fix this? If not, is there another method that I should try
>> (I'm hesitant to try to build/install from the source).
>>
>> Thank you for any help!
>>
>> ------------------------------------------------------------------------------
>> Join us December 9, 2009 for the Red Hat Virtual Experience,
>> a free event focused on virtualization and cloud computing.
>> Attend in-depth sessions from your desk. Your couch. Anywhere.
>> http://p.sf.net/sfu/redhat-sfdev2dev
>> _______________________________________________
>> Matplotlib-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
> <
> make.osx
> >
> ------------------------------------------------------------------------------
> Join us December 9, 2009 for the Red Hat Virtual Experience,
> a free event focused on virtualization and cloud computing.
> Attend in-depth sessions from your desk. Your couch. Anywhere.
> http://p.sf.net/sfu/redhat-sfdev2dev_______________________________________________
> Matplotlib-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing.
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users