[matplotlib-devel] Blocker

2008-06-09 Thread Nils Wagner
Hi all, I cannot build matplotlib from svn since last Friday. Any idea ? Nils cc1plus: Warnung: Kommandozeilenoption "-Wstrict-prototypes" ist gültig für Ada/C/ObjC, aber nicht für C++ g++ -pthread -shared build/temp.linux-x86_64-2.5/agg24/src/agg_curves.o build/temp.linux-x86_64-2.5/agg24/

Re: [matplotlib-devel] Blocker

2008-06-09 Thread Eric Firing
Nils Wagner wrote: > Hi all, > > I cannot build matplotlib from svn since last Friday. > Any idea ? > -L/usr/lib -L/usr/local/lib64 -L/usr/lib64 -lpng -lz > -lstdc++ -lm -o > build/lib.linux-x86_64-2.5/matplotlib/_path.so > /usr/bin/ld: cannot find -lpng Do you have a libpng.so in /usr/lib64 o

[matplotlib-devel] puzzle: interactive backend case with ipython

2008-06-09 Thread Eric Firing
While investigating a bug pointed out by Andrew (and one that I had introduced some time ago) I found to my horror that I had also caused another bug: interactive plotting was not working with ipython -pylab. I backed out part of r5420, and that fixed the problem. This temporary fix is to rest

Re: [matplotlib-devel] puzzle: interactive backend case with ipython

2008-06-09 Thread Darren Dale
On Monday 09 June 2008 03:55:47 Eric Firing wrote: > While investigating a bug pointed out by Andrew (and one that I had > introduced some time ago) I found to my horror that I had also caused > another bug: interactive plotting was not working with ipython -pylab. > I backed out part of r5420, and

Re: [matplotlib-devel] [Enthought-dev] Python novice stumped by ImportError

2008-06-09 Thread Darren Dale
On Monday 09 June 2008 01:27:57 Gael Varoquaux wrote: > On Sun, Jun 08, 2008 at 06:13:24PM -0400, Darren Dale wrote: > > Matplotlib's setup scripts are designed to avoid this problem. There are > > three conditions under which we install traits: > > > > 1) Traits is not installed > > 2) A previous

Re: [matplotlib-devel] [Enthought-dev] Python novice stumped by ImportError

2008-06-09 Thread John Hunter
On Mon, Jun 9, 2008 at 5:41 AM, Darren Dale <[EMAIL PROTECTED]> wrote: > I think we would rather make traits an external dependency, if it could be > easily installed as a separate package by a novice python user. Would it be > possible for http://code.enthought.com/projects/traits/ to list specif

Re: [matplotlib-devel] puzzle: interactive backend case with ipython

2008-06-09 Thread Andrew Straw
Hi Eric, show() isn't bringing up my plots with r5430 in normal scripts (i.e. not using IPython). -Andrew Eric Firing wrote: > While investigating a bug pointed out by Andrew (and one that I had > introduced some time ago) I found to my horror that I had also caused > another bug: interactive

[matplotlib-devel] High quality downscaling of images

2008-06-09 Thread Gregor Thalhammer
Dear developers, matplotlib offers high quality interpolation filters which give excellent results if you scale up an image. However, for downscaling an image the results are worse. Depending on the precise scaling fine details (e.g., thin horizontal lines, single pixel points) disappear and

Re: [matplotlib-devel] High quality downscaling of images

2008-06-09 Thread John Hunter
On Mon, Jun 9, 2008 at 10:18 AM, > I attached a patch against the current svn version that adds a 'resample' > argument to imshow. Additionally, this patch supports a 'image.resample' > entry in the rc file. Setting this to false (default), the behaviour is > unchanged. Hi Gregor -- thanks for se

[matplotlib-devel] automod doc warnings

2008-06-09 Thread John Hunter
Those of you who have been building the docs have probably seen the inscrutable table warnings coming from sphinx. I just got a clue where these are coming from. Look at the table formatting from this ipython session (in case your email client doesn't handle monospace right, the table border at t

Re: [matplotlib-devel] [Enthought-dev] Python novice stumped by ImportError

2008-06-09 Thread Darren Dale
On Monday 09 June 2008 09:52:46 am John Hunter wrote: > On Mon, Jun 9, 2008 at 5:41 AM, Darren Dale <[EMAIL PROTECTED]> wrote: > > I think we would rather make traits an external dependency, if it could > > be easily installed as a separate package by a novice python user. Would > > it be possible

Re: [matplotlib-devel] [Enthought-dev] Python novice stumped by ImportError

2008-06-09 Thread Gael Varoquaux
On Mon, Jun 09, 2008 at 12:04:58PM -0400, Darren Dale wrote: > Gael, maybe the following situation caused the trouble: > 1) user downloads mpl source > 2) builds matplotlib - traits now exists in the temproary build directory > 3) installs enthought traits > 4) installs matplotlib - traits would n

Re: [matplotlib-devel] [Enthought-dev] Python novice stumped by ImportError

2008-06-09 Thread Gael Varoquaux
On Mon, Jun 09, 2008 at 06:41:08AM -0400, Darren Dale wrote: > I think we would rather make traits an external dependency, if it could be > easily installed as a separate package by a novice python user. Would it be > possible for http://code.enthought.com/projects/traits/ to list specific > ins

Re: [matplotlib-devel] puzzle: interactive backend case with ipython

2008-06-09 Thread Eric Firing
Andrew Straw wrote: > Hi Eric, > > show() isn't bringing up my plots with r5430 in normal scripts (i.e. not > using IPython). Sure enough. It seems that in the process of bisecting the svn versions to track down this problem and the original one you reported, things got mixed up in my director

Re: [matplotlib-devel] High quality downscaling of images

2008-06-09 Thread Gregor Thalhammer
John Hunter schrieb: > On Mon, Jun 9, 2008 at 10:18 AM, > > >> I attached a patch against the current svn version that adds a 'resample' >> argument to imshow. Additionally, this patch supports a 'image.resample' >> entry in the rc file. Setting this to false (default), the behaviour is >> uncha

Re: [matplotlib-devel] High quality downscaling of images

2008-06-09 Thread John Hunter
On Mon, Jun 9, 2008 at 11:45 AM, Gregor Thalhammer > > If I understood it correctly, Agg (i.e., span_image_resample_*) already > exactly behaves like you proposed. It resamples the image if the scaling is > less than 1, otherwise it interpolates. > I am not an Agg expert. The documentation of Agg

Re: [matplotlib-devel] automod doc warnings

2008-06-09 Thread Darren Dale
On Monday 09 June 2008 11:48:30 am John Hunter wrote: > Those of you who have been building the docs have probably seen the > inscrutable table warnings coming from sphinx. I just got a clue > where these are coming from. Look at the table formatting from this > ipython session (in case your emai

Re: [matplotlib-devel] puzzle: interactive backend case with ipython

2008-06-09 Thread Eric Firing
Andrew Straw wrote: > Hi Eric, > > show() isn't bringing up my plots with r5430 in normal scripts (i.e. not > using IPython). Andrew, Please try now, with r5435 or later. There is still the underlying puzzle to be solved before all this can be cleaned up, but I think the basic functionality i

Re: [matplotlib-devel] AttributeError: 'FigureCanvasWxAgg' object has no attribute 'SetInitialSize'

2008-06-09 Thread Nils Wagner
On Mon, 09 Jun 2008 07:41:05 -1000 Eric Firing <[EMAIL PROTECTED]> wrote: > Nils Wagner wrote: >> Hi Eric, >> >> I have still some trouble with the following example >>taken from openopt >> >> >> /usr/bin/python -i nlp_3.py >> starting solver ipopt (license: CPL) with problem nlp3 >> [PyIPO

Re: [matplotlib-devel] [Enthought-dev] Python novice stumped by ImportError

2008-06-09 Thread Dave Peterson
Darren Dale wrote: > I think we would rather make traits an external dependency, if it could be > easily installed as a separate package by a novice python user. Would it be > possible for http://code.enthought.com/projects/traits/ to list specific > instructions and links to the downloads? Or t

Re: [matplotlib-devel] [Enthought-dev] Python novice stumped by ImportError

2008-06-09 Thread Dave Peterson
Gael Varoquaux wrote: On Mon, Jun 09, 2008 at 12:04:58PM -0400, Darren Dale wrote: Gael, maybe the following situation caused the trouble: 1) user downloads mpl source 2) builds matplotlib - traits now exists in the temproary build directory 3) installs enthought traits 4) installs

Re: [matplotlib-devel] [Enthought-dev] Python novice stumped by ImportError

2008-06-09 Thread Eric Firing
Dave Peterson wrote: > That said, given the upcoming release of Traits 3 this situation may get > a little crazier. T2 and T3 are not fully api compatible, though they > are very close. So I suspect version numbers are going to play a > larger role in the future. Is there anything we can do

Re: [matplotlib-devel] [Enthought-dev] Python novice stumped by ImportError

2008-06-09 Thread Dave Peterson
Eric Firing wrote: > Dave Peterson wrote: > >> That said, given the upcoming release of Traits 3 this situation may >> get a little crazier. T2 and T3 are not fully api compatible, though >> they are very close. So I suspect version numbers are going to play >> a larger role in the future. I

Re: [matplotlib-devel] AttributeError: 'FigureCanvasWxAgg' object has no attribute 'SetInitialSize'

2008-06-09 Thread John Hunter
On Sat, Jun 7, 2008 at 4:36 AM, Nils Wagner <[EMAIL PROTECTED]> wrote: > Hi all, > > I have some trouble with matplotlib's svn version. > Any pointer would be appreciated. > self.canvas.SetInitialSize(wx.Size(fig.bbox.width, > fig.bbox.height)) > AttributeError: 'FigureCanvasWxAgg' object has n

Re: [matplotlib-devel] [Enthought-dev] Python nov ice stumped by ImportError

2008-06-09 Thread Darren Dale
On Monday 09 June 2008 04:04:47 pm Dave Peterson wrote: > Eric Firing wrote: > > Dave Peterson wrote: > >> That said, given the upcoming release of Traits 3 this situation may > >> get a little crazier. T2 and T3 are not fully api compatible, though > >> they are very close. So I suspect version

Re: [matplotlib-devel] [Enthought-dev] Python novice stumped by ImportError

2008-06-09 Thread Dave Peterson
Darren Dale wrote: On Monday 09 June 2008 04:04:47 pm Dave Peterson wrote: Eric Firing wrote: Dave Peterson wrote: That said, given the upcoming release of Traits 3 this situation may get a little crazier. T2 and T3 are not fully api compatible, though they are very close. So

Re: [matplotlib-devel] [Enthought-dev] Python novice stumped by ImportError

2008-06-09 Thread Darren Dale
On Monday 09 June 2008 6:22:28 pm Dave Peterson wrote: > I didn't intend to start up the root cause discussion again. :-) I only > wanted to point out that I hadn't heard of anyone working on improving > whatever performance problems exist / existed. I just wanted to avoid having a misperception

Re: [matplotlib-devel] puzzle: interactive backend case with ipython

2008-06-09 Thread Fernando Perez
On Mon, Jun 9, 2008 at 10:16 AM, Eric Firing <[EMAIL PROTECTED]> wrote: > Please try now, with r5435 or later. There is still the underlying > puzzle to be solved before all this can be cleaned up, but I think the > basic functionality is back. Eric: in Shell,py, around line 1167, you'll find th

Re: [matplotlib-devel] [Enthought-dev] Python novice stumped by ImportError

2008-06-09 Thread Fernando Perez
On Mon, Jun 9, 2008 at 3:22 PM, Dave Peterson <[EMAIL PROTECTED]> wrote: > Yes, he and I sat together in a sprint room at Scipy and refactored Traits > code (and everything else using setuptools and namespace packages) until we > removed it all, taking timing runs each step of the way. I'd actu

Re: [matplotlib-devel] puzzle: interactive backend case with ipython

2008-06-09 Thread Eric Firing
Fernando Perez wrote: On Mon, Jun 9, 2008 at 10:16 AM, Eric Firing <[EMAIL PROTECTED]> wrote: Please try now, with r5435 or later. There is still the underlying puzzle to be solved before all this can be cleaned up, but I think the basic functionality is back. Eric: in Shell,py, around line

Re: [matplotlib-devel] puzzle: interactive backend case with ipython

2008-06-09 Thread Fernando Perez
On Mon, Jun 9, 2008 at 8:00 PM, Eric Firing <[EMAIL PROTECTED]> wrote: > Anyway, regardless of whether you decide to make any changes in ipython, > thanks for solving the puzzle. Thanks for providing a patch. I'll be mostly offline for a few days, but I'll add the fix in some form (the beauty o