Scilab 6.0.2
      
      
    Please note that the recommended version of Scilab is 2026.0.0. This page might be outdated.
See the recommended documentation of this function
xstringl
computa uma caixa que cerca strings
Seqüência de Chamamento
rect=xstringl(x,y,str,[fontId,fontSize])
Parâmetros
- rect
 vetor de reais de 4 entradas definindo a caixa
- x,y
 escalares reais, coordenadas do ponto infeirior esquerdo
- str
 matriz de strings
- fontId
 um inteiro especificando o tipo de fonte
- fontSize
 um inteiro especificando o tamanho da fonte
Descrição
xstringl retorna em
            rect=[x,y,w,h] (ponto superior esquerdo, largura,
            altura) o tamanho do retângulo na escala de gráficos corrente que cerca os
            strings str escritos na localização
            x,y (ponto inferior esquerdo).
O resultado pode ser aproximado utilizando-se um driver Postscript.
Exemplos
plot2d([0;1],[0;1],0) str=["Scilab" "não";"é" "elisaB"]; r=xstringl(0.5,0.5,str) xrects([r(1) r(2)+r(4) r(3) r(4)]') xstring(r(1),r(2),str) plot2d([0;1],[0;1],0) str=["Scilab" "não";"é" "Matlab"]; r2 = xstringl(0.5,0.5,str,2,5) xrects([r2(1) r2(2)+r2(4) r2(3) r2(4)]') xstring(r2(1),r2(2),str) txt2=gce(); txt2.font_size = 5; txt2.font_style = 2;
Ver Também
| Report an issue | ||
| << xstringb | text | transform >> |