plotly / plotly/plotly.py

Add Custom Marker Symbols for Scatter Trace

Aperta
#3,672 2 commenti 5 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

feature P3
Lingua principale
Python
Stelle
18.8k
Fork
2.8k
Merge medio
16h 26m
PR unite (30g)
21

Descrizione

Hi all, really liking this framework so far. One feature that would be great to have would be the ability to add custom marker symbols to the scatter trace. It looks like I'm not the first person to be in need of this: https://community.plotly.com/t/i-want-to-use-custom-icon-for-the-scatter-markers-how-to-do-it/6644

I'm currently trying to overlay 2 of the existing symbols on top of one another to get a square with the 'Y' symbol inside. I can achieve this within the plot window easily enough by using two separate scatter traces, one with each symbol. Unfortunately there doesn't seem to be a way to make this look right in the legend. If I could instead use a single trace that would solve the legend issue, either by stacking shapes or more generally accessing the SVG syntax that's already used behind the scenes to render these symbols.

Any thoughts on whether this is feasible?

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Non è indicato alcun file o test. Inizia tracciando il modo in cui sono rappresentati i simboli dei marker di dispersione e le voci della legenda, concentrandoti sulla possibilità che i simboli esistenti basati su SVG supportino un simbolo composto o personalizzato in un singolo trace. Il lavoro è completato quando un marker personalizzato viene renderizzato correttamente e la voce della legenda corrispondente per un singolo trace coincide con esso.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
python
Ambito
data-visualization
Tipo di issue
Funzionalità
Difficoltà
5/5
Tempo stimato
Più di una settimana
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.