JuliaPlots / StatsPlots.jl

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

`xformatter` has no effect in `groupedbar()` when `x`, `y`, and `group` are provided #553

Open jolars opened 4 months ago

jolars commented 4 months ago

It seems that the xformatter attribute has no effect when the x, y, group method is used in groupedbar():

It works here:

using Plots
using StatsPlots

gr()

groupedbar(
  rand(10, 3),
  xformatter=_ -> ""
)

image

But not here:

ctg = repeat(["A", "B"], inner=5)
nam = repeat("G" .* string.(1:5), outer=2)

groupedbar(
  nam,
  rand(5, 2),
  group=ctg,
  xformatter=_ -> "",
)

image

To clarify, the G1, G2, etc labels should not be shown in the second case I think.