What has to be understood by the students is that the particular way of labeling the axis (including not labeling them at all) should be chosen based on what function features you want to emphasize with your graph. For instance
You want to convey the message that $f(x)$ is positive everywhere. Then having the horizontal axis on the graph is more than enough and the rest is pure noise.
You want to emphasize that $f$ is defined on $[-1,3]\cup[5,6]$ and maps those intervals into $[0,1]$ and $[6,7]$ respectively. Then marking $-1,3,5,6$ on the $x$-axis and $0,1,6,7$ on the $y$ axis is what you want.
You want to see the detailed behavior of $f(x)=x^2$ near the point $x=100$. Then you choose the bounding box $[98,102]\times [9600,10500]$, say with 10 equally spaced ticks in each (or equally spaced $x$-ticks and marked values of $f(x)$ at them on the $y$-axis
You want to show that $f(x)=10000+x^2$ is huge on $[0,1]$. Draw the horizontal axis through $0$ and mark the $y$-scale in thousands.
You want to show that the same function doesn't change much on $[0,1]$. Draw the horizontal axis at $y=10000$ and label $y$-axis in $0.1$-s.
And so on, and so forth. We draw a graph of a function to quickly tell a story about it, not just to exercise in connecting dots by a smooth line (though the latter skill requires some training as well). So, before choosing the scales and the bounding box, ask yourself "What story do I want to tell and what is the clearest way in which I can do it?". Or, when looking at the graph, ask "What are the features of the function I see immediately from that drawing and what are the features that would be hard to discern from it?". It is like choosing words in a sentence. There is a big difference between "I took a walk", "I took a long walk in a beautiful Fall forest", "I took a 7 mile walk on a hilly terrain with average inclination 5%" and "I took a 3 hour walk despite the fact that I should rather spend that time preparing my classes" while they all can describe the same full reality "I took a 3 hour walk of total length 7 miles (which I consider long) in a beautiful Fall forest located on a hilly terrain with average inclination 5%, though I should rather spend that time preparing my classes". The same applies to mathematical communication and, in particular, to mathematical communication using pictures. The real objective is to say exactly as much as you want to say in the clearest possible manner. Alas, as far as I know, there are no ready algorithms for that either in mathematics on in the natural language.