Skip to content

Fix #554: Hide unused Pauli-measurement legend entry#560

Open
thierry-martinez wants to merge 3 commits into
TeamGraphix:masterfrom
thierry-martinez:fix/554-legend-wo-Pauli-measurements
Open

Fix #554: Hide unused Pauli-measurement legend entry#560
thierry-martinez wants to merge 3 commits into
TeamGraphix:masterfrom
thierry-martinez:fix/554-legend-wo-Pauli-measurements

Conversation

@thierry-martinez

Copy link
Copy Markdown
Collaborator

This commit removes the Pauli-measurement entry from the legend when the open graph contains no Pauli measurements (issue #554).

It also ensures that the figure is large enough to accommodate the legend. In particular, this makes the legend appear in the baseline figures introduced for #554.

Finally, this commit fixes the duplication of node icons in the legend when using pytest-mpl.

This commit removes the Pauli-measurement entry from the legend when
the open graph contains no Pauli measurements (issue TeamGraphix#554).

It also ensures that the figure is large enough to accommodate the
legend. In particular, this makes the legend appear in the baseline
figures introduced for TeamGraphix#554.

Finally, this commit fixes the duplication of node icons in the legend
when using `pytest-mpl`.
@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.60%. Comparing base (2351197) to head (a4f05cb).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #560      +/-   ##
==========================================
+ Coverage   90.58%   90.60%   +0.01%     
==========================================
  Files          49       49              
  Lines        7481     7492      +11     
==========================================
+ Hits         6777     6788      +11     
  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.

@matulni matulni left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for the fix, LGTM!

(Reminder: CHANGELOG.md)

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