>>12647564Like this. Define your x-axis range (extend it to say -0.5 and +0.5. Extend y-axis to 10. Then the total area of the graph is 10 units. Count the number of pixels within this graph. Then shade everything under the curve red. Count the number of red pixels.
Area = 10 * (# of red pixels)/(# of total pixels)