A
A
Alexey Smirnov2018-08-02 00:10:39
Python
Alexey Smirnov, 2018-08-02 00:10:39

How to draw a graph with Russian text in Plot.ly?

I use Plot.ly to draw graphs. And I need to create labels for the Y axes in Russian on these charts .

plot_ly(x = data[,1], 
        y = data[,2], 
        mode = 'lines'
       )%>%
       layout(
           font = list(family = "Times New Roman", size = 14, color = "#000"),    
           yaxis = list(title = "Название оси на русском языке")
       )


But when I set the text of the Y-axis in Russian, I get kryakozyaby .
5b62218a319d0507478943.png

How to make Russian text appear normally near the chart axis?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Sorokin, 2018-08-02
@ivandest

It looks like an encoding problem.
What encoding do you have in your project?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question