cosine graph