// (Short, but the operators are difficult to discover if you // don't know them; Also we may need richer layout combinators)
(plot.Candles(data1) <|>plot.Stock(data2)) <->
(plot.Stock(data3) <|>plot.Candles(data4))
// (Longer and a bit ugly because of the indentation, but conceptually // simple and we can use comprehensions to generate charts)plot.Subplot
( 2, 2,
[ plot.Candles(data1)
plot.Stock(data2)
plot.Stock(data3)
plot.Candles(data4) ])
// (Uses tricky features, but it looks quite nice and // we can use comprehensions (but cannot just write a list))plot.Subplot(2, 2) {
yieldplot.Candles(data1)
yieldplot.Stock(data2)
yieldplot.Stock(data3)
yieldplot.Candles(data4)
}