How to manage to specify the order of p1,r1, and r2?
For example, how can I put p1 between r1 and r2?
f = figure;p1 = plot(-2:4, rand(1, 7))r1 = rectangle('Position', [0 0 2 2], 'FaceColor', 'r');r2 = rectangle('Position', [1 1 2 2], 'FaceColor', 'g');axis([-2 4 -2 4])
Best Answer