Re: [Matplotlib-users] Feature request: automatic scaling of subplots, margins, etc

2011-05-17 Thread Jae-Joon Lee
Attached is a modified version of Tony's script. * no drawing is necessary * support subplots that span multiple rows/columns Please test it and let me know of any problem. I'm planning to push these functionality into matplolib after some refactoring (e.g., it would be good to have pyplot.tig

Re: [Matplotlib-users] Feature request: automatic scaling of subplots, margins, etc

2011-05-11 Thread Jae-Joon Lee
On Thu, May 12, 2011 at 2:59 AM, Benjamin Root wrote: > Most things, we do know the sizes of.  It is my understanding that it is the > text objects that is the unknown.  If this could be solved, then a layout > engine would be much more feasible. I doubt it. As far as I know, the main reason that

Re: [Matplotlib-users] Feature request: automatic scaling of subplots, margins, etc

2011-05-11 Thread Jae-Joon Lee
On Thu, May 12, 2011 at 2:37 AM, Brendan Barnwell wrote: > One thing I've always wondered: is it fundamentally impossible to change the > fact that, in matplotlib, you cannot know how big a drawn object will be > until you actually draw it? Well, I don't think this is 100% correct. As far as I ca

Re: [Matplotlib-users] Feature request: automatic scaling of subplots, margins, etc

2011-05-11 Thread Benjamin Root
On Wed, May 11, 2011 at 4:31 PM, Eric Firing wrote: > On 05/11/2011 09:11 AM, Benjamin Root wrote: > > > > > > On Wed, May 11, 2011 at 1:43 PM, todd rme > > wrote: > > > > On Wed, May 11, 2011 at 1:59 PM, Benjamin Root > > wrote: > >

Re: [Matplotlib-users] Feature request: automatic scaling of subplots, margins, etc

2011-05-11 Thread Eric Firing
On 05/11/2011 09:11 AM, Benjamin Root wrote: > > > On Wed, May 11, 2011 at 1:43 PM, todd rme > wrote: > > On Wed, May 11, 2011 at 1:59 PM, Benjamin Root > wrote: > > > > > > On Wed, May 11, 2011 at 12:47 PM, Brendan Barn

Re: [Matplotlib-users] Feature request: automatic scaling of subplots, margins, etc

2011-05-11 Thread Benjamin Root
On Wed, May 11, 2011 at 1:43 PM, todd rme wrote: > On Wed, May 11, 2011 at 1:59 PM, Benjamin Root wrote: > > > > > > On Wed, May 11, 2011 at 12:47 PM, Brendan Barnwell < > brenb...@brenbarn.net> > > wrote: > >>One thing I've always wondered: is it fundamentally impossible to > >> change

Re: [Matplotlib-users] Feature request: automatic scaling of subplots, margins, etc

2011-05-11 Thread todd rme
On Wed, May 11, 2011 at 1:59 PM, Benjamin Root wrote: > > > On Wed, May 11, 2011 at 12:47 PM, Brendan Barnwell > wrote: >>        One thing I've always wondered: is it fundamentally impossible to >> change the fact that, in matplotlib, you cannot know how big a drawn >> object will be until you a

Re: [Matplotlib-users] Feature request: automatic scaling of subplots, margins, etc

2011-05-11 Thread Justin McCann
On Wed, May 11, 2011 at 1:59 PM, Benjamin Root wrote: > ... > Most things, we do know the sizes of. It is my understanding that it is > the text objects that is the unknown. If this could be solved, then a > layout engine would be much more feasible. The problem is that even LaTeX > has to re-

Re: [Matplotlib-users] Feature request: automatic scaling of subplots, margins, etc

2011-05-11 Thread Benjamin Root
On Wed, May 11, 2011 at 12:47 PM, Brendan Barnwell wrote: > [Accidentally sent this reply privately the first time, natch.] > > On 2011-05-11 04:29, Jae-Joon Lee wrote: > > > On Wed, May 11, 2011 at 5:03 PM, Daniel Mader > > > wrote: > >> >> Hi Jae-Loon, > >> >> > >> >> thanks for your co

Re: [Matplotlib-users] Feature request: automatic scaling of subplots, margins, etc

2011-05-11 Thread Brendan Barnwell
[Accidentally sent this reply privately the first time, natch.] On 2011-05-11 04:29, Jae-Joon Lee wrote: > > On Wed, May 11, 2011 at 5:03 PM, Daniel Mader > > wrote: >> >> Hi Jae-Loon, >> >> >> >> thanks for your comments! Of course I do agree that a figure layout >> >> should not chan

Re: [Matplotlib-users] Feature request: automatic scaling of subplots, margins, etc

2011-05-11 Thread Daniel Mader
Hi again, >> Hi Jae-Loon, >> >> thanks for your comments! Of course I do agree that a figure layout >> should not change in interactive mode. However, I don't see why this >> should happen upon a panning action. A different case is when the >> label or title font sizes are changed, but I was assum

Re: [Matplotlib-users] Feature request: automatic scaling of subplots, margins, etc

2011-05-11 Thread Jae-Joon Lee
On Wed, May 11, 2011 at 5:03 PM, Daniel Mader wrote: > Hi Jae-Loon, > > thanks for your comments! Of course I do agree that a figure layout > should not change in interactive mode. However, I don't see why this > should happen upon a panning action. A different case is when the > label or title fo

Re: [Matplotlib-users] Feature request: automatic scaling of subplots, margins, etc

2011-05-11 Thread Daniel Mader
Hi Jae-Loon, thanks for your comments! Of course I do agree that a figure layout should not change in interactive mode. However, I don't see why this should happen upon a panning action. A different case is when the label or title font sizes are changed, but I was assuming this is adjusted prior t

Re: [Matplotlib-users] Feature request: automatic scaling of subplots, margins, etc

2011-05-10 Thread Jae-Joon Lee
On Fri, May 6, 2011 at 5:20 PM, Daniel Mader wrote: > From many postings here I have learned that > this is the absolute intention, i.e. it is broken by design unless the > programmer takes care about this. I think there are pros and cons, and I don't think the current design is simply broken. Fo

Re: [Matplotlib-users] Feature request: automatic scaling of subplots, margins, etc

2011-05-06 Thread Daniel Mader
Very nice, will try this asap! Many thanks! 2011/5/6 Tony Yu : > > On Fri, May 6, 2011 at 5:55 AM, Chris Rodgers > wrote: >> >> The real solution of course is to calculate exactly where every piece >> of text actually is, detect overlaps, and adjust. That is certainly >> beyond my ability or inc

Re: [Matplotlib-users] Feature request: automatic scaling of subplots, margins, etc

2011-05-06 Thread Tony Yu
On Fri, May 6, 2011 at 5:55 AM, Chris Rodgers wrote: > The real solution of course is to calculate exactly where every piece > of text actually is, detect overlaps, and adjust. That is certainly > beyond my ability or inclination to implement. In the mean time, it > would be nice to have a simple

Re: [Matplotlib-users] Feature request: automatic scaling of subplots, margins, etc

2011-05-06 Thread Chris Rodgers
Since I just posted an almost-identical question, it's no surprise that I agree this would be a useful feature. Reason #1) I create hundreds of quick throwaway figures every day, often in an automated way, and don't have time to fine-tune them. Reason #2) a newbie to matplotlib might be turned off

[Matplotlib-users] Feature request: automatic scaling of subplots, margins, etc

2011-05-06 Thread Daniel Mader
Hi, almost every time I create a somewhat more complex figure I have to fight with the not too smart positioning of the plots and the size of margins around the axes. From many postings here I have learned that this is the absolute intention, i.e. it is broken by design unless the programmer takes