Recently
-
공부는 언제까지 해야 하나
[Python] matplotlib module - hist( ), boxplot( ), heatmap / Seaborn module
import matplotlib.pyplot as plt plt.hist( [list] , range = [ x axis range], bins = 10(default) , label = 'str' ) plt.legend( ) - np.historam ([list]) 는 array로만 return plt.boxplot( [data] ) - notch : median 값의 1sigma 신뢰구간 표현 - sym = outlier 모양 , ' ' 하면 no outlier - vert = 0 : horizontal box, default = 1(vertical box ) - plt.boxplot([ data, data2 ...]) 도 가능 plt.figure( ) plt.subplot( ) plt.clf( ) ..
-
공부는 언제까지 해야 하나
[Python] matplotlib module - bar( ) , pie( )
import matplotlib.pyplot as plt plt.bar( x, y, width = bar width, bottom = y start pt ) plt.pie( [pie size], labels = [labels], autopct = '%d', startangle = degree) - autopct = %d (정수), %f (실수), %.2f / %1.2f, %0.2f (소수 2자리 실수) - startangle 부터 CCW 방향으로. - explode - shadow - colors plt.axis('equal') - x-axis / y-axis scale 동일
-
공부는 언제까지 해야 하나
[Python] matplotlib module - scatter( )
import matplotlib.pyplot as plt plt.scatter( x, y, s = size, c = 'color', marker = 'D' (diamond) ) plt.plot과 비교 marker = (5, 0) : 5각형 polygon, (5, 1) : star, (5, 2) : asterisk, (5, 3) : circle iris.csv로 scatter( ) plot