3
$\begingroup$

I am trying to remove as much of the white space above and below the following image produced by:

GraphicsRow[{plotA, plotB}, ImagePadding -> {{Automatic, Automatic}, {0, 0}}]

Resulting in:

enter image description here

As you can see, there is a lot of white space, above and below the image, which I have tried to remove using ImagePadding, however, to no avail.

Can someone advise me on how to do this?

Best,

Ben

$\endgroup$
1
  • $\begingroup$ That doesn't seem to work. Thanks though. $\endgroup$
    – ben18785
    Dec 4, 2014 at 16:20

1 Answer 1

5
$\begingroup$
plotA = plotB = ContourPlot[Cos[x] + Cos[y], {x, 0, 4 Pi}, {y, 0, 4 Pi}, 
                ImagePadding -> {{Automatic, Automatic}, {None, None}}];
GraphicsRow[{plotA, plotB}, Spacings -> 0]

Mathematica graphics

Or

plotA = ContourPlot[Cos[x] + Cos[y], {x, 0, 4 Pi}, {y, 0, 4 Pi}, 
   ImagePadding -> {{Automatic, Automatic}, {None, None}}];
plotB = ContourPlot[Cos[x] + Cos[y], {x, 0, 4 Pi}, {y, 0, 4 Pi}, 
   ImagePadding -> {{Automatic, Automatic}, {None, None}},
   FrameTicks -> {{None, All}, {None, All}}];
GraphicsRow[{plotA, plotB}, Spacings -> 0]

Mathematica graphics

$\endgroup$
1
  • $\begingroup$ That's great. Thanks. $\endgroup$
    – ben18785
    Dec 4, 2014 at 16:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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