How to get error of the graf?

Hello,

How can I draw the errors of a graf?

F. eks errors of the following graf:

Y= sin x

Thank You.

Use TGraphErrors instead of TGraph (I suppose what you call a “graf” is a TGraph)