Change log to assert
When zooming out (right hand side fixed) this will cause the same values to be mod'd out each time. Otherwise the values chosen will rotate and cause flickering.
Handle zooming in/out on graph