Michael Droettboom-3 wrote > If you use the macports version of Python, this shouldn't be a problem. > I think the problem is (perhaps) that you're trying to use the system > Python with packages from MacPorts?
Yes, I can confirm the system Python doesn't work with TkAgg and matplotlib 1.3.x. The problem with matplotlib 1.3.x and Macports Python is that the Tk/Tcl library used in setupext.py is hardwired to system Tk/Tcl for Mac platform. Here is the piece of code from setupext.py: elif sys.platform == 'darwin': # this config section lifted directly from Imaging - thanks to # the effbot! # First test for a MacOSX/darwin framework install from os.path import join, exists framework_dirs = [ join(os.getenv('HOME'), '/Library/Frameworks'), '/Library/Frameworks', '/System/Library/Frameworks/', ] Therefore matplotlib 1.3.x is compiled with system Tk/Tcl regardless which python is used (macports or system). I have tried to hardwire the macports Tk dynamic library but there are errors when importing matplotlib in python. It would be great if the devs can modify the setupext.py to use macports Tk/Tcl libraries properly, e.g., enabling a choice for using system or macports Tk/Tcl libraries. Michael Droettboom-3 wrote >> >> I really need the "tri" package in matplotlib 1.3.x. Is there anyway I >> can >> manually replace the "tri" package in matplotlib 1.2.0 (installed by >> macports) with the one in matplotlib 1.3.x (downloaded from the latest >> master in github repository? > > Possible, but probably not straightforward. I would try to tackle the > environmental problem above first. I guess I will just modify the codes in "tri" package so I can use them as standalone modules. Thanks. Yuan -- View this message in context: http://matplotlib.1069221.n5.nabble.com/missing-ticks-on-inverted-log-axis-tp41063p41086.html Sent from the matplotlib - users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ AlienVault Unified Security Management (USM) platform delivers complete security visibility with the essential security capabilities. Easily and efficiently configure, manage, and operate all of your security controls from a single console and one unified framework. Download a free trial. http://p.sf.net/sfu/alienvault_d2d _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users