matplotlib函數庫使用contour繪製等高線圖形

#coding=utf-8 import numpy as np import matplotlib.pyplot as plt def height(x,y): return (1-x/2+x**5+y**3)*np.exp(-x**2-y**2) x=np.linspace(-3,3,300) y=np.linspace(-3,3,300) X,Y=np.meshgrid(x,y) p
相關文章
相關標籤/搜索