Solution provided by Walter Roberson:
How to draw a curly brace outside the gca?
20 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi I would like to move a curly brace (with the function drawbrace) outside the gca (as the annotations, which can go outside the gca).. Any idea?
x = 1:10;
y = [2 5 4 1 2 4 1 8 1 2];
plot(x,y)
drawbrace([1,3], [1,8], 10)
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (1)
Asad (Mehrzad) Khoddam
am 21 Okt. 2020
Use negative ccordinates for the brace byt xlim from 0
drawbrace([-0.5,3], [-0.5,8], 10);
xlim([0,Inf]);
3 Kommentare
Asad (Mehrzad) Khoddam
am 21 Okt. 2020
Sorry, you are right.
the brace will be clipped and is not shown
Siehe auch
Kategorien
Mehr zu Annotations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!