블로그 이미지
shadowchaser
이곳 저곳 이것 저것

calendar

1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31

Notice

Matplotlib은 python 2D plotting library로서 png, jpg등의 파일 형식으로 이미지를 생성해주는, cross platform의 라이브러리이다.


Matplotlib를 통해 무엇을 만들 수 있냐면, plot, histogram, power spectra, bar chart, error chart, scatterplot 등등을 매주 적은 코드만을 가지고 만들 수가 있다. 


Python에서 

최고로 유용하고 강력한 !!!

Visualization 라이브러리라는 것을 잊지 말자!!!



사실 Matlab의 plotting 기능을 베낀 거...

Matlab의 plotting 기능을 차용하여 동일하게 만든 것이긴한데

상세정보는 https://matplotlib.org에

Matplotlib는 https://matplotlib.org 에서 자세한 내용을 확인할 수 있다. 특히 gallery에서 내가 원화는 화면을 클릭하면 어떻게 구현할 수 있는지에 대한 코드가 나와 있는데, 굉장히 유효하다.


갤러리는 꼭 들어가보자

barh_demo
barh_demo
 
fill_demo
fill_demo
fill_demo_features
fill_demo_features
 
line_demo_dash_control
line_demo_dash_control

customized_violin_demo
customized_violin_demo
 
errorbar_demo
errorbar_demo
 
errorbar_demo_features
errorbar_demo_features
errorbar_limits
errorbar_limits
 
errorbars_and_boxes
errorbars_and_boxes
 
histogram_demo_cumulative
histogram_demo_cumulative
 
histogram_demo_features
histogram_demo_features
histogram_demo_histtypes
histogram_demo_histtypes
 
histogram_demo_multihist
histogram_demo_multihist
 

사람들이 matplot을 별로 안좋아하는 이유

이렇게 강력한 기능을 소지하고 있음에도 불구하고, 안좋아하는 사람들이 있다. 
첫번째이유는 객체지향(object oriented) API 구조이기 때문이다.
두번째이유는 function API oriented 구조이기 때문이다. 
그래서 이 두가지가 사람들을 헷갈리게 만드는데 그래서 사람들이 사용하길 원하지 않더라. (어느 부분을 어떻게 수정해야할지 감이 잘 안와서..)
그렇기에 이 두가지를 제대로 마스터 해야한다.


그럼 함 진행해보자!

'Python > 02_Visualization with Matplotlib, Pandas' 카테고리의 다른 글

4. Pandas를 통한 시간별 시각화  (2) 2017.10.07
3. Pandas Visualization 개요  (0) 2017.10.07
2. Matplotlib 활용하기  (1) 2017.10.06
0. 들어가기전에  (0) 2017.10.06
posted by shadowchaser