Density Map 작성법
import pylab as plt import numpy as np # Sample data side = np.linspace(-2,2,4) # (최소값, 최대값, 격자 수). side = (-2, 2, 4)인 경우, [-2. -0.66666667 0.66666667 2. ]가 나옴. 즉 차=4, 간=3이니 4/3=1.3333... 차이의 배열이 생김. X,Y = np.meshgrid(side,side) print(X) print(Y) # Z = np.exp(-((X-1)**2+Y**2)) # 각 격자에 거기에 들어갈 값 Z = X * Y print(Z) # Plot the density map using nearest-neighbor interpolation plt.pcolormesh(X,Y,Z) p..