5
$\begingroup$

I printed out the graph in two ways.

Plot[Sin[x], {x, -3, 3}]
Column[{ "Plot[Sin[x],{x,-3,3}]", Plot[Sin[x], {x, -3, 3}] }]

enter image description here

Comparing the results of the two outputs, the graph size was different. I want to get the same graph size in 'Column'. Why is that? Of course, you can artificially adjust it using 'ImageSize', but I want to get the same size automatically.

enter image description here

GraphicsCoulmn has a normal graph size, but the above string is not aligned to the left.

$\endgroup$

1 Answer 1

8
$\begingroup$

ImageSizeMultipliers

Wrap Column[...] with Style[#, ImageSizeMultipliers -> {1, 1}] &:

Style[#, ImageSizeMultipliers -> {1, 1}] &@
 Column[{"Plot[Sin[x],{x,-3,3}]", Plot[Sin[x], {x, -3, 3}]}]

enter image description here

"Why is the graph size decreasing in Column?"

See ImageSizeMultipliers > > Details:

enter image description here

$\endgroup$
2
  • $\begingroup$ Thank you. It's exactly what I want. $\endgroup$
    – Milk
    Commented Nov 27, 2023 at 11:48
  • 1
    $\begingroup$ Just a small note: ImageSizeMultipliers -> 1 is equivalent to ImageSizeMultipliers -> {1, 1}. $\endgroup$
    – Greg Hurst
    Commented Nov 27, 2023 at 16:00

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.