python - 是否可以使用 Matplotlib 绘制隐式方程?

标签 python matplotlib equation implicit sympy

我想在 Matplotlib 中绘制隐式方程(形式为 f(x, y)=g(x, y) 例如 X^y=y^x)。这可能吗?

最佳答案

既然你已经用 sympy 标记了这个问题,我就举一个这样的例子。

来自文档:http://docs.sympy.org/latest/modules/plotting.html .

from sympy import var, plot_implicit
var('x y')
plot_implicit(x*y**3 - y*x**3)

关于python - 是否可以使用 Matplotlib 绘制隐式方程?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2484527/

相关文章:

c# - 我应该缩放我的方程式输出数据吗?

python - 在 python 中转义 unicode 字符串

python - SimpleHTTPRequestHandler 在从 do_POST 方法返回之前关闭连接

python - 名为 "print"的 argparse 参数

python - 参数化行为特征,pytest 风格

python - 调整 matplotlib 中 3D 图的轴标签和名称方向

annotations - 使用两个箭头将椭圆注释链接到方程的两项

python - 提取矩阵的可变列数

python - Matplotlib 直方图不显示分布细节

nested - 创建一个包含嵌套环境的新环境