Plotting math graph