Mercurial > hg > may
view yetilab/plot/test/test_plot.yeti @ 127:9baaaf37a008
Stacked charts that actually work
author | Chris Cannam |
---|---|
date | Sat, 20 Apr 2013 17:28:10 +0100 |
parents | 0f362d1de06e |
children | 759edd0d02ce |
line wrap: on
line source
module yetilab.plot.test.test_plot; p = load yetilab.plot.plot; { compare } = load yetilab.test.test; [ "stack": \( compare (p.stack [ "Conrad", "Alice", "Bob" ] [ "Jan", "Feb", "Mar" ] [ "Alice": [ "Jan": 3, "Mar": 2 ], "Bob": [ "Jan": 0, "Feb": 1, "Mar": 4 ], "Conrad": [ "Feb": 2, "Mar": 1 ] ]) [ "Conrad": [ "Jan": { y0 = 0, y1 = 0 }, "Feb": { y0 = 0, y1 = 2 }, "Mar": { y0 = 0, y1 = 1 } ], "Alice": [ "Jan": { y0 = 0, y1 = 3 }, "Feb": { y0 = 2, y1 = 2 }, "Mar": { y0 = 1, y1 = 3 } ], "Bob": [ "Jan": { y0 = 3, y1 = 3 }, "Feb": { y0 = 2, y1 = 3 }, "Mar": { y0 = 3, y1 = 7 } ] ] ), ] is hash<string, () -> boolean>;