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

The setting of axis range in Geom.subplot_grid does not work #1597

Open
dongzhiming opened this issue Oct 2, 2022 · 2 comments
Open

The setting of axis range in Geom.subplot_grid does not work #1597

dongzhiming opened this issue Oct 2, 2022 · 2 comments

Comments

@dongzhiming
Copy link

As you can see by running the following code, Coord.cartesian(ymin=1.5, ymax=2.6) does not work.

using Gadfly, DataFrames

df = DataFrame(:AAA=>[2.2, 1.8, 2.0, 2.3, 1.8, 1.9],
               :BBB=>[1, 2, 3, 1, 2, 3],
               :CCC=>["#", "#", "#", "&", "&", "&"])

p = Gadfly.plot(df, x=:CCC, y=:AAA, xgroup=:BBB, color=:CCC, 
Geom.subplot_grid(Geom.bar(position=:dodge), Coord.cartesian(ymin=1.5, ymax=2.6)),
Gadfly.Theme(alphas=[1.0], discrete_highlight_color=identity))

image

@bjarthur
Copy link
Member

bjarthur commented Oct 2, 2022

i can confirm that ymin is ignored, but curiously ymax works, and both work for Geom.bar without Geom.subplot_grid.

@Mattriks
Copy link
Member

See also #730

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

3 participants