Add plot callback