How to draw a curly brace outside the gca?

조회 수: 16 (최근 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 CenterFile Exchange에서 Characters and Strings에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by