我不认为对此有很好的支持,但是您可以尝试类似的方法
import matplotlib.pyplotfrom numpy import arangefrom numpy import meshgriddelta = 0.025xrange = arange(-5.0, 20.0, delta)yrange = arange(-5.0, 20.0, delta)X, Y = meshgrid(xrange,yrange)# F is one side of the equation, G is the otherF = Y**XG = X**Ymatplotlib.pyplot.contour(X, Y, (F - G), [0])matplotlib.pyplot.show()
请参阅API文档以获取
contour:如果第四个参数是一个序列,则它指定要绘制的轮廓线。但是该图将仅与您的范围的分辨率一样好,并且某些功能可能永远无法正确显示,通常是在自相交点。



