python시각화
-
[Python]시각화_Matplotlib_스타일 옵션[완성]공부/Python 2021. 6. 8. 10:17
아래 그림과 깉이 기본적인 그래프 정보를 알 수 있다. 스타일 옵션 1. Title, fontsize 2. X,Y 축 lable 3. X,Y 축 Tick (rotation) 4. 범례 (legend) 5. X,Y 축 limit 설정 - 확대해서 잘러서 보는 거 가능 6. 스타일 세부 설정 - marker,markersize '.' point marker ',' pixel marker 'o' circle marker 'v' triangle_down marker '^' triangle_up marker '' triangle_right marker '1' tri_down marker '2' tri_up marker '3' tri_left marker '4' tri_right marker 's ' square ..
-
[Python]_시각화_Matplotlib_plot,figure, subplot, subplots공부/Python 2021. 6. 7. 13:46
[기본 형태] 1) 데이터 생성 2) 도화지에 데이터 넣어주기 3) 그래프를 그린다. 1. plt.plot(데이터) 단일 그래프 그리기 data = np.arrange (1,100) plt.plot(data) plot.show() - 1개의 캔버스 안에 다중 그래프 그리기 :n개의 데이터를 생성하고 이를 플롯에 다 그려주면 된다. data = np.arange(1, 51) data2 = np.arange(51, 101) plt.plot(data) plt.plot(data2) plt.show() 2. plt.figure() : 도화지를 추가하여 다중 그래프 그린다 data = np.arange(100, 201) plt.plot(data) data2 = np.arange(200, 301) plt.figure..