MATLAB App Designer Achsen ButtonDownfcn

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