回答編集履歴

1

Update

2021/11/28 06:14

投稿

melian
melian

スコア20655

test CHANGED
@@ -6,16 +6,16 @@
6
6
 
7
7
  # ここから
8
8
 
9
- average = dfx.loc["Average", ("Speed","90th")]
10
-
11
- pos_x = ax.get_xlim()[0]
9
+ pos_x = ax.get_xlim()
12
10
 
13
11
  label = "Average"
14
12
 
15
13
  ax.axhline(average, color="red", ls="dotted")
16
14
 
15
+ ax.text(pos_x[0], average, f"{average:.2f}", ha="right", va="center", color="red")
16
+
17
- ax.text(pos_x, average, label, ha="right", va="center", color="red")
17
+ ax.text(pos_x[1], average, label, ha="right", va="bottom", color="red")
18
18
 
19
19
  ```
20
20
 
21
- ![average](fff1ca4d39673190d99b9de1d6c32a41.png)
21
+ ![average](c937cd733f6d49e50e91bd9fe3df4212.png)