[BUG]: `vertical_spacing` argument for `make_subplots` should leave space for subplot titles
Mantenedores costumam responder em até 1 dia
@SharadhNaidu já está trabalhando nisso.
Desde 10/6/2026.
Avaliação
Esta issue ainda não foi avaliada.
Descrição
Description
Setting the vertical_spacing argument of make_subplots to a small value, while also passing subplot_titles, results in a really ugly chart where the subplot titles overlap the subplots themselves.
Ideally vertical_spacing should take titles into account, and control the spacing between the top of the title and the bottom of the subplot above.
We obviously don't know the exact size of the title text, but something like font size * 1.75 should be approximately the right amount of space for a single-line title.
However we need to see whether this requires changes to Plotly.js, since axis.domain only supports units of plot fraction, not sure if there is a way to shift it by a certain number of pixels.
Screenshots/Video
Steps to reproduce
from plotly.subplots import make_subplots
import plotly.graph_objects as go
import random
fig1 = make_subplots(
rows=6, cols=1,
shared_xaxes=True,
vertical_spacing=0.02,
row_heights=[0.35, 0.13, 0.13, 0.13, 0.13, 0.13],
subplot_titles=['Heart Rate Variability', 'Walking', 'Cycling', 'Hiking', 'Other', 'Pilates']
)
for i in range(6):
fig1.add_trace(
go.Scatter(x=[0,1,2], y=[random.randint(0, 10) for _ in range(3)]),
row=i+1,
col=1
)
fig1.show()
- Linguagem predominante
- Python
- Estrelas
- 18.8k
- Forks
- 2.9k
- Merge médio
- 14h 12min
- PRs com merge (30d)
- 19
Preparar o ambiente
- 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 plotly/plotly.py
-
[BUG]: Unnecessary `UserWarning` when using `fig.write_image()` with `kaleido.start_sync_server()`Abertabug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
Mantenedores costumam responder em até 1 dia
-
P3 size: 1 task
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
plotly/plotly.py#5769 · 1 reação ·
Mantenedores costumam responder em até 1 dia
-
P3 size: 1 task
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
Mantenedores costumam responder em até 1 dia
-
bug P1
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 68/100
Mantenedores costumam responder em até 1 dia
-
feature P3
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
Mantenedores costumam responder em até 1 dia
Todas as issues de plotly/plotly.py
Issues semelhantes
-
#bug
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 92/100
apache/superset#44923 · 1 comentário ·
Mantenedores costumam responder em até 2 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
lawndoc/stack-back#123 ·
-
Add: EntuneAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
AbdelStark/awesome-typesafe-jev#187 ·
Mantenedores costumam responder em até 1 dia
-
bug good first issue
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
repowise-dev/repowise#2966 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
Mantenedores costumam responder em até 2 dias