Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jolars opened this issue Apr 4, 2024 · 0 comments
Open

Comments

@jolars
Copy link

jolars commented Apr 4, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant