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

bugfix 2d tile depth #128

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

bugfix 2d tile depth #128

wants to merge 1 commit into from

Conversation

rafaqz
Copy link
Collaborator

@rafaqz rafaqz commented Dec 31, 2024

This PR fixes the ice melt demo so that the simulation is seen, and various z level plots behave well like they did previously.

It splits up depth scaling into plots above and below z level, and uses visible=false/ visible=true as well as depth so that the top layer is always at zero, and the background is either below it how hidden if it has a higher zoom.

It also moves the whole plot down by 10 so none of this jiggling around affects other plots.

And reorganises code a little.

@@ -205,7 +205,7 @@ function setup_axis!(axis::Axis, ext_target, crs)
X = ext_target.X
Y = ext_target.Y
axis.autolimitaspect = 1
Makie.limits!(axis, (X[1], X[2]), (Y[1], Y[2]))
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ooops this is just to fix the other bug that hangs vscode, but should be removed

@@ -126,7 +147,7 @@ function cull_plots!(m::Map)
end
end

function create_tile_plot!(m::AbstractMap, tile::Tile, data)
function create_tyler_plot!(m::AbstractMap, tile::Tile, data)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reminder to self: we need to document this name change and apply it to the GeoMakie extension + all other Tyler plot configs

Copy link
Collaborator Author

@rafaqz rafaqz Jan 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh is this interface? Need to make that clear.

It can be some other name but there is already create_tileplot without underscore in the interface

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

Successfully merging this pull request may close these issues.

2 participants