Plots (PyPlot) - Set legend title font size

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

using Plots, LaTeXStrings

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)

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

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

Any ideas?


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.

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