Update functions/pitch_summary_functions.py
Browse files
functions/pitch_summary_functions.py
CHANGED
|
@@ -428,10 +428,12 @@ def pitch_usage(df: pl.DataFrame, ax: plt.Axes):
|
|
| 428 |
ax.set_xlim(-100, 100)
|
| 429 |
ax.set_xticks(np.arange(-100, 101, 20))
|
| 430 |
ax.set_xticklabels([f"{abs(x)}%" for x in np.arange(-100, 101, 20)], fontdict=font_properties)
|
| 431 |
-
#
|
| 432 |
-
ax.
|
|
|
|
|
|
|
| 433 |
bbox=dict(facecolor='white', edgecolor='black'), fontsize=16, zorder=3)
|
| 434 |
-
ax.text(98, -0.
|
| 435 |
bbox=dict(facecolor='white', edgecolor='black'), fontsize=16, zorder=3)
|
| 436 |
|
| 437 |
|
|
|
|
| 428 |
ax.set_xlim(-100, 100)
|
| 429 |
ax.set_xticks(np.arange(-100, 101, 20))
|
| 430 |
ax.set_xticklabels([f"{abs(x)}%" for x in np.arange(-100, 101, 20)], fontdict=font_properties)
|
| 431 |
+
# Add vertical grid lines only
|
| 432 |
+
ax.grid(False)
|
| 433 |
+
ax.grid(axis='x', color='grey', linestyle='--', alpha=0.5)
|
| 434 |
+
ax.text(-98, -0.5, s='vs LHH', fontstyle='italic', ha='left', va='bottom',
|
| 435 |
bbox=dict(facecolor='white', edgecolor='black'), fontsize=16, zorder=3)
|
| 436 |
+
ax.text(98, -0.5, s='vs RHH', fontstyle='italic', ha='right', va='bottom',
|
| 437 |
bbox=dict(facecolor='white', edgecolor='black'), fontsize=16, zorder=3)
|
| 438 |
|
| 439 |
|