Sathwikchowdary commited on
Commit
5c1cccf
·
verified ·
1 Parent(s): e8a947e

Update pages/1player_information.py

Browse files
Files changed (1) hide show
  1. pages/1player_information.py +5 -4
pages/1player_information.py CHANGED
@@ -48,13 +48,14 @@ if player_input:
48
  ax.set_ylabel("Runs Scored", fontsize=12)
49
  ax.set_title(f"Runs Scored by {selected_player}", fontsize=14)
50
  st.pyplot(fig)
51
-
52
- # Scatter Plot - Matches vs Runs (ODIs)
53
  fig, ax = plt.subplots()
54
- sns.scatterplot(x=df["Matches_ODI"], y=df["batting_Runs_ODI"], ax=ax, color="#4682B4", edgecolor='black')
 
 
55
  ax.set_xlabel("Matches Played", fontsize=12)
56
  ax.set_ylabel("Runs Scored", fontsize=12)
57
- ax.set_title("Matches vs Runs in ODIs (All Players)", fontsize=14)
58
  st.pyplot(fig)
59
 
60
  # Line Chart - Batting Average Over Formats
 
48
  ax.set_ylabel("Runs Scored", fontsize=12)
49
  ax.set_title(f"Runs Scored by {selected_player}", fontsize=14)
50
  st.pyplot(fig)
51
+ # Scatter Plot - Matches vs Runs
 
52
  fig, ax = plt.subplots()
53
+ sns.scatterplot(x=[player_data["Matches_ODI"]],
54
+ y=[player_data["batting_Runs_ODI"]],
55
+ color="#4682B4", edgecolor='black', s=200)
56
  ax.set_xlabel("Matches Played", fontsize=12)
57
  ax.set_ylabel("Runs Scored", fontsize=12)
58
+ ax.set_title(f"Matches vs Runs in ODIs - {selected_player}", fontsize=14)
59
  st.pyplot(fig)
60
 
61
  # Line Chart - Batting Average Over Formats