Re: [Matplotlib-users] Embedding an MPL Canvas/Figure in a PyGTK Container

2010-04-19 Thread Vamsi Vytla
Thanks for your reply Mike. Looks like fig.add_axes(..) works the best for me for now. If my situation gets worse I will try and look into calls that allocate window area for the figure/canvas in a container. Thanks again! On Mon, Apr 19, 2010 at 6:03 AM, Michael Droettboom wrote: > The probl

Re: [Matplotlib-users] Embedding an MPL Canvas/Figure in a PyGTK Container

2010-04-19 Thread Michael Droettboom
The problem is really that the window is too small, the text is too large, and/or the axes is too large within the figure. Try one or more of the following: Replace the values for win.set_default_size to something larger, eg. win.set_default_size(800,600) Replace the fig.add_subplot call wit

[Matplotlib-users] Embedding an MPL Canvas/Figure in a PyGTK Container

2010-04-16 Thread Vamsi Vytla
Adding line: ax.set_xlabel("asdf") To file (matplotlib examples): http://matplotlib.sourceforge.net/examples/user_interfaces/embedding_in_gtk2.py This sets the X-Label under the navigation toolbar. I am unable to set it such a way that the entire canvas is rendered in the container. It would be