Plotting Vector Fields in Sage
Sage has two commands for plotting vector fields. For 2D vector fields, use plot_vector_field((fx, fy), (x, x0, x1), (y, y0, y1))
. I recommend also adding the option aspect_ratio=1
to make the window square.
(x, y, z)
For a 3D vector field, use plot_vector_field3d
, as below. (This will be squared off by default.)
3D rendering not yet implemented