8
$\begingroup$

I often use Grid, Row and Column and have used them to arrange multiple Graphics objects. Then I recently found GraphicsGrid, GraphicsRow, GraphicsColumn, but I don't understand what they can do that is difficult or impossible to do using Grid, Row, Column. When are the special forms for Graphics needed?

$\endgroup$
  • 5
    $\begingroup$ Here is simple comparison. $\endgroup$ – xyz Aug 8 '16 at 1:30
1
$\begingroup$

GraphicsRow produces a Graphics output, while Row does not; the same applies to columns and grids. This means that GraphicsRow can be altered with the options available in Plot etc. For example, let's take

plots = Table[Plot[Sin[x + i π/2], {x, 0, 2 π}, Frame -> True], {i, 0, 1}]

Then one can do e.g.

grow = GraphicsRow[plots, ImageSize -> Full]
Head@grow

Graphics

where the ImageSize option actually makes an effect, while

row = Row[plots, ImageSize -> Full]
Head@row

Row

does not.

I'm quite sure that the formatting of Row can also be performed in other ways, but in case of GraphicsRow it's straightforward. 'Row' can handle any type of object, while GraphicsRow is designed explicitly for Graphics.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.