공부는 언제까지 해야 하나
[Python] matplotlib module - bar( ) , pie( )
GamJaMongCHu
2021. 2. 4. 23:33
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 동일