annotate yetilab/plot/test/test_plot.yeti @ 125:0f362d1de06e

Toward stacked charts
author Chris Cannam
date Sat, 20 Apr 2013 12:14:40 +0100
parents
children 9baaaf37a008
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@125 17 [ "Conrad": [ "Jan": 0, "Feb": 2, "Mar": 1 ],
Chris@125 18 "Alice": [ "Jan": 3, "Feb": 2, "Mar": 3 ],
Chris@125 19 "Bob": [ "Jan": 3, "Feb": 3, "Mar": 7 ] ]
Chris@125 20 ),
Chris@125 21
Chris@125 22 ] is hash<string, () -> boolean>;
Chris@125 23