回答編集履歴
1
Update
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()
|
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="
|
17
|
+
ax.text(pos_x[1], average, label, ha="right", va="bottom", color="red")
|
18
18
|
|
19
19
|
```
|
20
20
|
|
21
|
-
![average](
|
21
|
+
![average](c937cd733f6d49e50e91bd9fe3df4212.png)
|