I was reading the part that Euler-Lagrange equation holds even on changing the coordinates. In the book by David Morin, the author talks of geometrical picture of the change of coordinates. He makes the following point,
"If you plot a function and then stretch the horizontal axis in an arbitrary manner, a stationery value will be a stationary value after stretching."
My question is, how is change of coordinates equivalent to stretching the horizontal axis?