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

Can't turn of the grid of two axis simultaneously #2846

Closed
pabloemontes opened this issue Apr 6, 2023 · 2 comments · Fixed by #3363
Closed

Can't turn of the grid of two axis simultaneously #2846

pabloemontes opened this issue Apr 6, 2023 · 2 comments · Fixed by #3363
Assignees
Labels
documentation good first issue This should come with some instructions!

Comments

@pabloemontes
Copy link

The following code does not give the desired output

using CairoMakie

Fig = Figure()

ax1 = Axis(Fig[1, 1], title = "Axis 1")
ax2 = Axis(Fig[1, 2], title = "Axis 2")

hidedecorations!(ax1, grid = false)
hidexdecorations!(ax2, grid = false)

Fig

I expect this to give me two axis side by side with no grids, but both grids appear. If by the contrary one of the grids is set to true, then only one grid appears and the other one is hidden.

@asinghvi17
Copy link
Member

In this context, false means not to hide it. You might have to set every other kwarg to false if you only want to hide the grid.

That isn't reflected in the function docs, though, so we should add that.

@asinghvi17 asinghvi17 self-assigned this Apr 6, 2023
@asinghvi17 asinghvi17 added the good first issue This should come with some instructions! label Apr 12, 2023
@pabloemontes
Copy link
Author

Oh now I get it, thank you for your reply

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation good first issue This should come with some instructions!
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants