nesticot commited on
Commit
7a06fbd
·
verified ·
1 Parent(s): 5f2d128

Update batter_scatter.py

Browse files
Files changed (1) hide show
  1. batter_scatter.py +3 -2
batter_scatter.py CHANGED
@@ -358,8 +358,9 @@ def server(input,output,session):
358
  # ha='center', va='center', rotation=45)
359
 
360
  print(ts)
361
- adjust_text(ts,
362
- arrowprops=dict(arrowstyle="-", color=colour_palette[4], lw=1),ax=ax)
 
363
 
364
  #ax.legend(fontsize='16')
365
  fig.text(x=0.03,y=0.02,s='By: @TJStats',fontname='Century Gothic')
 
358
  # ha='center', va='center', rotation=45)
359
 
360
  print(ts)
361
+ if len(ts) > 0:
362
+ adjust_text(ts,
363
+ arrowprops=dict(arrowstyle="-", color=colour_palette[4], lw=1),ax=ax)
364
 
365
  #ax.legend(fontsize='16')
366
  fig.text(x=0.03,y=0.02,s='By: @TJStats',fontname='Century Gothic')