On Wed, Sep 22, 2010 at 8:31 PM, C M <cmpyt...@gmail.com> wrote: > Until a more permanent solution is figured out, can anyone recommend > any workarounds, even if they are a little clunky? I'm embedding mpl > plots in wxPython and am also finding this issue suboptimal.
Change your subplots adjust parameters to make the default bottom, left, wspace and hspace wider. This will reduce the chance of overlaps. http://matplotlib.sourceforge.net/search.html?q=subplots_adjust The defaults can be changed in your rc file http://matplotlib.sourceforge.net/users/customizing.html See also these recipes on the FAQ to automatically choose boundaries http://matplotlib.sourceforge.net/faq/howto_faq.html#move-the-edge-of-an-axes-to-make-room-for-tick-labels http://matplotlib.sourceforge.net/faq/howto_faq.html#automatically-make-room-for-tick-labels Automatic layout to avoid overlap is not an easy problem -- Michael Droetboom worked on it for a while but didn't get to a satisfactory point. So far our philosophy has been : make it easy to customize rather than do it automatically. I realize this is not always a good approach, especially in automated figure generators where you don't have access to the data ahead of time. JDH ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users