Skip to content

[Bug]: Problem with useLocale in ticklabel_format #26838

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
GezaLaTeX opened this issue Sep 20, 2023 · 1 comment
Closed

[Bug]: Problem with useLocale in ticklabel_format #26838

GezaLaTeX opened this issue Sep 20, 2023 · 1 comment

Comments

@GezaLaTeX
Copy link

Bug summary

With french locale settings, the decimal comma is enclosed in braces.

Code for reproduction

import numpy as np
import matplotlib.pyplot as plt

x = np.linspace(0, 1, 10)

fig, ax=plt.subplots()
ax.ticklabel_format(useLocale='True')
ax.plot(x, x**2,'o')
plt.show()

Actual outcome

Figure_1

Expected outcome

Figure_1

Additional information

No response

Operating system

Ubuntu

Matplotlib Version

3.8.0

Matplotlib Backend

Qt5Agg

Python version

3.11.4

Jupyter version

No response

Installation

pip

@rcomer
Copy link
Member

rcomer commented Sep 20, 2023

Thanks for the report @GezaLaTeX! This one has already been reported at #26803 and fixed ready for the first patch release. Note that #26803 (comment) describes a workaround for the meantime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants