Don't scale graph axis when function's min value == max value

[#85268712]