Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Export plot objects as plotly Figures

Abierto
#1 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
45/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Estancado
Stack tecnológico
plotly, python

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

This may be a simpler one, but the current plotting code includes multiple steps:

  1. Some helpful data munging
  2. Some aesthetic design options for the plots
  3. 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.

Lenguaje dominante
Python
Estrellas
3
Forks
3
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de mozilla/mozaic-forecasting

Todos los issues de mozilla/mozaic-forecasting

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.