Skip to content

[Bug]: Problem with useLocale in ticklabel_format #26838

Closed
@GezaLaTeX

Description

@GezaLaTeX

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions