[matplotlib-devel] Doesn't find Tcl/Tk headers on Ubuntu 8.04

2008-05-27 Thread Michael Droettboom
I'm moving this second question onto the matplotlib-devel list. It seems that a user is unable to build the tkagg extension from source on Ubuntu 8.04. I know the Tcl/Tk header lookup mechanism is inherently complex. Could someone who knows what's going on there have a look? Jonathan: Could y

Re: [matplotlib-devel] Doesn't find Tcl/Tk headers on Ubuntu 8.04

2008-05-27 Thread Jonathan Wright
Hi Mike, OK, I've just done the svn co of v0_91_maint and get the output here: BUILDING MATPLOTLIB matplotlib: 0.91.2svn python: 2.5.2 (r252:60911, Apr 21 2008, 11:12:42) [GCC

Re: [matplotlib-devel] Tk build problem on Ubuntu Hardy

2008-05-27 Thread Michael Droettboom
FWIW -- this is what the Ubuntu package diff does to setupext.py. We may want to do the same: +@@ -960,6 +960,9 @@ def add_tk_flags(module): + if not os.path.exists(tk_inc): + tk_inc = os.path.normpath(os.path.join(tk_lib_dir, +

Re: [matplotlib-devel] Doesn't find Tcl/Tk headers on Ubuntu 8.04

2008-05-27 Thread Michael Droettboom
Thanks, Jonathan. The tclConfig.sh stuff was news to me (I didn't write the original Tcl/Tk header finding stuff, though). Everyone else: I'm on this and will let you know how it goes. Cheers, Mike Jonathan Wright wrote: > Hi Mike, > > OK, I've just done the svn co of v0_91_maint and get the o

Re: [matplotlib-devel] Doesn't find Tcl/Tk headers on Ubuntu 8.04

2008-05-27 Thread John Hunter
On Tue, May 27, 2008 at 9:27 AM, Michael Droettboom <[EMAIL PROTECTED]> wrote: > Thanks, Jonathan. The tclConfig.sh stuff was news to me (I didn't write > the original Tcl/Tk header finding stuff, though). > > Everyone else: I'm on this and will let you know how it goes. Just a reminder that a lo

Re: [matplotlib-devel] Doesn't find Tcl/Tk headers on Ubuntu 8.04

2008-05-27 Thread Michael Droettboom
Alas, PIL SVN head fails to build on Ubuntu 8.04 (without Ubuntu-specific patches) as well... Cheers, Mike John Hunter wrote: > On Tue, May 27, 2008 at 9:27 AM, Michael Droettboom <[EMAIL PROTECTED]> wrote: > >> Thanks, Jonathan. The tclConfig.sh stuff was news to me (I didn't write >> the o

Re: [matplotlib-devel] Doesn't find Tcl/Tk headers on Ubuntu 8.04

2008-05-27 Thread Michael Droettboom
I think I have a fix in for this now. As Jonathan Wright suggested, it parses tclConfig.sh and tkConfig.sh to find the include and lib directories. If any of that fails, it falls back to the old method (which is based on the assumption that the build and lib directories are relative to the tcl

Re: [matplotlib-devel] log in hist() and toggling

2008-05-27 Thread Michael Droettboom
Should be working now on the trunk. The line transformation wasn't getting invalidated when the scale changed. Cheers, Mike John Hunter wrote: > On Sat, May 24, 2008 at 6:02 PM, Olle EngdegÄrd <[EMAIL PROTECTED]> wrote: > > >> I very much miss the 'l' shortcut for toggling log/lin y-scale in

Re: [matplotlib-devel] Doesn't find Tcl/Tk headers on Ubuntu 8.04

2008-05-27 Thread Ludwig Schwardt
Hi, Fernando wrote: > The code for this path detection is obviously rather convoluted and > brittle, since there seems to be no clear API provided by Tk for this > information, unfortunately. Michael wrote: > I know the Tcl/Tk header lookup mechanism is inherently complex. > Could someone who kno

Re: [matplotlib-devel] Doesn't find Tcl/Tk headers on Ubuntu 8.04

2008-05-27 Thread Michael Droettboom
Ludwig Schwardt wrote: > Hi, > > Fernando wrote: > >> The code for this path detection is obviously rather convoluted and >> brittle, since there seems to be no clear API provided by Tk for this >> information, unfortunately. >> > > Michael wrote: > >> I know the Tcl/Tk header lookup mec

[matplotlib-devel] some funny behavior on the trunk

2008-05-27 Thread Darren Dale
On the trunk, the following script will show an image but will not rescale it: im=imshow(rand(10,10)) im.set_clim(0,0.2) draw() It works on the maintenance branch. - This SF.net email is sponsored by: Microsoft Defy all chal

Re: [matplotlib-devel] some funny behavior on the trunk

2008-05-27 Thread John Hunter
On Tue, May 27, 2008 at 3:55 PM, Darren Dale <[EMAIL PROTECTED]> wrote: > On the trunk, the following script will show an image but will not rescale it: > > im=imshow(rand(10,10)) > im.set_clim(0,0.2) > draw() I see that too -- and another image related bug: In [177]: imshow(rand(10,10)) Out[177

Re: [matplotlib-devel] some funny behavior on the trunk

2008-05-27 Thread Darren Dale
On Tuesday 27 May 2008 5:22:00 pm John Hunter wrote: > On Tue, May 27, 2008 at 3:55 PM, Darren Dale <[EMAIL PROTECTED]> wrote: > > On the trunk, the following script will show an image but will not > > rescale it: > > > > im=imshow(rand(10,10)) > > im.set_clim(0,0.2) > > draw() > > I see that too

Re: [matplotlib-devel] some funny behavior on the trunk

2008-05-27 Thread Eric Firing
On Tue, 2008-05-27 at 18:44 -0400, Darren Dale wrote: > On Tuesday 27 May 2008 5:22:00 pm John Hunter wrote: > > On Tue, May 27, 2008 at 3:55 PM, Darren Dale <[EMAIL PROTECTED]> > wrote: > > > On the trunk, the following script will show an image but will not > > > rescale it: > > > > > > im=imsho

Re: [matplotlib-devel] some funny behavior on the trunk

2008-05-27 Thread John Hunter
On Tue, May 27, 2008 at 6:40 PM, Eric Firing <[EMAIL PROTECTED]> wrote: > If I fouled it up--as evidently I did--I would like to fix it. I will > take a first look at it this evening. FYI, this bug is only exposed in interactive use since the caching is triggered by the first draw. The problem

[matplotlib-devel] callbacks for ScalarMappable changed

2008-05-27 Thread John Hunter
In the interest of simplifying/unifying the API for callbacks in mpl, I ported the cm.ScalarMappable callback API to the cbook.CallbackRegistry functionality which is what we use (on the trunk) for the toolbar event handling and the Axes xlim/ylim notification. At a minimum, all callbacks (with on