MATLAB: Draw objects (arrows, brackets, …) outside the axis area

arrowsbracketscurly bracketsoutside axis

I need to draw some objects (arrows, brackets, …) outside the axis area.. Any idea on how to do it?
In particular I would need to draw curly brackets outside the axis area.

Best Answer

plot(rand(1,20)); %your basic data
hold on
plot(randn(1,20), 'clipping', 'off'); %your brackets etc
ylim([0 1]);
hold off