- graphics_array(array, n=None, m=None)
- ``graphics_array`` take a list of lists (or tuples) of
graphics objects and plots them all on one canvas (single plot).
INPUT:
- ``array`` - a list of lists or tuples
- ``n, m`` - (optional) integers - if n and m are
given then the input array is flattened and turned into an n x m
array, with blank graphics objects padded at the end, if
necessary.
EXAMPLE: Make some plots of `\sin` functions::
sage: f(x) = sin(x)
sage: g(x) = sin(2*x)
sage: h(x) = sin(4*x)
sage: p1 = plot(f,-2*pi,2*pi,rgbcolor=hue(0.5))
sage: p2 = plot(g,-2*pi,2*pi,rgbcolor=hue(0.9))
sage: p3 = parametric_plot((f,g),0,2*pi,rgbcolor=hue(0.6))
sage: p4 = parametric_plot((f,h),0,2*pi,rgbcolor=hue(1.0))
Now make a graphics array out of the plots; then you can type
either: ``ga.show()`` or ``ga.save()``.
::
sage: graphics_array(((p1,p2),(p3,p4)))
Here we give only one row::
sage: p1 = plot(sin,-4,4)
sage: p2 = plot(cos,-4,4)
sage: g = graphics_array([p1, p2]); print g
Graphics Array of size 1 x 2
sage: g.show()