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

fix RectangleZoom selection vertices #2674

Merged
merged 3 commits into from
Feb 13, 2023
Merged

Conversation

EdsterG
Copy link
Contributor

@EdsterG EdsterG commented Feb 13, 2023

Description

Fixes #2673

Type of change

Delete options that do not apply:

  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • Added an entry in NEWS.md (for new features and breaking changes)
  • Added or changed relevant sections in the documentation
  • Added unit tests for new algorithms, conversion methods, etc.
  • Added reference image tests for new plotting functions, recipes, visual options, etc.

Copy link
Member

@asinghvi17 asinghvi17 left a comment

Choose a reason for hiding this comment

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

Thanks for the PR! One thing - no need to pass the axis to the _selection_vertices function, since you can get the transform function from the Scene.

julia> Makie.current_axis() |> Makie.transform_func
(identity, identity)

julia> Makie.current_axis().scene |> Makie.transform_func
(identity, identity)

src/makielayout/interactions.jl Outdated Show resolved Hide resolved
src/makielayout/types.jl Outdated Show resolved Hide resolved
src/makielayout/interactions.jl Outdated Show resolved Hide resolved
@EdsterG
Copy link
Contributor Author

EdsterG commented Feb 13, 2023

Thanks for the suggestion, I updated the PR.

Copy link
Member

@asinghvi17 asinghvi17 left a comment

Choose a reason for hiding this comment

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

Looks good to me!

Screen.Recording.2023-02-13.at.6.31.08.PM.mov

@ffreyer ffreyer merged commit d689ac9 into MakieOrg:master Feb 13, 2023
@EdsterG EdsterG deleted the fix_rect_zoom branch February 15, 2023 02:55
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.

log scale breaks zoom controls
3 participants