8
$\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$
3
  • $\begingroup$ The issue is that the text is not implemented as vector graphics. You can make it so, though, using this: mathematica.stackexchange.com/a/88378/38205 $\endgroup$
    – b3m2a1
    Commented Apr 2, 2017 at 3:55
  • 3
    $\begingroup$ Have you tried using something like FontSize->Scaled[.05]? $\endgroup$
    – Carl Woll
    Commented Apr 2, 2017 at 4:51
  • $\begingroup$ Related: (2475), (6661), (34909) $\endgroup$
    – Mr.Wizard
    Commented Apr 2, 2017 at 6:54

1 Answer 1

8
$\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 and acknowledge you have read our privacy policy.

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