Skip to content

hidedecorations! functionality not working #4701

Answered by asinghvi17
grolicus asked this question in Q&A
Discussion options

You must be logged in to vote

Hey, welcome to Makie!

lines(fig[1, 1], arrLeftDown, color = (255,0,0))
ax = Axis(fig[1, 1], title = "Axis 1")

This is creating two axes - one is implicitly created from the lines plot, and the other is created explicitly by calling Axis. You have two options to solve this:

  • Create the axis explicitly, as in
ax = Axis(fig[1, 1]; title = "Axis 1")
lp = lines!(ax, arrLeftDown; color = RGBf(1,0,0))
  • Use the implicitly created axis and do not create another axis
ax, lp = lines(fig[1, 1], arrLeftDown, color = RGBf(1,0,0))

Then hidedecorations! will only have a single axis to work on. What's happening now is that you're hiding the explicitly created axis, but not the one which is created by l…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by grolicus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants