작성일자 : 2024-10-08Ver 0.1.1참고 사이트 : wiki docs matplotlib.pyplot 모듈의 subplot() 함수는 여러 개의 그래프를 하나의 그림에 나타내도록 한다.이번 포스팅에서는 subplot() 함수를 사용해서 여러 개의 그래프를 나타내고, 축을 공유하는 방법을 소개한다. Keyword: plt.subplot(), 여러 개의 그래프, 축 공유기본 사용예제import numpy as npimport matplotlib.pyplot as pltx1 = np.linspace(0.0, 5.0)x2 = np.linspace(0.0, 2.0)y1 = np.cos(2 * np.pi * x1) * np.exp(-x1)y2 = np.cos(2 * np.pi * x2)plt.subplo..
작성일자 : 2024-09-21수정일자 : 2024-09-26Ver 0.1.2Matplotlib 해부도subplot() 이용 matplotlib.pyplot.subplot — Matplotlib 3.5.3 documentationThree integers (nrows, ncols, index). The subplot will take the index position on a grid with nrows rows and ncols columns. index starts at 1 in the upper left corner and increases to the right. index can also be a two-tuple specifying the (first, last) inmatplotlib.org..