oilbread commited on
Commit
fac188b
·
1 Parent(s): 7ede895

20250623_no_symbol

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -70,7 +70,8 @@ def plot_piece_count(df):
70
  ax.axis('off')
71
  return fig
72
  counts = df['name'].value_counts().sort_index()
73
- labels = [CHESS_PIECES.get(n, {'symbol': n})['symbol'] for n in counts.index]
 
74
  colors = [CHESS_PIECES.get(n, {'color': '#888'})['color'] for n in counts.index]
75
  edges = [CHESS_PIECES.get(n, {'edge': '#888'})['edge'] for n in counts.index]
76
  fig, ax = plt.subplots(figsize=(8,4))
 
70
  ax.axis('off')
71
  return fig
72
  counts = df['name'].value_counts().sort_index()
73
+ #labels = [CHESS_PIECES.get(n, {'symbol': n})['symbol'] for n in counts.index]
74
+ labels = counts.index.tolist()
75
  colors = [CHESS_PIECES.get(n, {'color': '#888'})['color'] for n in counts.index]
76
  edges = [CHESS_PIECES.get(n, {'edge': '#888'})['edge'] for n in counts.index]
77
  fig, ax = plt.subplots(figsize=(8,4))