[MNT]: Consolidate axis sharing logic
Mantenedores costumam responder em até 1 dia
@tamrind69 já está trabalhando nisso.
Desde 30/10/2026.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 45/100
- Tipo de issue
- Refatoração
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- python
- Domínio
- data-visualization
Direção de pesquisa
Read the Axes implementation and search for _sharex, _sharey, and Axes._shared_axes['x'] to locate the remaining uses and understand how sharing state is handled. Check whether any behavior depends on the parent-child relation, then remove the redundant state if the grouper can cover those uses. Done means axis sharing continues to work without _sharex/_sharey; the issue does not name tests, so identify and run the relevant sharing tests.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Summary
Sharing information is stored redundantly:
- in the grouper class attribute
Axes._shared_axes['x']. The grouper stores the shared axes in a list without a hierarchy. - in the
_sharexattribute of Axes. This is asymmetic in that the only one of the Axes gets the_sharexattribute set, resulting in a parent-child relation.
Proposed fix
From https://github.com/matplotlib/matplotlib/issues/30159#issuecomment-3539310071
I think a reasonable incremental improvement would be to remove the
Axes._sharex/ystate. It's only used in very few places and can more reasonably be handled via the grouperAxes._shared_axes['x'].
Still to be clarified: Do we need the parent-child relation in any way? - From a quick look I don't think so.
- Linguagem predominante
- Python
- Estrelas
- 23.5k
- Forks
- 8.6k
- Merge médio
- 1d 19h
- PRs com merge (30d)
- 64
Preparar o ambiente
Inicia o contêiner de desenvolvimento do projeto no navegador, com a sua própria conta do GitHub.
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de matplotlib/matplotlib
-
[Bug]: Saving a NonUniformImage with bbox_inches="tight" raises TypeError when extent is omittedAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
matplotlib/matplotlib#32707 ·
Mantenedores costumam responder em até 1 dia
-
[Bug]: withTickedStroke raises ValueError when the line contains NaNTalvez já em andamento @RjyavardhanSingh assumiu há 3 dias. Abertafirst-contribution topic: path handling
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 85/100
matplotlib/matplotlib#32689 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
-
[Bug]: Constrained layout raises ZeroDivisionError when the first height/width ratio is zeroTalvez já em andamento @yqtian-se assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 85/100
matplotlib/matplotlib#32684 · 3 comentários ·
Mantenedores costumam responder em até 1 dia
-
[Bug]: twin axes ignore the navigation opt-outsTalvez já em andamento @NaumanRafay assumiu há 36 dias. Abertatopic: toolbar
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
matplotlib/matplotlib#32528 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
-
[Bug]: macOS font discovery raises KeyError('_items') for an incomplete system_profiler font recordAbertafirst-contribution OS: Apple status: needs clarification topic: text/fonts
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
matplotlib/matplotlib#32328 · 4 comentários ·
Mantenedores costumam responder em até 1 dia
Todas as issues de matplotlib/matplotlib
Issues semelhantes
-
area/network kind/documentation triage/needs-human
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 88/100
canonical/k8s-snap#3533 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
area: ops bug effort: small
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 91/100
juandresrodca/AdminForge#71 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
fossasia/eventyay-exhibition#465 · 3 comentários · 1 reação ·
Mantenedores costumam responder em até 3 dias
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Deltakit/deltakit-circuit#28 ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
Mantenedores costumam responder em até 1 dia