Plots How to get exact point of intersection of a plot with axis?

Plots How to get exact point of intersection of a plot with axis ?

x=range(0,stop=2pi,length=365)
plot!(sin.(x))

x is intersecting with y at -1 , I expect on 0 level
Paul

plot(x, sin.(x))

Not sure if I fully understood the question, tho.

cos

X axis is intersect wit Y on -1 point. I excpect 0.0 x 0.0 , central cross !
Paul

Not sure if I understand. Maybe you want the coordinate axis through (0,0)?

using Plots
x=range(-pi,stop=pi,length=365)
plot(x,sin.(x), framestyle=:origin)
2 Likes

With Gaston:

using Gaston
x=range(-pi,stop=pi,length=365)
plot(x,sin.(x), xzeroaxis="on", yzeroaxis="on", grid="on")

produces
image

2 Likes