Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

If I execute MatrixPlot@IdentityMatrix@100, the result is a good size. However, if I evaluate

Grid[{{200!}, {MatrixPlot@IdentityMatrix@100}}, ItemSize -> Automatic]

the MatrixPlot is much smaller, even when the page is wide. How can I make the MatrixPlot appear at its original size in the Grid? I'd prefer not to hard-code the size.

this picture

This picture shows that the second MatrixPlot is too small.

share|improve this question
Automatic != Automatic so why not just use ImageSize for MatrixPlot? – Kuba Oct 25 '13 at 6:19
up vote 5 down vote accepted

If you set ImageSizeMultipliers -> 1 then the graphics will not be downsized when appear inside list-like constructs:

     Grid[{{200!}, {MatrixPlot@IdentityMatrix@100}}, ItemSize -> Automatic],   
     ImageSizeMultipliers -> 1]


Grid[{{200!}, {MatrixPlot@IdentityMatrix@100}}, ItemSize -> Automatic,
  BaseStyle -> ImageSizeMultipliers -> 1]


Grid[{{200!}, {MatrixPlot@IdentityMatrix@100}}, ItemSize -> Automatic,
  ItemStyle -> ImageSizeMultipliers -> 1]

give the same output.

share|improve this answer

Although he puts it somewhat obliquely, Kuba is giving you good advice in his comment. When you place a graphics object into a Grid or Column construct and care even a little about its size, explicitly make the setting of the ImageSize option in the graphics object.


share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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