Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Unscaled arrows in a vector field

I have a vector field I'm plotting, but the arrows are scaled so small near the singular points, it's unclear which are sinks, sources, and saddles. Is there a way to change the arrow scaling so they are all the same length and the behavior is clearer?

sage: x,y = var('x,y') sage: VF = plot_vector_field(((x^2-1)(y^2-1)xy, (x^2+(y-3/8)^2-1/64)(x^2+(y+3/8)^2-1/64)), (x, -1,1), (y, -1,1)) sage: points = point([(0,1/4),(0,1/2),(0,-1/4),(0,-1/2)],color='red', size=25) sage: VF + points

Unscaled arrows in a vector field

I have a vector field I'm plotting, but the arrows are scaled so small near the singular points, it's unclear which are sinks, sources, and saddles. Is there a way to change the arrow scaling so they are all the same length and the behavior is clearer?

sage: x,y = var('x,y') var('x,y')

sage: VF = plot_vector_field(((x^2-1)(y^2-1)xy, (x^2+(y-3/8)^2-1/64)(x^2+(y+3/8)^2-1/64)), (x, -1,1), (y, -1,1)) -1,1))

sage: points = point([(0,1/4),(0,1/2),(0,-1/4),(0,-1/2)],color='red', size=25) size=25)

sage: VF + points

Unscaled arrows in a vector field

I have a vector field I'm plotting, but the arrows are scaled so small near the singular points, it's unclear which are sinks, sources, and saddles. Is there a way to change the arrow scaling so they are all the same length and the behavior is clearer?

sage:

x,y = var('x,y')

sage: var('x,y') VF = plot_vector_field(((x^2-1)(y^2-1)xy, (x^2+(y-3/8)^2-1/64)(x^2+(y+3/8)^2-1/64)), plot_vector_field(((x^2-1)*(y^2-1)*x*y, (x^2+(y-3/8)^2-1/64)*(x^2+(y+3/8)^2-1/64)), (x, -1,1), (y, -1,1))

sage: -1,1)) points = point([(0,1/4),(0,1/2),(0,-1/4),(0,-1/2)],color='red', size=25)

sage: size=25) VF + points

points