728x90 반응형 OOP2 [matplotlib] Object Oriented Style Tutorial Matplotlib Object Oriented Style Tutorial1. IntroductionMatplotlib은 Python의 2D plotting library로, 다양한 그래프와 플롯을 생성하는 데 사용됨.2024.03.04 - [Python/matplotlib] - [matplotlib] matplotlib란 [matplotlib] matplotlib란Matplotlib은 Python에서 가장 널리 사용되는 Data Visualization Library임. matplotlib를 통해 chart(차트),image(이미지) 및,다양한 visual representation of data이 가능함.pyplot 모듈을 통해 공학 계산 및 visualization으로ds31x.tistory.com.. 2024. 6. 3. [OOP] Example: MObject, Point, and Class 그려지는 객체를 추상화한 MObject 를 super-class로 하고,"점"을 추상화한 Point 클래스와Point 클래스를 상속하여"원"을 추상화한 Circle 클래스를 간단히 만들어 봄. 사실 Circle 클래스는 Point 클래스와 is-a 관계 보다는 has-a 관계가 어울리지만,연습을 위해서 만들어 봄.Environmentmatplotlib를 사용하여 그릭기 때문에 해당 라이브러리는 설치되어야 함.(Test 된 환경은 Python 3.12.1과 matplotlib 3.8.3임.)Filessrc 파일들의 구성은 다음과 같음.oop_test.pytest를 위한 main script.import matplotlib.pyplot as pltimport matplotlibimport oop.Circle.. 2024. 3. 23. 이전 1 다음 728x90 반응형