How to draw a curly brace outside the gca?

10 ビュー (過去 30 日間)
Sim
Sim 2020 年 10 月 21 日
回答済み: Sim 2020 年 10 月 22 日
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)

採用された回答

Sim
Sim 2020 年 10 月 22 日

その他の回答 (1 件)

Asad (Mehrzad) Khoddam
Asad (Mehrzad) Khoddam 2020 年 10 月 21 日
Use negative ccordinates for the brace byt xlim from 0
drawbrace([-0.5,3], [-0.5,8], 10);
xlim([0,Inf]);
  3 件のコメント
Asad (Mehrzad) Khoddam
Asad (Mehrzad) Khoddam 2020 年 10 月 21 日
Sorry, you are right.
the brace will be clipped and is not shown
Sim
Sim 2020 年 10 月 21 日
:)

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeAnnotations についてさらに検索

Translated by