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
相关文章
相关标签/搜索