-
Notifications
You must be signed in to change notification settings - Fork 194
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
Bug with Makie extension #3727
Comments
Not sure but I'm guessing to fix this we have to overload |
What if you make the axis first? |
Actually that worked! using Oceananigans, CairoMakie
underlying_grid = RectilinearGrid(size = (250, 125),
x = (-1000e3, 1000e3),
z = (-2e3, 0),
halo = (4, 4),
topology = (Periodic, Flat, Bounded))
bottom(x) = - underlying_grid.Lz + 500 * exp(-x^2 / (2*(20e3)^2))
grid = ImmersedBoundaryGrid(underlying_grid, GridFittedBottom(bottom))
x, y, z = nodes(grid.immersed_boundary.bottom_height)
fig = Figure()
ax = Axis(fig[1, 1])
lines!(ax, x/1e3, grid.immersed_boundary.bottom_height)
fig OK. I suppose if you don't create the axis Makie thinks this is a 3D field and then creates Axis3 object... So it's good to point out somewhere that to visualize it's better to create axis first? |
Or we can dig into Makie and maybe try to fix the wrong axis assignment? |
I think I figured it out, basically there is a function We could in the future attempt to figure out the "effective dimensionality" of a |
The code snippet below is not working as expected. I explain.
This works fine:
and gives:
which is all good! But:
Perhaps this is a bit informative
Originally posted by @navidcy in #3725 (comment)
The text was updated successfully, but these errors were encountered: