From: <md...@us...> - 2010-11-22 14:01:27
|
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. |