How to draw a curly brace outside the gca?

13 visualizaciones (últimos 30 días)
Sim
Sim el 21 de Oct. de 2020
Respondida: Sim el 22 de Oct. de 2020
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)

Respuesta aceptada

Sim
Sim el 22 de Oct. de 2020

Más respuestas (1)

Asad (Mehrzad) Khoddam
Asad (Mehrzad) Khoddam el 21 de Oct. de 2020
Use negative ccordinates for the brace byt xlim from 0
drawbrace([-0.5,3], [-0.5,8], 10);
xlim([0,Inf]);
  3 comentarios
Asad (Mehrzad) Khoddam
Asad (Mehrzad) Khoddam el 21 de Oct. de 2020
Sorry, you are right.
the brace will be clipped and is not shown
Sim
Sim el 21 de Oct. de 2020
:)

Iniciar sesión para comentar.

Categorías

Más información sobre Characters and Strings en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by