6
$\begingroup$

I'm using Mathematica to create complex figures. I would like to work them out on small size images and then, just before exporting them, increase the ImageSize. But I find that when I change the ImageSize, the Text remains the same size and so the image does not resize proportionally. Is there a strategy for overcoming this?

Small Image Large Image

The first image has a small ImageSize and the second image has a large ImageSize.

$\endgroup$
7
$\begingroup$

In Mathematica 10.1 this scales well for me:

Graphics[{
  {EdgeForm[{Thickness[0.01], Black}], Orange, Disk[]},
  {Thickness[0.015], Arrowheads[0.08], Arrow[{{0, 0}, {1, 1} Sqrt[2]/2`}]},
  {FontSize -> Scaled[0.05], Text["R \[LongEqual] 1", {0.5, 0.2}]}
}]

enter image description here

enter image description here

The critical detail being FontSize -> Scaled[0.05] which I see is exactly what Carl Woll already proposed in a comment. I also used Thickness rather than AbsoluteThickness for the EdgeForm and Arrow so that these elements scale as well.

Other examples:

$\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.