# Change decimal separator when plotting with PyPlot (or PythonPlot)

**URL:** https://discourse.julialang.org/t/change-decimal-separator-when-plotting-with-pyplot-or-pythonplot/93367
**Category:** General Usage
**Tags:** question, pyplot, locale
**Created:** [January 22, 2023, 5:15pm UTC](https://discourse.julialang.org/t/change-decimal-separator-when-plotting-with-pyplot-or-pythonplot/93367 "2023-01-22T17:15:01Z")
**Posts on this page:** 1
**Showing post:** 3

<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: [January 22, 2023, 7:25pm UTC](https://discourse.julialang.org/t/change-decimal-separator-when-plotting-with-pyplot-or-pythonplot/93367/3 "2023-01-22T19:25:25Z")

</div>

Following @Palli’s advice on Windows 11, produces:

```julia
using PythonPlot, PythonCall

pyplot.rcParams["axes.formatter.use_locale"] = "True"
loc = pyimport("locale")
loc.setlocale(loc.LC_NUMERIC, "de_DE")
x = -1000:100:20000
plot(x, atanh.(x/20e3))

```

![PythonPlot_commas_dots_locale](https://global.discourse-cdn.com/julialang/original/3X/0/6/066f12fa25e98135279f3510cc7808e354fef53b.png)

Linking also this [related thread](https://discourse.julialang.org/t/decimal-commas-instead-of-points/67446).

---

_[View the full topic](https://discourse.julialang.org/t/change-decimal-separator-when-plotting-with-pyplot-or-pythonplot/93367)._
