Inconsistent Elements Data in Charts When All Values Are Equal
@mishushakov がすでに取り組んでいます。
2025年5月19日 から。
評価
この issue はまだ評価されていません。
説明
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.
- 主要言語
- Python
- スター
- 2.4k
- フォーク
- 229
- 平均マージ
- 13分
- マージ済み PR(30日)
- 1
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
e2b-dev/code-interpreter のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
e2b-dev/code-interpreter#326 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 55/100
e2b-dev/code-interpreter#251 · コメント 2 件 ·
-
Dependency DashboardオープンChore Dashboard
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
e2b-dev/code-interpreter#200 · コメント 2 件 ·
-
feature SDK
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
e2b-dev/code-interpreter#190 · コメント 1 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
e2b-dev/code-interpreter#165 · コメント 1 件 ·
e2b-dev/code-interpreter の issue をすべて見る
似ている issue
-
comp/tools duplicate P2 sweeper:risk-compatibility tool/mcp type/bug
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
NousResearch/hermes-agent#132042 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
deepset-ai/haystack#13092 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
EverMind-AI/Raven#845 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
AstrBotDevs/AstrBot#10340 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
BasedHardware/omi#20401 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信