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

Is it possible to set the font family to Arial for axes, legends and labels globally?

I found out about

  Legending`LegendContainer -> (Framed@ Append[#, FontFamily -> "Arial"] &)

for legends, but now I am trying to set the axis labels.

share|improve this question
up vote 8 down vote accepted

In addition to AxesStyle etc. which can be set for specific functions such as Plot with e.g. SetOptions[Plot, ...] there are more global FrontEnd settings by Box type. These are accessible in the Option Inspector:

Mathematica graphics

From here we can set options that apply to multiple plot functions, and in fact all Graphics objects that do not override the defaults. You can see in the screen shot that there are options for a variety of FrontEnd graphics Box types, and categories for "Graphics3D" and "Specific" Box Options as well.

You can also do this by command, e.g.:

  GraphicsBoxOptions -> {AxesStyle -> Directive[FontFamily -> "Arial"]}

Change $FrontEndSession to $FrontEnd to make the style persistent.

share|improve this answer
p.s. see also the documentation for DefaultAxesStyle, and other symbols in Names["Default*Style"]. – Mr.Wizard Sep 18 '12 at 19:14

Use AxesStyle with Directive

Plot[Sin[x], {x, -Pi, Pi}, AxesStyle -> Directive[Red, 15, FontFamily -> "Arial"]]

To set things globally, use SetOptions

  AxesStyle -> Directive[Red, FontFamily -> "Arial"], 
  LabelStyle -> Directive[Blue, FontFamily -> "Arial"]];

Plot[Sin[x], {x, -Pi, Pi}, PlotLabel -> "my plot",AxesLabel -> {"x", "y"}]

enter image description here

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.