Spaces:
Sleeping
Sleeping
20250623_no_symbol
Browse files
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))
|