Help with disabling latexification in Plots.jl's ticks (pyplot)


I don’t know how to disable latexification of strings in Plots.jl xticks argument. The point is that if I run the script:

using Plots
strs = ["a_1", "a_3", "a_3", "a_4"]
heatmap(rand(Uniform(), 5,5), xticks = (1:4, strs))

I get an heatmap with the xticks shown as a_1, \, a_2, \, a_3, \, a_4 , whereas I would like to see a_1, a_2, a_3, a_4.

Is it possible? If so, how?

PS: As you may notice, the colorbar bug noted in this issue is still present. Do you know any workaround?

Thanks in advance


seems to be an issue with pyplot. Can’t reproduce with default backend GR

1 Like

You may try the keyword

plot(..., ticks = :default)

to disable custom ticks