teratail header banner
teratail header banner
質問するログイン新規登録

回答編集履歴

1

追記

2018/03/26 04:19

投稿

tachikoma
tachikoma

スコア3601

answer CHANGED
@@ -2,4 +2,17 @@
2
2
  ```
3
3
  df = pd.concat([df1, df2])
4
4
  df.plot()
5
+ ```
6
+
7
+ 追記
8
+
9
+ 単に```plt.legend```をループの外に出せばいいのではないでしょうか。
10
+
11
+
12
+ ```python
13
+ for i in list_df:
14
+ plt.plot(i, "-ob")
15
+ plt.legend(['label1'])
16
+ plt.show()
17
+
5
18
  ```