Skip to content

Improve Plotly legend controls and modebar visibility#167

Merged
AndrewSazonov merged 4 commits intodevelopfrom
chart-legend
May 6, 2026
Merged

Improve Plotly legend controls and modebar visibility#167
AndrewSazonov merged 4 commits intodevelopfrom
chart-legend

Conversation

@AndrewSazonov
Copy link
Copy Markdown
Member

This PR improves Plotly chart usability in EasyDiffraction by keeping the modebar visible, adding a legend toggle button only for plots that actually have legends, making the legend background semi-transparent, and ensuring the legend toggle works reliably in both JupyterLab and exported HTML views.

@AndrewSazonov AndrewSazonov self-assigned this May 6, 2026
@AndrewSazonov AndrewSazonov added the [scope] enhancement Adds/improves features (major.MINOR.patch) label May 6, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented May 6, 2026

Codecov Report

❌ Patch coverage is 88.23529% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 88.52%. Comparing base (ca825c4) to head (f7a27f7).

Files with missing lines Patch % Lines
src/easydiffraction/display/plotters/plotly.py 88.23% 2 Missing and 2 partials ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #167      +/-   ##
===========================================
- Coverage    88.52%   88.52%   -0.01%     
===========================================
  Files          154      154              
  Lines         9442     9475      +33     
  Branches       981      990       +9     
===========================================
+ Hits          8359     8388      +29     
- Misses         762      764       +2     
- Partials       321      323       +2     
Flag Coverage Δ
integration 74.21% <20.58%> (-0.20%) ⬇️
unittests 80.47% <88.23%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 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.

@AndrewSazonov AndrewSazonov merged commit 27407d2 into develop May 6, 2026
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[scope] enhancement Adds/improves features (major.MINOR.patch)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant