It is yet another custom (and this one is so ingrained that it's almost mandatory) to show the independent variable as the horizontal axis and the dependent variable as the vertical axis. ... But in pure mathematics, we often have no reason to choose other variable names, and so we use x and y.