Skip to content

Commit 459337d

Browse files
committed
driver ratings for brazil
1 parent a5cf747 commit 459337d

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

github-pages/systems/youtube/p1.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ permalink: /yt/p1_wMT
3737

3838
| World Drivers' Championship standings | World Constructors' Championship standings |
3939
| - | - |
40-
| ![](/F1_2025_Different_Point_Systems/docs/assets/p1_wMT/Matt/Matt.png) | ![](/F1_2025_Different_Point_Systems/docs/assets/p1_wMT/Matt/constructors_Matt.png) |
41-
| ![](/F1_2025_Different_Point_Systems/docs/assets/p1_wMT/Tommy/Tommy.png) | ![](/F1_2025_Different_Point_Systems/docs/assets/p1_wMT/Tommy/constructors_Tommy.png) |
42-
| ![](/F1_2025_Different_Point_Systems/docs/assets/p1_wMT/Audience/Audience.png) | ![](/F1_2025_Different_Point_Systems/docs/assets/p1_wMT/Audience/constructors_Audience.png) |
40+
| ![](/F1_2025_Different_Point_Systems/docs/assets/p1_wMT/Matt/Matt_-_Sum_of_ratings.png) | ![](/F1_2025_Different_Point_Systems/docs/assets/p1_wMT/Matt/constructors_Matt_-_Sum_of_ratings.png) |
41+
| ![](/F1_2025_Different_Point_Systems/docs/assets/p1_wMT/Tommy/Tommy_-_Sum_of_ratings.png) | ![](/F1_2025_Different_Point_Systems/docs/assets/p1_wMT/Tommy/constructors_Tommy_-_Sum_of_ratings.png) |
42+
| ![](/F1_2025_Different_Point_Systems/docs/assets/p1_wMT/Audience/Audience_-_Sum_of_ratings.png) | ![](/F1_2025_Different_Point_Systems/docs/assets/p1_wMT/Audience/constructors_Audience_-_Sum_of_ratings.png) |
4343

4444
## <a id="p1"></a>P1
4545

python_scripts/mean_positions.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -232,14 +232,14 @@ def sorted_legend_by_final_points(ax, axtitle):
232232
(point_systems[3], "Race results with DNF"),
233233
]
234234
for p, (system, label_text) in enumerate(group_data):
235-
counts = np.bincount(system["driver_positions"][dn])
235+
counts = np.bincount(system["driver_positions"][dn])[1:-1]
236236
bar_positions = np.arange(len(counts))
237237
ax[p].bar(
238238
bar_positions,
239239
counts,
240240
width=0.8,
241241
color=f"#{dc}",
242-
label=label_text,
242+
label=f"{label_text} - {np.mean(system["driver_positions"][dn][1:-1]):.2f}",
243243
align="center",
244244
zorder=2,
245245
)
@@ -253,7 +253,7 @@ def sorted_legend_by_final_points(ax, axtitle):
253253
ax[p].set_yticks(np.arange(upper_ylim + 1))
254254
ax[p].legend(loc="upper right")
255255
ax[p].grid(axis="y", zorder=1)
256-
fig.suptitle(f"Positions for {dn}")
256+
fig.suptitle(f"Positions for {dn} - <Average Position>")
257257
fig.savefig(f"{dp_dir}{dn}.png", dpi=500)
258258
fig.savefig(f"{dp_dir}{dn}.pdf")
259259
plt.close(fig)

python_scripts/p1_driver_ratings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ def sorted_legend_by_final_points(ax, axtitle):
190190
counts,
191191
width=0.8,
192192
color=col,
193-
label=name,
193+
label=f"{name} - {np.mean(y):.2f}",
194194
align="center",
195195
zorder=2,
196196
)
@@ -204,7 +204,7 @@ def sorted_legend_by_final_points(ax, axtitle):
204204
ax[p].set_yticks(np.arange(upper_ylim + 1))
205205
ax[p].legend(loc="upper left")
206206
ax[p].grid(axis="y", zorder=1)
207-
fig.suptitle(f"Ratings for {dn}")
207+
fig.suptitle(f"Ratings for {dn} - <Average Rating>")
208208
fig.savefig(f"_includes/p1_wMT/driver_ratings/{dn}.png", dpi=500)
209209
fig.savefig(f"_includes/p1_wMT/driver_ratings/{dn}.pdf")
210210
plt.close(fig)

results/p1_driver_ratings.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ USA,Audience,,,4,8,6,7,4,6,7,4,5,5,4,7,6,7,7,10,8,9,5,8
5959
Mexico,Matt,Norris,,8,5,5,4,6,5,10,8,5,5,4,5,7,7,7,8,7,9,6,10
6060
Mexico,Tommy,Norris,,8,6,5,4,6,5,10,7,5,5,4,5,8,7,6,9,7,9,6,10
6161
Mexico,Audience,,,7,5,5,5,5,5,10,8,5,5,4,5,7,6,5,9,7,9,6,10
62-
Brazil,Matt,,,,,,,,,,,,,,,,,,,,,,
63-
Brazil,Tommy,,,,,,,,,,,,,,,,,,,,,,
64-
Brazil,Audience,,,,,,,,,,,,,,,,,,,,,,
62+
Brazil,Matt,Norris,,1,8,6,5,7,8,9,6,4,9,5,7,10,8,3,9,4,8,5,10
63+
Brazil,Tommy,Norris,,1,8,7,5,8,8,9,6,4,9,5,7,10,8,2,10,3,8,5,10
64+
Brazil,Audience,,,3,7,5,5,7,8,9,5,5,8,5,6,10,7,3,10,4,7,6,10
6565
Las Vegas,Matt,,,,,,,,,,,,,,,,,,,,,,
6666
Las Vegas,Tommy,,,,,,,,,,,,,,,,,,,,,,
6767
Las Vegas,Audience,,,,,,,,,,,,,,,,,,,,,,

0 commit comments

Comments
 (0)