Reset translation and scale when graph input changes in demo

Previously the demo keeps the same translation and scale until the user
tries to interact with the graph at which point it "snaps" back to the
original values.

This change automatically resets the translation and scale each time the
graph input is changed.

Fixes #56.