brunch

You can make anything
by writing

C.S.Lewis

by Master Seo Mar 07. 2020

54. 개발환경 툴 아나콘다 설치

<1>  개발 툴  아나콘다 설치하기

<2>  matplotlib로  시각화 하기

<3>  데이터 구하기

<4> Linux에서  파이썬 실행하기

<5>  Linux에서  그래프 그리는 matplotlib  설치하기 

<6> 추가로 해볼것 : 라즈베리파이에서 그래프 그래보기



<1>  개발 툴  아나콘다 설치하기


환경 : Windows  PC 


1. 아나콘다 설치하면,  파이썬, 각종 라이블러리, 주피터 노트북이 설치된다.

오른쪽 위 Download 클릭

https://www.anaconda.com/distribution/




2. Python 3.7 version으로 다운로드해서 설치한다.




3. 주피터 노트북 환경에서  개발을 하도록 하자.

Windows PC에  설치된  Jupyter notebook 실행한다.



4. 아래 검은 화면은 반드시 유지 한상 태이여야 제대로 동작한다.

절대 닫지 않도록 해야 한다.



5. 오른쪽 New > Python3 클릭해 실행한다.





<2>  matplotlib로  시각화 하기

matplotlib  함수를 이용해 시각화 하자.



1. 간단한 함수 사용해 시각화 하기 


import matplotlib.pyplot as plt

plt.plot([10,20,30,40])

plt.show()



windows pc 에서 실행




2. 그래프 그리기 샘플 코드들  Examples 

https://matplotlib.org/


샘플  코드1

https://matplotlib.org/gallery/lines_bars_and_markers/multicolored_line.html#sphx-glr-gallery-lines-bars-and-markers-multicolored-line-py




<3>  데이터 구하기

공공데이터 포털

https://data.kma.go.kr/cmmn/main.do

회원가입



<4> Linux에서  파이썬 실행하기





<5>  Linux에서  그래프 그리는 matplotlib  설치하기 

참고로, xwindows가 설치되어 있는 환경에서 결과 그래프가 그려진다.

https://matplotlib.org/faq/installing_faq.html#install-from-git


git clone git://github.com/matplotlib/matplotlib.git 

cd matplotlib 

python -mpip install .


yum install python-pip

pip --version


https://matplotlib.org/faq/installing_faq.html#linux-notes




<6> 추가로 해볼것 : 라즈베리파이에서 그래프 그래보기



감사합니다.


매거진의 이전글 53. Google Gsuit 사용해보기
작품 선택
키워드 선택 0 / 3 0
댓글여부
afliean
브런치는 최신 브라우저에 최적화 되어있습니다. IE chrome safari