Change Y domain.
Factorize code about graphing.