nesticot commited on
Commit
f8e8024
·
1 Parent(s): f57c496

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -784,7 +784,7 @@ def server(input, output, session):
784
  categories[0:7] = ['G/GP','A/GP','P/GP','PPP/GP','S/GP','Hits/GP','Blk/GP']
785
  _ = sns.barplot(data=test_filter[test_filter.columns[56:63]],x=categories[0:7],y=player[0:7],palette=color_scheme[0:7],edgecolor='black',ax=ax2)
786
 
787
- ax2.set_title("Individual Per Game Z-Score (vs "+position_player+", min. "+str(min_time)+' TOI)',fontsize=14,fontname='Century Gothic')
788
 
789
 
790
  #plt.rcParams['xtick.color']='#333F4B'
@@ -818,7 +818,7 @@ def server(input, output, session):
818
  #plt.suptitle('NHL Shot Locations ', fontsize=32, y = 0.91)
819
  #plt.title('All Shots', fontsize=16, y=1.02)
820
  sns.barplot(x=categories[7:14],y=player[7:14],palette=color_scheme[7:14],edgecolor='black',ax=ax3)
821
- ax3.set_title("Individual Rate Z-Score (vs "+position_player+", min. "+str(min_time)+' TOI)',fontsize=14,fontname='Century Gothic')
822
  ax3.grid(axis = 'y',linestyle = '-', linewidth = 0.5,alpha=0.3)
823
  ax3.set_ylim([-3, 3])
824
  ax3.set_axisbelow(True)
@@ -829,7 +829,7 @@ def server(input, output, session):
829
 
830
  sns.barplot(x=categories_on,y=player_on,palette=color_scheme_on,edgecolor='black',ax=ax4)
831
  ax4.set_ylim([-3, 3])
832
- ax4.set_title("On-Ice All Situations Rate Z-Score (vs "+position_player+", min. "+str(min_time)+' TOI)',fontsize=14,fontname='Century Gothic')
833
  ax4.set_axisbelow(True)
834
  ax4.set_ylabel('Z-Score', fontsize=15,fontname='Century Gothic')
835
  ax4.grid(axis = 'y',linestyle = '-', linewidth = 0.5,alpha=0.3)
 
784
  categories[0:7] = ['G/GP','A/GP','P/GP','PPP/GP','S/GP','Hits/GP','Blk/GP']
785
  _ = sns.barplot(data=test_filter[test_filter.columns[56:63]],x=categories[0:7],y=player[0:7],palette=color_scheme[0:7],edgecolor='black',ax=ax2)
786
 
787
+ ax2.set_title(f"Individual Per Game Z-Score (vs {position_player}, min. {str(min_time):.0f} TOI)",fontsize=14,fontname='Century Gothic')
788
 
789
 
790
  #plt.rcParams['xtick.color']='#333F4B'
 
818
  #plt.suptitle('NHL Shot Locations ', fontsize=32, y = 0.91)
819
  #plt.title('All Shots', fontsize=16, y=1.02)
820
  sns.barplot(x=categories[7:14],y=player[7:14],palette=color_scheme[7:14],edgecolor='black',ax=ax3)
821
+ ax3.set_title(f"Individual Rate Z-Score (vs {position_player}, min. {min_time:.0f} TOI)",fontsize=14,fontname='Century Gothic')
822
  ax3.grid(axis = 'y',linestyle = '-', linewidth = 0.5,alpha=0.3)
823
  ax3.set_ylim([-3, 3])
824
  ax3.set_axisbelow(True)
 
829
 
830
  sns.barplot(x=categories_on,y=player_on,palette=color_scheme_on,edgecolor='black',ax=ax4)
831
  ax4.set_ylim([-3, 3])
832
+ ax4.set_title(f"On-Ice All Situations Rate Z-Score (vs {position_player}, min. {min_time:.0f} TOI)",fontsize=14,fontname='Century Gothic')
833
  ax4.set_axisbelow(True)
834
  ax4.set_ylabel('Z-Score', fontsize=15,fontname='Century Gothic')
835
  ax4.grid(axis = 'y',linestyle = '-', linewidth = 0.5,alpha=0.3)