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

maltee1
Mon, 16 Feb 2026 14:51:45 +0000
General Usage

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

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.

2 posts - 2 participants