This is exactly what I needed for a program I'm writing. I'm looking to make a small twist on using it, that is, to have my program wait for the first one to be clicked and when that's done, move on to something else. I've tried waitfor(p, 'ButtonDownFcn') and also a while loop (while goodplots(1:end) == 0)... but these don't seem to work. Any recs on embedding this?