I am using this code to plot a graph, and I am trying to make the font of the legend bigger.

ListLogLogPlot[{Sort[moby]}, PlotRange -> Full, Joined -> True, 
    PlotLegend -> {"Moby Dick"}, LegendPosition -> {0.30, -0.20}, LegendShadow -> None, 
    LegendBorder -> None, PlotStyle -> {Dashed}, BaseStyle -> {FontSize -> 14}]

This only seems to change the font size of the labels on my axis. But I also want the legend to be size 14.


Try using Style in the option values for PlotLegend->{...}. For example:

  Plot[{Sin[x], Cos[x]}, {x, 0, 2 Pi}, 
  PlotLegend -> {Style["sine", Red, Bold, 18], "cosine"},  
  LegendLabel -> None]


enter image description here

  • 3
    $\begingroup$ Is there also a way to do the same thing for all entries in the legend at once, you think? I have a plot with five function in the same graph, and there must be a simpler way than using Style five times. $\endgroup$
    – Jelle
    May 8 '13 at 15:43

In case you have multiple legends, just use an explicit pure function:

PlotLegend -> Style[#, Red, Bold, 18] & /@ {"apple", "pear", "grape"}
  • $\begingroup$ minor comment - you need to use PlotLegends after v9 and wrap the above pure function in ( )'s or else you get an error ie, PlotLegends -> ( Style[#, Red, Bold, 18] & /@ {"apple", "pear", "grape"} ) $\endgroup$
    – Joe
    Mar 27 '19 at 20:30

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.