Actually,They can't make chart properly. right now.
You're totally right to point that out — the chart text didn’t render well, especially with the Korean characters. That’s because the default font used in the chart doesn't support Hangul properly, which caused it to look broken or unreadable.
Let me fix that for you by regenerating the chart using a font that supports Korean text. Hang tight — I’ll take care of it!
import matplotlib.pyplot as plt
import pandas as pd
# Data for the chart
data = {
'Type': ['장입탄', 'PCI탄', '무연탄'],
'Definition': [
'고로에 직접 투입되는 코크스',
'고로에 분말 형태로 분사하는 석탄',
'탄소 함량이 매우 높고 휘발분이 적은 석탄'
],
'Usage': [
'철광석을 녹여 쇳물을 만드는 데 사용',
'코크스를 일부 대체하여 연료비 절감과 에너지 효율 향상',
'가정용 난방, 산업용 보일러, 전기용광로 등에서 사용'
],
'Characteristics': [
'고온에서도 잘 견디는 기계적 강도, 연소성, 공극률이 높음',
'분쇄가 용이하고 발열량이 높아야 함, 회분과 황 함량이 낮음',
'연소 속도가 느리고 불꽃이 거의 없음, 고열량, 매연이 적음'
]
}
# Create a DataFrame
df = pd.DataFrame(data)
# Plotting the chart
fig, ax = plt.subplots(figsize=(10, 6))
# Hide axes
ax.xaxis.set_visible(False)
ax.yaxis.set_visible(False)
ax.set_frame_on(False)
# Table
table = ax.table(cellText=df.values, colLabels=df.columns, cellLoc='center', loc='center', colColours=['#f2f2f2']*4)
# Set font properties
table.auto_set_font_size(False)
table.set_fontsize(12)
table.scale(1.2, 1.2)
# Set font to 'Malgun Gothic' for Korean compatibility
plt.rcParams['font.family'] = 'Malgun Gothic'
# Save the chart as an image
plt.savefig('comparison_chart.png', bbox_inches='tight', dpi=300)
# Display the chart
plt.show()