annotate yetilab/plot/test/test_plot.yeti @ 128:c5dd12a15993

Start adding text labels
author Chris Cannam
date Sat, 20 Apr 2013 19:12:04 +0100
parents 9baaaf37a008
children 759edd0d02ce
rev   line source
Chris@125 1 module yetilab.plot.test.test_plot;
Chris@125 2
Chris@125 3 p = load yetilab.plot.plot;
Chris@125 4
Chris@125 5 { compare } = load yetilab.test.test;
Chris@125 6
Chris@125 7 [
Chris@125 8
Chris@125 9 "stack": \(
Chris@125 10 compare
Chris@125 11 (p.stack
Chris@125 12 [ "Conrad", "Alice", "Bob" ]
Chris@125 13 [ "Jan", "Feb", "Mar" ]
Chris@125 14 [ "Alice": [ "Jan": 3, "Mar": 2 ],
Chris@125 15 "Bob": [ "Jan": 0, "Feb": 1, "Mar": 4 ],
Chris@125 16 "Conrad": [ "Feb": 2, "Mar": 1 ] ])
Chris@127 17 [ "Conrad": [ "Jan": { y0 = 0, y1 = 0 },
Chris@127 18 "Feb": { y0 = 0, y1 = 2 },
Chris@127 19 "Mar": { y0 = 0, y1 = 1 } ],
Chris@127 20 "Alice": [ "Jan": { y0 = 0, y1 = 3 },
Chris@127 21 "Feb": { y0 = 2, y1 = 2 },
Chris@127 22 "Mar": { y0 = 1, y1 = 3 } ],
Chris@127 23 "Bob": [ "Jan": { y0 = 3, y1 = 3 },
Chris@127 24 "Feb": { y0 = 2, y1 = 3 },
Chris@127 25 "Mar": { y0 = 3, y1 = 7 } ] ]
Chris@125 26 ),
Chris@125 27
Chris@125 28 ] is hash<string, () -> boolean>;
Chris@125 29