【发布时间】:2020-03-01 05:28:22
【问题描述】:
我需要以极坐标形式给出的以下非线性系统的相位图...
\dot{r} = 0.5*(r - r^3)
\dot{\theta} = 1
我知道如何在 Mathematica 中做到这一点...
field1 = {0.5*(r - r^3), 1};
p1 = StreamPlot[Evaluate@TransformedField["Polar" -> "Cartesian", field1, {r, \[Theta]} -> {x, y}], {x, -3, 3}, {y, -3, 3}, Axes -> True, StreamStyle -> Gray, ImageSize -> Large];
Show[p1, AxesLabel->{x,y}, ImageSize -> Large]
如何在 Python 中使用 pyplot.quiver 做同样的事情?
【问题讨论】:
标签: python matplotlib plot wolfram-mathematica polar-coordinates