본문 바로가기
728x90
반응형

Python/matplotlib23

[matplotlib] Scripting Layer vs. Artist Layer Scripting Layer vs. Artist LayerMatplotlib는Scripting Layer와 (이를 이용시 scripting style 이라고 불림)Artist Layer 라는 (이를 이용시 object-oriented style 이라고 불림)두 가지 주요 인터페이스를 plot을 그리기 위해 제공함. 이 외에 backend layer를 가지는데 이는 사용자가 plots를 그릴 때 직접 이용하는 인터페이스가 아님.2023.07.20 - [Python/matplotlib] - [Python] matplotlib : backend란 [Python] matplotlib : backend란matplotlib: backend란 matplotlib의 backend 관련자료를 정리한 문서임.Matplo.. 2024. 6. 2.
[Etc] Anti-Grain Geometry (AGG) Anti-Grain Geometry (AGG) Anti-Grain Geometry(AGG)는 다음과 같은 특징을 가지는Open-source 고성능 2D 벡터 그래픽 라이브러리임.C++로 구현됨.anti-alising과 sub-pixel 정확도에 중점을 두고고품질의 이미지를 생성할 수 있도록 설계된유연하고 확장 가능한 라이브러리.AGG는 다양한 OS에서 동작 가능하며, 수많은 그래픽 사용자 인터페이스와 호환되며, 동시에 독립적으로도 작동가능함.Anti-Grain이란?In the context of the Anti-Grain Geometry (AGG) library, "grain" metaphorically refers to the coarse, pixel-based rendering methods that.. 2024. 4. 29.
[matplotlib] patches: 도형 그리기. patches 는 모듈은Artist 의 subclass인 Patch 클래스들을 제공하여,다음의 다양한 2D 도형을 쉽게 그릴 수 있게 해줌.Arc (호),Circle (원),CirclePolygon (원의 근사 다각형),Ellipse (타원),Arrow (화살표),FancyArrow (모양 변경 기능이 좀 더 보강된 화살표),Rectangle (사각형),RegularPolygon (정규다각형), PathPatch 등등 다음 그림은 Artist와 Patch, 그리고 patches에서 실제 사용되는 다양한 도형을 추상화한 클래스간의 상속관계를 보여줌.간단히 말하면,Patch는 face color와 edge color를 가지는 Artist 임. 예제: 원그리기.간단하게 Circle을 이용하여 원을 그리는 .. 2024. 3. 18.
[matplotlib] matplotlib란 Matplotlib은 Python에서 가장 널리 사용되는 Data Visualization Library임. matplotlib를 통해 chart(차트),image(이미지) 및,다양한 visual representation of data이 가능함.pyplot 모듈을 통해 공학 계산 및 visualization으로 많이 사용되어온 MATLAB와 거의 같은 interface를 제공해줌. matplotlib의 pyplot은 MATLAB과 interface가 유사한 functions의 collection임. https://matplotlib.org/ Matplotlib — Visualization with Pythonseaborn seaborn is a high level interface for drawing.. 2024. 3. 4.
[matplotlib] inset: inset_axes and indicate_inset_zoom "Inset" is a small graph which is presented within the other graph. 다음 예제는 일정부분을 확대해서 보여주는 inset 의 예제임. (matplotlib 사이트의 예제로 원본은 아래 Reference를 참고) Axes 객체에서 imshow 의 경우, extent 파라메터를 통해 보여줄 x, y의 범위를 지정할 수 있음. inset_axes method가 inset을 그리기 위한 Axes 객체를 반환 해주며, 다음의 parameters를 가짐. 1st positional parameter: inset이 그려질 영역을 나타내는 x 좌표, y 좌표, width, heigt로 호출에 사용된 Axes 객체에서 해당 영역에 inset이 추가됨. xlim: ins.. 2024. 1. 23.
[matplotlib] Visualization: Graph, Chart, Diagram, Figure Visualization: Graph, Chart, Diagram, FigureVisualization데이터나 정보를 시각적 형태로 변환 또는 표현하는 방법 또는 과정을 가르킴.graph, chart, map 등등을 활용함.데이터를 쉽게 이해하거나 해석할 수 있도록 도와주는 방법을 가르킴.Graph여러 변수들 간의 (수학적) 관계를 점, 선, 곡선등으로 표시하는 visual tool을 의미함.주로 2D 또는 3D의 시각적 표현물을 가르킴.수학, 과학, 공학 분야에서 많이 사용되며,다르게는 chart 라고도 불림 (Chart의 subset이라고 보는 경우가 많음).Chart주로 정량적 데이터의 1) "비교", 2) "분석" 및 3) "통계적 정보 시각화"를 위해 사용되는 visual toolGraph를 포.. 2024. 1. 22.
728x90
반응형