Make sure the graph object gets updated upon changing the value of the X or Y parameter (#31).