What does vertical axis mean in math?
The vertical axis in a plane coordinate graph
I have no idea what you mean by energy being or not being linear. In math and physics, a relationship is linear if a graph of one quantity vs. another quantity is a straight line. It isn't clear what you are comparing the energy against. In other words, assuming you plot energy on the vertical axis, what you you plot in the horizontal axis?