回答編集履歴

2

追記

2019/08/28 22:21

投稿

meg_
meg_

スコア10600

test CHANGED
@@ -21,3 +21,19 @@
21
21
  ```
22
22
 
23
23
  ![イメージ説明](f0a09ee0c43df27539595ab4558fa2ab.png)
24
+
25
+
26
+
27
+ 【追記】こんな感じでしょうか? ※X軸の順番が期待通りではないかも
28
+
29
+ ```Pytohn
30
+
31
+ for idx, row in df.iterrows():
32
+
33
+ plt.bar(df.columns, row.values.tolist(), align="center", width=1.0,tick_label=df.columns)
34
+
35
+ plt.title = df.index
36
+
37
+ plt.show()
38
+
39
+ ```

1

追記

2019/08/28 22:21

投稿

meg_
meg_

スコア10600

test CHANGED
@@ -1 +1,23 @@
1
1
  leftとheightは同じ数必要かと思います。(同じ長さの配列にする)
2
+
3
+
4
+
5
+ 【追記】
6
+
7
+ ```Python
8
+
9
+ import matplotlib.pyplot as plt
10
+
11
+
12
+
13
+ left = [1,2,3,4]
14
+
15
+ height = [4,3,2,1]
16
+
17
+ plt.bar(left, height, align="center", width=1.0)
18
+
19
+ plt.show()
20
+
21
+ ```
22
+
23
+ ![イメージ説明](f0a09ee0c43df27539595ab4558fa2ab.png)