With Gadfly it is possible to combine plots in a grid and save the combined plot in a file:
using Gadfly, Compose
x=1:0.1:5;
grid = Array(Compose.Context, (2, 2));
grid[1,1] = render(plot( x=x, y = x, Geom.line));
grid[1,2] = render(plot( x=x, y = x.^2, Geom.line));
grid[2,1] = render(plot( x=x, y = log(x), Geom.line));
grid[2,2] = render(plot( x=x, y = sqrt(x), Geom.line));
draw(SVG("example.svg", 100mm, 100mm), gridstack(grid));
I wrote a function that creates such a plot and this function creates a file. It is a little bit unintuitive for someone who wants to use this function why exactly this function creates a file, while the results of all the other plotting functions with single plots are displayed directly in the browser.
So, is it possible to call a function (in place of draw
?) such that the combined plot defined by the grid is displayed directly in the browser like "normal" plots?