Plotly plotting#1694
Open
bennthomsen wants to merge 6 commits into
Open
Conversation
for more information, see https://pre-commit.ci
…dbean into plotly_plotting
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1694 +/- ##
==========================================
- Coverage 72.12% 68.16% -3.97%
==========================================
Files 9 9
Lines 1539 1649 +110
==========================================
+ Hits 1110 1124 +14
- Misses 429 525 +96 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
astafan8
approved these changes
Feb 4, 2026
Contributor
astafan8
left a comment
There was a problem hiding this comment.
Great! Thank you, also for tests and documentation!
| if seq_info["jump_input"] != 0: | ||
| if seq_info["jump_input"] == -1: | ||
| titlestring += "E\u2192 " | ||
| titlestring += "⚡ " |
Contributor
There was a problem hiding this comment.
@jenshnielsen what do you think about this change of \u** to actual unicode characters? i'm reluctant however don't have conrete technical reasons why
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add Plotly Plotting Backend and Examples
Description
This PR adds an interactive plotly plotting backend as an alternative to matplotlib, along with a comprehensive Jupyter notebook demonstrating both plotting options.
Changes
New Features
Added: Plotly plotting backend for interactive visualization of pulse sequences
Added: Plotting_Examples.ipynb - Comprehensive notebook showcasing both plotting backends
Modified Files
Modified: broadbean/plotting.py - Added plotly_backend module with support for:
Plot individual blueprints
Plot multi-channel elements
Plot multi-position sequences
Full marker visualization support
Modified: broadbean/plotter.py - Updated plotter() function to accept backend parameter:
backend="matplotlib" (default) - Static plots
backend="plotly" - Interactive plots with zoom/pan
Testing:
Added: tests\test_plotting.py
Usage
`from broadbean import plotter
Matplotlib (default)
plotter(sequence)
Plotly (interactive)
plotter(sequence, backend="plotly")`
Testing