From 0e27b0727d71747c11c6b4d4778872d47bc2f0e5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20Wobst?= Date: Wed, 13 Jul 2005 13:31:15 +0000 Subject: [PATCH] shink distance between texts (it didn't look nice) git-svn-id: https://pyx.svn.sourceforge.net/svnroot/pyx/trunk/pyx@2278 069f4177-920e-0410-937b-c2a4a81bcd90 --- examples/text/halign.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/examples/text/halign.py b/examples/text/halign.py index b04636ba..edc5cc2e 100644 --- a/examples/text/halign.py +++ b/examples/text/halign.py @@ -11,17 +11,17 @@ from pyx import * c = canvas.canvas() c.set([style.linestyle.dotted]) -c.stroke(path.line(-5, 0, -5, 8)) -c.stroke(path.line(0, 0, 0, 8)) -c.stroke(path.line(5, 0, 5, 8)) +c.stroke(path.line(-5, 0, -5, 4)) +c.stroke(path.line(0, 0, 0, 4)) +c.stroke(path.line(5, 0, 5, 4)) -c.text(-5, 8, r"Hello, world!", [text.halign.boxleft]) -c.text(0, 8, r"Hello, world!", [text.halign.boxcenter]) -c.text(5, 8, r"Hello, world!", [text.halign.boxright]) +c.text(-5, 4, r"Hello, world!", [text.halign.boxleft]) +c.text(0, 4, r"Hello, world!", [text.halign.boxcenter]) +c.text(5, 4, r"Hello, world!", [text.halign.boxright]) -c.text(0, 6, r"Hello,\par world!", [text.parbox(2.5), text.halign.boxcenter, text.halign.flushleft]) -c.text(0, 4, r"Hello,\par world!", [text.parbox(2.5), text.halign.boxcenter, text.halign.flushcenter]) -c.text(0, 2, r"Hello,\par world!", [text.parbox(2.5), text.halign.boxcenter, text.halign.flushright]) +c.text(0, 3, r"Hello,\par world!", [text.parbox(2.5), text.halign.boxcenter, text.halign.flushleft]) +c.text(0, 2, r"Hello,\par world!", [text.parbox(2.5), text.halign.boxcenter, text.halign.flushcenter]) +c.text(0, 1, r"Hello,\par world!", [text.parbox(2.5), text.halign.boxcenter, text.halign.flushright]) c.text(-5, 0, r"Hello,\par world!", [text.parbox(2.5), text.halign.left]) c.text(0, 0, r"Hello,\par world!", [text.parbox(2.5), text.halign.center]) -- 2.11.4.GIT