Revision: 5370 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5370&view=rev Author: astraw Date: 2008-06-02 19:05:07 -0700 (Mon, 02 Jun 2008)
Log Message: ----------- add expand_vertical and expand_horizontal flags Modified Paths: -------------- trunk/toolkits/mplsizer/mpl_toolkits/mplsizer/mplsizer.py Modified: trunk/toolkits/mplsizer/mpl_toolkits/mplsizer/mplsizer.py =================================================================== --- trunk/toolkits/mplsizer/mpl_toolkits/mplsizer/mplsizer.py 2008-06-03 02:03:56 UTC (rev 5369) +++ trunk/toolkits/mplsizer/mpl_toolkits/mplsizer/mplsizer.py 2008-06-03 02:05:07 UTC (rev 5370) @@ -11,6 +11,11 @@ 'align_centre_horizontal', 'align_right', 'align_bottom', + + # XXX TODO: check if there is another way to do this + # in wx (in context of grid sizer): + 'expand_vertical', + 'expand_horizontal', ] def as_sizer_element(ax,**kwargs): @@ -433,6 +438,12 @@ elif el.flag.get('align_centre_vertical',False): el_lbrt_inch = (x0, y05-h2, x0+w,y05+h2) + elif el.flag.get('expand_vertical',False): + el_lbrt_inch = (x05-w2, y0, + x05+w2, y1) + elif el.flag.get('expand_horizontal',False): + el_lbrt_inch = (x0, y05-h2, + x1, y05+h2) # XXX more needed else: # top left default This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Matplotlib-checkins mailing list Matplotlib-checkins@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins