Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

vektor field in ploes go wild with the arrows near the poles - how to fix?

 x,y = var('x y')

f=1/sqrt(x^2+y^2)
grad= f.gradient([x,y])
plot_vector_field(grad, (x,-1,1), (y,-1,1)).show()

gives me this

image description

As you can see the errors very close to the pole "cross out" the whole pic. Obviously they are very large vectors, but they do harm the overall image. i have other plots where its worse. How can i work around that? can i blank out the direkt proximity of the pole, somehow? can i limit the vektors' length? How?

vektor field in ploes go wild with the arrows near the poles - how to fix?

 

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

f=1/sqrt(x^2+y^2)
grad= f.gradient([x,y])
plot_vector_field(grad, (x,-1,1), (y,-1,1)).show()

gives me this

image description

As you can see the errors arrows very close to the pole "cross out" the whole pic. Obviously they are very large vectors, but they do harm the overall image. i I have other plots where its worse. How can i I work around that? can i Can I blank out the direkt proximity of the pole, somehow? can i Can I limit the vektors' length? How?

vektor field in ploes go wild with the arrows near the poles - how to fix?

x,y = var('x y')

f=1/sqrt(x^2+y^2)
grad= f.gradient([x,y])
plot_vector_field(grad, (x,-1,1), (y,-1,1)).show()

gives me this

image description

As you can see the arrows very close to the pole "cross out" the whole pic. Obviously they are very large vectors, but they do harm the overall image. I have other plots where its worse. How can I work around that? Can I blank out the direkt proximity of the pole, somehow? Can I limit the vektors' length? How?

vektor field in ploes poles go wild with the arrows near the poles - how to fix?

x,y = var('x y')

f=1/sqrt(x^2+y^2)
grad= f.gradient([x,y])
plot_vector_field(grad, (x,-1,1), (y,-1,1)).show()

gives me this

image description

As you can see the arrows very close to the pole "cross out" the whole pic. Obviously they are very large vectors, but they do harm the overall image. I have other plots where its worse. How can I work around that? Can I blank out the direkt proximity of the pole, somehow? Can I limit the vektors' length? How?

vektor Arrow length goes wild near poles in vector field in poles go wild with the arrows near the poles - how to fix?plot

x,y = var('x y')Running this piece of code

f=1/sqrt(x^2+y^2)
grad= f.gradient([x,y])
x, y = var('x y')
f = 1/sqrt(x^2 + y^2)
grad = f.gradient([x, y])
plot_vector_field(grad, (x,-1,1), (y,-1,1)).show()
(x, -1, 1), (y, -1, 1)).show()

gives me this

image description

As you can see the arrows very close to the pole "cross out" the whole pic. Obviously they are very large vectors, but they do harm the overall image. I have other plots where its worse. How can I work around that? Can I blank out the direkt direct proximity of the pole, somehow? Can I limit the vektors' vectors' length? How?