# Changing font family in Plots using pythonplot() (globally)

**URL:** <https://discourse.julialang.org/t/changing-font-family-in-plots-using-pythonplot-globally/135679>\
**Category:** General Usage\
**Tags:** plots, fonts, pythonplot\
**Created:** [February 16, 2026, 2:51pm UTC](https://discourse.julialang.org/t/changing-font-family-in-plots-using-pythonplot-globally/135679 "2026-02-16T14:51:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![maltee1](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/maltee1/32/204977_2.png) [@maltee1](https://discourse.julialang.org/u/maltee1)\
**Post date:** [February 16, 2026, 2:51pm UTC](https://discourse.julialang.org/t/changing-font-family-in-plots-using-pythonplot-globally/135679/1 "2026-02-16T14:51:45Z")

</div>

Specifically to “Latin Modern Roman”, to have it match the LaTeX document the plots will be used in. This seems like a simple issue, just set

```julia-auto
const PLOTS_DEFAULTS = Dict(
    :theme=>:default,
    :fontfamily => "Latin Modern Roman")

```

in startup.jl.

Unfortunately this doesn’t work properly. For ticklabels to work, the ticklabels must be set manually. that’s not an option, I have a lot of plots to do. I haven’t figured out how to make it work for latex-formatted code.

---

<div class="post-metadata">

**Author:** ![Paul\_Soderlind](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/paul_soderlind/32/1753_2.png) [@Paul\_Soderlind](https://discourse.julialang.org/u/Paul_Soderlind)\
**Post date:** [February 16, 2026, 3:01pm UTC](https://discourse.julialang.org/t/changing-font-family-in-plots-using-pythonplot-globally/135679/2 "2026-02-16T15:01:39Z")

</div>

I have something like this in my code to use STIX

```julia-auto
matplotlib = pyimport("matplotlib")
rc = matplotlib."rcParams"
rc["mathtext.fontset"] = "stix"
rc["font.family"] = "STIXGeneral"

```
