plotly.py icon indicating copy to clipboard operation
plotly.py copied to clipboard

implement Plotly.js’ localization features in Plotly.py

Open lasinludwig opened this issue 2 years ago • 4 comments

Forum Tread: https://community.plotly.com/t/how-to-get-plotly-to-use-the-set-locale/43499

TLDR: You can't get Plotly graphs to show in any other language than English (e.g. axis labels for a date axis). The only workaround is to convert every label into a string, but then you loose some important features like tickstops.

The solution would be to get Plotly.py to use the set locale (e.g. locale.setlocale(locale.LC_ALL, "") to set it to the locale of the machine it's running on) - which apparently works in Plotly.js, but not Plotly.py.

lasinludwig avatar Feb 03 '23 07:02 lasinludwig

Augusto Herrmann put a good write-up in the topic here: https://community.plotly.com/t/how-to-get-plotly-to-use-the-set-locale/43499/15?u=fludwig

Unfortunately, @nicolaskruchten confirmed that this is a problem: https://community.plotly.com/t/how-to-get-plotly-to-use-the-set-locale/43499/16?u=fludwig

lasinludwig avatar Feb 15 '23 08:02 lasinludwig

Any updates regarding implementation?

dsvanidze avatar May 13 '24 12:05 dsvanidze

Hi all, I'm coming across this open issue as I'm also looking for this feature! Is anyone working on this? :)

leo2r avatar Oct 04 '24 13:10 leo2r

We are currently trying to get a major release finished for the end of October - we will be going through backlog and re-prioritizing after that, and I hope we'll be able to put some effort into this one. (Unfortunately, I also hope we'll be able to put effort into a couple of hundred others...) Thanks - @gvwilson

gvwilson avatar Oct 08 '24 12:10 gvwilson

We are currently trying to get a major release finished for the end of October - we will be going through backlog and re-prioritizing after that, and I hope we'll be able to put some effort into this one. (Unfortunately, I also hope we'll be able to put effort into a couple of hundred others...) Thanks - @gvwilson

Keep up the great work!

leo2r avatar Oct 30 '24 08:10 leo2r