JuliaPlots / StatsPlots.jl

Statistical plotting recipes for Plots.jl
Other
436 stars 88 forks source link

x-labels in groupedbars are taken as math expressions #509

Open alfaromartino opened 2 years ago

alfaromartino commented 2 years ago

The issue shows up under pgfplotsx

MWE

using StatsPlots; pgfplotsx()

xx = repeat(["This is a name","This is another name", "and a 3rd name"], 4)
variable = repeat(["category 1","category 2"], 6)
value = rand(12)

groupedbar(xx, value, group = variable)

Output is plot_45

When you open the file in tex, it show that all the names are expressed within "$ $"