Inconsistent Elements Data in Charts When All Values Are Equal
Mantenedores costumam responder em até 1 dia
@mishushakov já está trabalhando nisso.
Desde 19/5/2025.
Avaliação
Esta issue ainda não foi avaliada.
Descrição
I encountered an issue when generating a bar chart using the provided code. When all the values in the incident_counts list are equal, the elements data in the resulting chart object is incorrect. Specifically, the label and value attributes of the elements are not as expected. The value is always fixed at 0.8, which does not match the actual data.
Steps to Reproduce:
Run the following code to generate a bar chart:
Python
复制
import matplotlib.pyplot as plt
Data for the supplier locations and incident counts
supplier_locations = [
"aa",
"bb",
"cc",
"dd",
"ee",
"44"]
incident_counts = [2, 2, 2, 2,2,2]
Create a bar chart
plt.figure(figsize=(10, 6))
plt.plot(supplier_locations, incident_counts, color='blue')
plt.xlabel('Supplier Location ID')
plt.ylabel('Incident Count')
plt.title('Incident Counts by Supplier Location')
plt.xticks(rotation=45, ha="right")
plt.tight_layout()
Store the result for testing or further analysis
result = plt.gcf()
Inspect the elements data of the chart object. You will notice that the label and value attributes are incorrect. The value is always 0.8, regardless of the actual data.
Expected Behavior:
When all the values in the incident_counts list are equal, the elements data in the chart object should still accurately reflect the actual data. The label should correspond to the supplier locations, and the value should match the incident counts.
Actual Behavior:
The elements data is incorrect. The label and value attributes are not as expected. The value is always fixed at 0.8.
Additional Information:
This issue only occurs when all the values in the incident_counts list are equal.
When the values are not all equal, the elements data is correct.
- Linguagem predominante
- Python
- Estrelas
- 2.4k
- Forks
- 231
- Merge médio
- 4h 49min
- PRs com merge (30d)
- 5
Preparar o ambiente
Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.
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 e2b-dev/code-interpreter
-
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 45/100
e2b-dev/code-interpreter#326 ·
Mantenedores costumam responder em até 1 dia
-
O(n²) string concatenation in readLines causes OOM on large stdout (>1 MB)Talvez já em andamento @ondraulehla assumiu há 95 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 55/100
e2b-dev/code-interpreter#251 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
-
Dependency DashboardTalvez livre de novo Um pull request para esta issue foi fechado sem ser mesclado. AbertaChore Dashboard
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 20/100
e2b-dev/code-interpreter#200 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
-
feature SDK
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 35/100
e2b-dev/code-interpreter#190 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 25/100
e2b-dev/code-interpreter#165 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
Todas as issues de e2b-dev/code-interpreter
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 85/100
Mantenedores costumam responder em até 1 dia
-
infrastructure qa
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
khuisman/mcp-gee-sweet#1068 ·
Mantenedores costumam responder em até 1 dia
-
The book has a Nix install section that chelis.ch lacks, and it names two of the three systemsAbertaarea:ecosystem documentation
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Chelis-Lang/chelis#3866 ·
Mantenedores costumam responder em até 1 dia
-
`lvm_compact` has no self-hosted twin, and `docs/158` §5 says every language-face component mustAbertabug sev-3 vm
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
-
issue: Picking a prompt from the / menu in a channel inserts a command chip instead of the promptAbertabug confirmed issue
Dificuldade 2/5 Meio dia Facilidade para iniciantes 78/100
open-webui/open-webui#32712 · 2 comentários ·
Mantenedores costumam responder em até 1 dia