[ESSDIFFRACTION] Add ‘Bragg‑peak’ scatter markers with adaptive labelling in inspector view

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

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
48/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Tranquilo
Stack tecnológico
python

Línea de trabajo

Comienza en la plopp inspector view y sigue cómo los puntos de dispersión, el zoom y la herramienta de selección controlan los paneles superior e inferior. Confirma cómo se pueden proporcionar las coordenadas de los picos de Bragg y las etiquetas opcionales, y verifica después que los marcadores, las etiquetas fusionadas, la visibilidad adaptativa de las etiquetas y las etiquetas del panel inferior coincidan con los ejemplos descritos.

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

Descripción

essdiffraction

In the inspector plot of plopp package, when visualising a 3D object such as the single-crystal diffraction data shown below, I would like to have an option to overlay markers indicating the positions of Bragg peaks. These peaks could be provided as a list of three coordinates with optional labels.

Image

The desired behaviour is the following:

  • When the number of scatter points in the top panel is large, only markers should be shown (similar to the white dots in the example below), without labels.
  • When the user zooms into a region and the number of visible points falls below a predefined threshold (e.g., fewer than 10), the labels should automatically appear.
  • If multiple Bragg reflections share identical x-y coordinates (e.g., identical gamma and nu values), their labels should be merged into a single combined label. In the example below, this is done for the reflection (5 1 -1) and (10 2 -2).
Image Image

Additionally, when using the selection tool to display the intensity distribution along the third coordinate, I would like the corresponding labels to appear in the lower panel of the inspector. In the example below, the selected point corresponds to three diffraction peaks, and their labels should be shown in the bottom graph.

Image

This functionality would significantly improve the ability to assess the quality of predicted peak positions relative to experimental single-crystal data.

Lenguaje dominante
Python
Estrellas
3
Forks
6
Merge medio
2 d 13 h
PR fusionados (30 d)
35

Preparar el entorno

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 scipp/ess

Todos los issues de scipp/ess

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.