how can one plot an XY scatter graph in C from generated values of y = f(x)?