ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • matplotlib과 matplotlib.pyplot의 차이
    카테고리 없음 2020. 10. 24. 17:54

    matplotlib : 전체를 아우르는 라이브러리(모듈) 이다

    matplotlib.pyplot : matplotlib의 하위 라이브러리(모듈)중 하나 이다

    • pyplot은 사용환경 인터페이스(static-machine interface)를 제공한다
    • pyplot의 인터페이스는 겉으로는 드러나지 않으면서 자동으로 figure와 axes를 생성하며, 정의된 플롯을 얻을 수 있도록 만들어 준다.

    matplotlib.pyplot 이 라이브러리(모듈)임을 알 수 있다


    matplotlib.pyplot 모듈의 내부 변수, 모듈, 함수 등등의 갯수 

     

    matplotlib 모듈의 내부 변수, 모듈, 함수 등등의 갯수 


    matplotlib.pyplot 모듈의 내부 정의된 것들의 타입

    type 타입
    str 타입
    제대로 기입했지만 type으로 알 수 없다..
    function 타입
    심지어 matplotlib.pyplot.style 도 라이브러리(모듈)임을 알 수 있다!
    드디어 함수 타입이 나왔다!

    즉, 모듈, 모듈, 모듈, 함수 이렇게 구성되어 있다!

    -> matplotlib > matplotlib.pyplot > matplotlib.pyplot.style > matplotlib.pyplot.pyplot.style.use()

     

    출처 : http://cloudrain21.com/python-difference-between-import-from-import

    댓글

Designed by Tistory.