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

Resolve :data space when deciding whether to connect transformations #4723

Merged
merged 10 commits into from
Jan 24, 2025

Conversation

ffreyer
Copy link
Collaborator

@ffreyer ffreyer commented Jan 14, 2025

Description

Fixes #4722

We have a check which stops transformations from connecting if parent.space != child.space. If the parent is a scene this check looks at the camera and treats campixel! as pixel space. This pr adjusts the check to trace back to the scene if space == :data, as that could still be pixel space.

In #4722 the text shown in legend is a text plot to a pixel space scene. The linesegments used for LaTeXStrings are hard-coded to be in pixel space. Other elements of the plot are in space == :data, which causes transformation to not be connected and thus translations to not propagate to the linesegments.

Type of change

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

Checklist

  • Added an entry in CHANGELOG.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.

@MakieBot
Copy link
Collaborator

MakieBot commented Jan 14, 2025

Benchmark Results

SHA: 9f9d77e8578d68b7bf74dfb17d2ebfa98530b504

Warning

These results are subject to substantial noise because GitHub's CI runs on shared machines that are not ideally suited for benchmarking.

GLMakie
CairoMakie
WGLMakie

@ffreyer ffreyer requested a review from SimonDanisch January 24, 2025 01:26
@ffreyer ffreyer merged commit 5a3c575 into master Jan 24, 2025
22 checks passed
@ffreyer ffreyer deleted the ff/fix-transformations branch January 24, 2025 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Merged
Development

Successfully merging this pull request may close these issues.

Bar of LaTeX fraction in legend label gets plotted behind the white background
3 participants