Updating simple function curves according to variables

XXX: all curves and plot updated needlessly, only update the needed
curve