plotly / plotly/plotly.py

Add Custom Marker Symbols for Scatter Trace

Aberta
#3,672 2 comentários 5 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

feature P3
Linguagem predominante
Python
Estrelas
18.8k
Forks
2.8k
Merge médio
16h 26min
PRs com merge (30d)
21

Descrição

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?

Guia de contribuição

Abrir o guia de contribuição

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Direção de pesquisa

Nenhum arquivo ou teste é nomeado. Comece rastreando como os símbolos de marcador de dispersão e as entradas da legenda são representados, concentrando-se em verificar se os símbolos existentes baseados em SVG podem oferecer suporte a um símbolo composto ou personalizado em um único trace. A tarefa estará concluída quando um marcador personalizado for renderizado corretamente e a entrada correspondente da legenda para um único trace corresponder a ele.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Stack de tecnologia
python
Domínio
data-visualization
Tipo de issue
Funcionalidade
Dificuldade
5/5
Tempo estimado
Mais de uma semana
Status de atividade
Estagnada
Clareza
Precisa de esclarecimento
Facilidade para iniciantes
25/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.