import matplotlib.pyplot as plt
plt.rcParams['font.family'] = 'Malgun Gothic'
plt.rcParams['axes.unicode_minus'] = False
#core_per_game['core_trait']을 정의한 함수
# core_per_game['core_trait']은 각 게임마다 등장한 모든 특성들 중 ‘가장 높은 count(레벨/중첩)’을 가진 특성 1개를 뽑아 정리한 목록
core_per_game = df_trait.loc[df_trait.groupby('gameId')['count'].idxmax()].copy()
core_per_game = core_per_game[['gameId', 'trait', 'count', 'Ranked', 'is_top4']]
core_per_game.rename(columns={'trait': 'core_trait', 'count': 'core_level'}, inplace=True)
core_trait_names = core_per_game['core_trait'].value_counts().index
core_summary['실제_이름'] = core_trait_names
# 확인
print("이름:", core_summary['실제_이름'].tolist())
plt.figure(figsize=(13, 9))
plt.scatter(core_summary['게임수'],
core_summary['Top4율'] * 100,
s=core_summary['게임수']/5,
alpha=0.75, c='green', edgecolors='black', linewidth=1.2)
# 진짜 이름으로 라벨 붙이기
for i in range(len(core_summary)):
plt.annotate(core_summary['실제_이름'].iloc[i],
(core_summary['게임수'].iloc[i], core_summary['Top4율'].iloc[i]*100),
xytext=(6, 6), textcoords='offset points',
fontsize=11, fontweight='bold', color='darkred')
plt.xlabel('게임 수 (인기도)', fontweight='bold', fontsize=14)
plt.ylabel('Top4율 (%)', fontweight='bold', fontsize=14)
plt.title('코어 시너지: 효율 vs 인기도 (진짜 이름 버전)', fontweight='bold', fontsize=18, pad=20)
plt.grid(True, alpha=0.3)
plt.tight_layout()
plt.show()
JavaScript
복사
참고 URL : https://long.vu/project/tft-id
Riot Games TFT Esports Palette
•
컬러 코드
•
#37137f
•
#4d33cc
•
#6262f9
•
#59a4ff
•
#ff732e
•
#fa961e
•
#ffb70d




