On Mon, Oct 17, 2011 at 1:03 AM, C M <cmpyt...@gmail.com> wrote:
> - Error if I call self.panel.Layout() before I call tight_layout().

In my system, I don't see any error whether ` self.panel.Layout() is in or not.

> - If I don't do this, no error, but it still isn't doing a proper tight 
> layout.
>

Your script DOES work in my system (but I'm using it with wxGTK) and
it DOES a proper tight_layout.

(However, the figure size never gets smaller than the original figure
size so it shows only the part of the figure when the window is
smaller than the original figure size).

So, it seems that the issue is platform-dependent.

As for the error message, it seems that the subplot_params values
(left, right, top, bottom, etc) calculated by the "tight_layout"
routine is somehow corrupted.
Why this happens is hard to track down unless I can reproduce the error.
And I hope any other windows developer out there can take a look at this issue.

Meanwhile, can you play a little bit more with your script?

1) check the size of the figure (print self.figure.get_size_inches())
before a tight_layout is called.

2) see if calling the draw method (self.canvas.draw()) before the
tight_layout helps.

Also, please open a git issue on this so that others can take a look.

Regards,

-JJ

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to