Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.5.2 - Português

Change language to:
English - Français - 日本語 - Русский

Please note that the recommended version of Scilab is 2024.0.0. This page might be outdated.
See the recommended documentation of this function

Ajuda do Scilab >> Biblioteca de Gráficos > text > xstringb

xstringb

escreve strings em uma caixa

Seqüência de Chamamento

xstringb(x,y,str,w,h,[option])

Parâmetros

x,y,w,h

vetor de 4 escalares reais definindo a caixa

str

matriz de strings

option

string

Descrição

xstringb desenha a matriz de strings str centrada dentro do retângulo rect=[x,y,w,h] (ponto inferior esquerdo, largura, altura) na escala gráfica corrente.

Se option for fornecido com o valor "fill", o tamanho do caractere é computado de modo a preencher o retângulo o máximo possível.

Entre com o comando xstringb() para uma demonstração.

Exemplos

str=["Scilab" "não";"é" "elisaB"];
plot2d(0,0,[-1,1],"010"," ",[0,0,1,1]);
r=[0,0,1,0.5];
xstringb(r(1),r(2),str,r(3),r(4),"fill");
xrect(r(1),r(2)+r(4),r(3),r(4))
r=[r(1),r(2)+r(4)+0.01,r(3),r(4)/2];
xrect(r(1),r(2)+r(4),r(3),r(4))
xstringb(r(1),r(2),str,r(3),r(4),"fill");
r=[r(1),r(2)+r(4)+0.01,r(3),r(4)/2];
xrect(r(1),r(2)+r(4),r(3),r(4))
xstringb(r(1),r(2),str,r(3),r(4),"fill");

Ver Também

  • titlepage — adiciona título no meio de uma janela de gráficos
  • xstring — imprime strings
  • xstringl — computa uma caixa que cerca strings
  • xtitle — adidciona títulos a janelas de gráficos
Report an issue
<< xstring text xstringl >>

Copyright (c) 2022-2023 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Wed Apr 01 10:24:20 CEST 2015