Find where y=sinx and y=cosx meet. Dividing sinx=cosx by cosx gives tanx=1, which holds when x=4π+nπ for an integer n.
For example, at x=4π both equal 22, and at x=45π both equal −22. The large dots mark these two crossings; the curves keep meeting every π thereafter.