2

Is there any way to label frames in latex like fashion which (label text) also scale appropriately on zooming the plot?

Sluth
  • 95
  • 6

1 Answers1

4

You can use Scaled for the FontSize, either in Style or BaseStyle. You may need additional ImagePadding to make room for the labels.

Plot[Sinc[x], {x, 0, 10}
 , Axes -> False
 , Frame -> True
 , FrameLabel -> "Wave Motion"
 , BaseStyle -> {FontSize -> Scaled[0.05]}
 , ImagePadding -> {{50, 10}, {60, 10}}
]

enter image description here

The same plot rescaled by corner dragging:

enter image description here

enter image description here

A generic example of font scaling:

Also see:

The earliest use on Stack Exchange of FontSize -> Scaled that I can find is by belisarius:

Mr.Wizard
  • 271,378
  • 34
  • 587
  • 1,371