Placing price on the vertical axis of supply and demand graphs is indeed a long-standing historical convention rather than a mathematical requirement.