Revision: 8807 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8807&view=rev Author: mdboom Date: 2010-11-22 14:01:21 +0000 (Mon, 22 Nov 2010)
Log Message: ----------- Don't add horizontal padding for overline -- submitted by Marshall Ward Modified Paths: -------------- trunk/matplotlib/lib/matplotlib/mathtext.py Modified: trunk/matplotlib/lib/matplotlib/mathtext.py =================================================================== --- trunk/matplotlib/lib/matplotlib/mathtext.py 2010-11-18 13:29:00 UTC (rev 8806) +++ trunk/matplotlib/lib/matplotlib/mathtext.py 2010-11-22 14:01:21 UTC (rev 8807) @@ -2863,13 +2863,11 @@ height = body.height - body.shift_amount + thickness * 3.0 depth = body.depth + body.shift_amount - # Put a little extra space to the left and right of the body - padded_body = Hlist([Hbox(thickness * 2.0), - body, - Hbox(thickness * 2.0)]) + # Place overline above body rightside = Vlist([Hrule(state), Fill(), - padded_body]) + Hlist([body])]) + # Stretch the glue between the hrule and the body rightside.vpack(height + (state.fontsize * state.dpi) / (100.0 * 12.0), depth, 'exactly') This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Matplotlib-checkins mailing list Matplotlib-checkins@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins