Hi empet,
thank you so much for your response. Unfortunately I still don’t understand it. That’s pretty much what I do…
In the beginning of my code, I do the following to make sure I got the right locale:
print(datetime.datetime.today().strftime('%A'))
locale.setlocale(locale.LC_ALL, '')
print(datetime.datetime.today().strftime('%A'))
This gives me the weekday first in english and then in my language, so I know I got that part right. Then I import my data from excel to get my dataframe (time series). Then I use the following to format the x-axis depending on the zoom level:
tickformatstops=[
...
dict(dtickrange=[3600000, 86400000], value="%a %d. %b %H:%M"),
dict(dtickrange=["M1", "M12"], value="%b '%y"),
dict(dtickrange=["M12", None], value="%Y")
Which should use the setting in locale to display stuff like the day of the week or the month, but it’s always English. For example, according to the documentation, %a
should give me the “Weekday as locale’s abbreviated name”.
Does this make sense to you? Maybe you can find my mistake in this?