[Python] matplotlib.pyplot 을 이용해서 line chart 만들기
LINE CHART import matplotlib.pyplot as plt plt.figure(figsize=(10, 5)) lang_list = ['2018', '2019', '2020', '2021', '2022'] plt.plot(lang_list, [10, 12, 15, 16, 20], marker='o') plt.plot(lang_list, [14, 16, 15, 18, 17], marker='o') plt.plot(lang_list, [20, 18, 15, 14, 12], marker='o') plt.legend(['Python', 'Java', 'Obj-C']) plt.grid(True) plt.show() plt.grid(False) 이면 Title, x, y Label plt.xlabe..
2022. 2. 20.