Skip to content

Fix #535: add visual padding below measurement-order arrow#559

Open
thierry-martinez wants to merge 4 commits into
TeamGraphix:masterfrom
thierry-martinez:fix/535-visualization
Open

Fix #535: add visual padding below measurement-order arrow#559
thierry-martinez wants to merge 4 commits into
TeamGraphix:masterfrom
thierry-martinez:fix/535-visualization

Conversation

@thierry-martinez

@thierry-martinez thierry-martinez commented Jul 12, 2026

Copy link
Copy Markdown
Collaborator

This commit adds padding beneath the measurement-order arrow when visualizing open graphs with layers, fixing #535 by keeping both the arrow and its label inside the visualization box.

This commit simplifies the approach taken in #536. We reuse the fact that the coordinate transformation employed in _draw_layers depends on the current plot limits set on the figure.

In this commit, we use mpl to track regression for #535. Because changing the coordinate‑transformation logic in _draw_layers affects other tests (independent of the padding itself), all baseline files have been updated accordingly.

This commit only fixes the bug reported in #535. It does not prevent other objects, such as flow arrows or the legend box, from appearing outside the visualization frame.

This commit adds padding beneath the measurement-order arrow when
visualizing open graphs with layers, fixing TeamGraphix#535 by keeping both the
arrow and its label inside the visualization box.

This commit simplifies the approach taken in TeamGraphix#536. We reuse the fact
that the coordinate transformation employed in `_draw_layers` depends
on the current plot limits set on the figure.

In this commit, we use `mpl` to track regression for TeamGraphix#535. Because
changing the coordinate‑transformation logic in _draw_layers affects
other tests (independent of the padding itself), all baseline files
have been updated accordingly.

This commit only fixes the bug reported in TeamGraphix#535. It does not prevent
other objects, such as flow arrows or the legend box, from appearing
outside the visualisation frame.
@codecov

codecov Bot commented Jul 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.59%. Comparing base (2351197) to head (f5edb47).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #559   +/-   ##
=======================================
  Coverage   90.58%   90.59%           
=======================================
  Files          49       49           
  Lines        7481     7483    +2     
=======================================
+ Hits         6777     6779    +2     
  Misses        704      704           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

1 participant