Export plot objects as plotly Figures
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 45/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- plotly, python
- Domain
- data-visualization
Research direction
Start in mozaic/plotting.py around lines 18-40, where the plotting steps culminate in the Plotly Express show() call. Preserve the existing data munging and aesthetic options while exposing the generated plot object for later customization. Done means callers can adjust items such as date ranges, titles, legends, or annotations instead of only rendering immediately.
Written by the indexing model from the issue text.
Description
This may be a simpler one, but the current plotting code includes multiple steps:
- Some helpful data munging
- Some aesthetic design options for the plots
- A call to plotly express
show()the ultimately generated plot here: https://github.com/mozilla/mozaic-forecasting/blob/2becad6a9b372c8f0d732f91ee92f6b8d7b06fed/mozaic/plotting.py#L18C1-L40
By either just removing this fig.show() call, or setting up a different function call that outputs the plot object, it will still automatically render in most typical Jupyter/iPython/Notebook contexts. But it will have the benefit of being customizable after-the-fact, which the current approach is not--at least not without extensive workarounds.
Example: Wanting to manually specify the x-axis date range of the plot, or change the title/legends, or add an annotation region.
- Dominant language
- Python
- Stars
- 3
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from mozilla/mozaic-forecasting
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
All issues in mozilla/mozaic-forecasting
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
enhancement good first issue Stellar Wave trivial
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
StellarCanary/ProtocolCanary-Fixtures#258 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
IBM/ai-atlas-nexus#295 ·
Maintainers usually reply within 6 days
-
github_actions
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Hochfrequenz/aibap.mcp#578 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
mishraprafful/multihull#150 ·
Maintainers usually reply within 1 day