Re: [Matplotlib-users] Automatically make room for my tick labels without GUI ?

2008-08-24 Thread Mathieu Leplatre
On Thu, Aug 21, 2008 at 7:50 PM, Jae-Joon Lee <[EMAIL PROTECTED]> wrote: > While I don't know much about how callbacks work in matplotlib, > looking at the source code of figure.draw() method, it seems that > call_back functions connected with the "draw_event" are called after a > figure is drawn.

Re: [Matplotlib-users] Automatically make room for my tick labels without GUI ?

2008-08-21 Thread Jae-Joon Lee
While I don't know much about how callbacks work in matplotlib, looking at the source code of figure.draw() method, it seems that call_back functions connected with the "draw_event" are called after a figure is drawn. Therefore, you need a second draw. My guess is that this second draw is somehow a

[Matplotlib-users] Automatically make room for my tick labels without GUI ?

2008-08-21 Thread Mathieu Leplatre
Hi all, I am trying to automatically adjust margins with the SVG backend. The FAQ example : http://matplotlib.sourceforge.net/doc/html/faq/howto_faq.html#how-do-i-automatically-make-room-for-my-tick-labels only works with GUI backends. May it come from get_window_extent() call ? How could I modif