# Plots (PyPlot) - Set legend title font size

**URL:** <https://discourse.julialang.org/t/plots-pyplot-set-legend-title-font-size/31763>\
**Category:** Visualization\
**Created:** [December 2, 2019, 4:07pm UTC](https://discourse.julialang.org/t/plots-pyplot-set-legend-title-font-size/31763 "2019-12-02T16:07:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![timmm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/timmm/32/6760_2.png) [@timmm](https://discourse.julialang.org/u/timmm)\
**Post date:** [December 2, 2019, 4:07pm UTC](https://discourse.julialang.org/t/plots-pyplot-set-legend-title-font-size/31763/1 "2019-12-02T16:07:56Z")

</div>

Hi,  
When using Plots (PyPlot backend) I cant seem to control the font size of the legends title:

```julia
using Plots, LaTeXStrings
pyplot()

upscale = 2 #Xx upscaling in resolution
p=plot( )
fntsm = Plots.font("sans-serif", pointsize=round(10.0*upscale))
fntlg = Plots.font("sans-serif", pointsize=round(14.0*upscale))

plot!(legendtitle="this legend title font is too small")
default(titlefont=fntlg, guidefont=fntlg, tickfont=fntsm, legendfont=fntsm)
default(size=(600*upscale,400*upscale))

scatter!(Plots.fakedata(50, 5))

plot!(title=("Graph title"))
plot!(xlabel =latexstring("\$x\$ label"))
plot!(ylabel =latexstring("\$y\$ label"))

```

 ![ExampleOfSmallFont](https://global.discourse-cdn.com/julialang/original/3X/4/3/439533be3bd1a293855002e1d5849cab0695bd14.png)

Any ideas?

Cheers,  
Tim

---

<div class="post-metadata">

**Author:** ![Christopher\_Fisher](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/christopher_fisher/32/26132_2.png) [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Post date:** [January 16, 2021, 2:37pm UTC](https://discourse.julialang.org/t/plots-pyplot-set-legend-title-font-size/31763/2 "2021-01-16T14:37:10Z")

</div>

Hi all-

I came across this old thread while trying to figure out how to change the legend title size. Is there a solution for this? Thank you.

---

<div class="post-metadata">

**Author:** ![Christopher\_Fisher](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/christopher_fisher/32/26132_2.png) [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Post date:** [January 16, 2021, 2:40pm UTC](https://discourse.julialang.org/t/plots-pyplot-set-legend-title-font-size/31763/3 "2021-01-16T14:40:10Z")

</div>

I was trying to use `legendtitle = font(10)`, but just came across `legendtitlefontsize = 10`, which works. Feel free to mark as solution.
