StatsPlots.jl icon indicating copy to clipboard operation
StatsPlots.jl copied to clipboard

x-labels in groupedbars are taken as math expressions

Open alfaromartino opened this issue 2 years ago • 0 comments

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 "$ $"

alfaromartino avatar Jul 18 '22 01:07 alfaromartino