Matlab App Designer Axes buttondownfcn

function lineCallback(src,~)
   src.Color = rand(1,3);
end
Noob_Code