The gradient of a line is defined as the ratio of the change in y to the change in x. The change in y from point to point is 3 since the y-coordinate of the line goes from 1 to 4:

Similarly, the change in x from point to point is also 3, since the x-coordinate goes from 3 to 6:

Then, being the gradient the ratio of the above quantities:

We have that the gradient of a line joining points (3, 1) and (6, 4) is 1.