Feature request: remove need for intermediate pl calls when chaining renderers
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Necesita aclaración
- Estado de actividad
- Tranquilo
- Stack tecnológico
- python
- Área
- data-visualization
Línea de trabajo
Comienza inspeccionando el accesor pl y los métodos render_*, especialmente cómo devuelven actualmente SpatialData y admiten llamadas encadenadas. Compara el ejemplo existente sdata.pl.render_images().pl.render_shapes().pl.show() con el comportamiento de encadenamiento propuesto y resuelve cómo deben interactuar las operaciones pl y pp. Se considera terminado cuando haya un diseño de API decidido y el encadenamiento de renderers funcione sin llamadas pl intermedias.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Description of feature
Thanks for the super nice work, @timtreis and @sagar87 ! I think it would be nice if we didn't have to add intermediate calls to pl when chaining renderers. That is, I think it would be nice if instead of this:
sdata.pl.render_images().pl.render_shapes().pl.show()
We could do this:
sdata.pl.render_images().render_shapes().show()
This perhaps could be possible if the render_*() methods returned the plot accessor instead of the SpatialData object. I suppose this means that one couldn't do a pp operation after a pl operation, but maybe that suggests the pl and pp operations should be on the same level of the hierarchy or one should do their preprocessing first, then their plotting. I'm not sure what's best here, but it might be good to experiment with this once all of the p0 functionality is finished.
- Lenguaje dominante
- Python
- Estrellas
- 86
- Forks
- 21
- Merge medio
- 14 h 50 min
- PR fusionados (30 d)
- 3
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de scverse/spatialdata-plot
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
scverse/spatialdata-plot#775 ·
-
bug
Dificultad 3/5 1-2 días Aptitud para principiantes 68/100
scverse/spatialdata-plot#777 ·
-
`pl.show()` leading to `ValueError` due to mismatch between number of axes and number of panels Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
scverse/spatialdata-plot#749 · 1 comentario ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
scverse/spatialdata-plot#747 ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 45/100
scverse/spatialdata-plot#677 ·
Todos los issues de scverse/spatialdata-plot
Issues similares
-
sponsored
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
-
opensubtitlescom: moviehash never sent when opensubtitles (.org) is not in the provider list Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
Diaoul/subliminal#1382 ·
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 92/100
-
triage/confirmed
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
agentscope-ai/agentscope#2775 ·
-
worker.gpuVendors silently accepts unsupported/misspelled vendor names — no validation guard Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100