Mercurial > hg > may
changeset 130:aef0fbc65f16
Text spacing
author | Chris Cannam |
---|---|
date | Sat, 20 Apr 2013 22:01:45 +0100 |
parents | 759edd0d02ce |
children | 70eaf374a1b5 |
files | yetilab/plot/plot.yeti |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/yetilab/plot/plot.yeti Sat Apr 20 21:07:52 2013 +0100 +++ b/yetilab/plot/plot.yeti Sat Apr 20 22:01:45 2013 +0100 @@ -137,7 +137,7 @@ plotStacked keys xkeys unit values normalised = (quality = Quality#Nicest; - quality#setAnimated(false); +// quality#setAnimated(false); chart = new Chart(quality); scene = chart#getScene(); stacked = stack keys xkeys values normalised; @@ -153,20 +153,20 @@ poly#setFaceDisplayed(true); poly#setColor(colour); poly); + var ty = 0; for keys do k: ranges = stacked[k]; var x = 0; - var ty = 0; c = Color#random(); for xkeys do xk: rect = newRect x ranges[xk].y0 ranges[xk].y1 z c; scene#add(rect); x := x + 1; done; - text = new DrawableTextBitmap(k, new Coord3d(0, z, ty), c); + text = new DrawableTextBitmap(k, new Coord3d(-5, z, ty), c); scene#add(text); z := z - 1; - ty := ty + 10; + ty := ty + 0.1; done; chart#getView()#setViewPoint(new Coord3d(-pi/2, 0, 0)); axes = chart#getAxeLayout();