When graphing, which of the following is correct?

a) The x-axis is the dependent axis, and the y-axis is the independent axis.
b) The y-axis is the dependent axis, and the x-axis is the independent axis.

The normal practice is to use the x-axis for the independent variable, and the y-axis the dependent variable, as in

y=x²