# How to specify text in Plots? (font family, font size, etc.)

**URL:** https://discourse.julialang.org/t/how-to-specify-text-in-plots-font-family-font-size-etc/60311
**Category:** General Usage
**Tags:** plotting
**Created:** [April 30, 2021, 1:34pm UTC](https://discourse.julialang.org/t/how-to-specify-text-in-plots-font-family-font-size-etc/60311 "2021-04-30T13:34:44Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![lmiq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lmiq/32/18314_2.png) [@lmiq](https://discourse.julialang.org/u/lmiq)
#### Post date: [April 30, 2021, 2:06pm UTC](https://discourse.julialang.org/t/how-to-specify-text-in-plots-font-family-font-size-etc/60311/2 "2021-04-30T14:06:43Z")

</div>

```julia
julia> plot(title="Test",titlefont=font(20,"Computer Modern"))

```

Take a look at this as well:

> [@Nice fonts with Plots, GR and LaTeXStrings](https://discourse.julialang.org/t/nice-fonts-with-plots-gr-and-latexstrings/60037):
>
> This not a question, just something that might be helpful to others. With Plots 1.12 and GR0.57.4 (at least), and using these options below, one can get a plot with homogeneous fonts (“Computer Modern”) in every element. using Plots using LaTeXStrings plot\_font = "Computer Modern" default(fontfamily=plot\_font, linewidth=2, framestyle=:box, label=nothing, grid=false) scalefontsizes(1.3) plot(sort(rand(10)),sort(rand(10)),label="Legend") plot!(xlabel=L"\textrm{Standard text}(r…

---

_[View the full topic](https://discourse.julialang.org/t/how-to-specify-text-in-plots-font-family-font-size-etc/60311)._
