# Computer modern font in every element of plot (PyPlot)

**URL:** <https://discourse.julialang.org/t/computer-modern-font-in-every-element-of-plot-pyplot/71030>\
**Category:** Visualization\
**Tags:** pyplot, fonts\
**Created:** [November 5, 2021, 10:25pm UTC](https://discourse.julialang.org/t/computer-modern-font-in-every-element-of-plot-pyplot/71030 "2021-11-05T22:25:08Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Post date:** [November 6, 2021, 8:18am UTC](https://discourse.julialang.org/t/computer-modern-font-in-every-element-of-plot-pyplot/71030/4 "2021-11-06T08:18:48Z")

</div>

Setting this line to `true`:

```julia
PyPlot.matplotlib[:rc]("text", usetex=true)

```

Seems to fix the issue on external plot window:  
 ![PyPlot_CM_ComputerModern_font](https://global.discourse-cdn.com/julialang/original/3X/0/9/09a4d7190dec9067ef9e4826b1909b5f81a8a52f.png)

Not sure what you mean by inline plot but [linking this thread](https://discourse.julialang.org/t/changing-font-style-for-latex-rendering-using-pyplot/5910/11), which is rich in related info.

---

_[View the full topic](https://discourse.julialang.org/t/computer-modern-font-in-every-element-of-plot-pyplot/71030)._
