14. 원 그래프 (심화)
import matplotlib.pyplot as pltimport matplotlibmatplotlib.rcParams['font.family'] = 'Malgun Gothic'matplotlib.rcParams['font.size'] = 15matplotlib.rcParams['axes.unicode_minus'] = Falsevalues = [30, 25, 20, 13, 10, 2] #원그래프 그릴 때 values 와 labels 필요함.labels = ['Python', 'Java', 'Javascript', 'C#', 'C/C++', 'ETC']plt.pie(values, labels=labels, autopct='%.1f%%', startangle = 90, counterclock = Fals..
2024. 7. 2.
13. 원 그래프 (기본)
import matplotlib.pyplot as pltimport matplotlibmatplotlib.rcParams['font.family'] = 'Malgun Gothic'matplotlib.rcParams['font.size'] = 15matplotlib.rcParams['axes.unicode_minus'] = Falsevalues = [30, 25, 20, 13, 10, 2] #원그래프 그릴 때 values 와 labels 필요함.labels = ['Python', 'Java', 'Javascript', 'C#', 'C/C++', 'ETC']plt.pie(values)plt.show()values = [30, 25, 20, 13, 10, 2] #원그래프 그릴 때 values 와 labels ..
2024. 7. 2.