[추가자료] 9.3 데이터 시각화 Matplotlib - 직선, 점 그래프
직선 그래프 예제import matplotlib.pyplot as pltdef draw_chart() : """직선 그래프 그려보기""" input_values = [1,2,3,4,5] squares = [1,4,9,16,25] # 내장 스타일 지정 plt.style.use('seaborn-v0_8') fig, ax = plt.subplots() ax.plot(input_values, squares, linewidth=3) # 그래프 타이틀을 지정하고 축에 이름표를 붙인다. ax.set_title("Square Numbers", fontsize=24) ax.set_xlabel("Value", fontsize=14) ax.set_ylabel("Sq..
2024. 6. 11.