Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.4.0 - 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 Scilab >> Biblioteca de Gráficos > text > xstring

xstring

imprime strings

Seqüência de Chamamento

xstring(x,y,str,[angle,[box]])

Parâmetros

x,y

escalares reais, coordenadas do ponto inferior esquerdo dos strings.

str

matriz de strings

angle

real, ângulo horário em graus; O valor padrão é 0.

box

inteio, o valor padrão é 0

Descrição

xstring imprime a matriz de strings str na localização x,y (ponto inferior esquerdo) na escala de gráficos corrente: cada linha da matriz significa uma linha de texto e os elementos das linhas são palavras separadas por espaços em branco. Se angle for dado, fornece a inclinação em graus para escrever os strings. Se box for 1 e angle for 0, uma caixa é desenhada ao redor dos strings.

Exemplos

plot2d([0;1],[0;1],0)
xstring(0.5,0.5,["Scilab" "não"; "é" "esilaB"])
//outro exemplo
alphabet=["a" "b" "c" "d" "e" "f" "g" ..
          "h" "i" "j" "k" "l" "m" "n" ..
          "o" "p" "q" "r" "s" "t" "u" ..
          "v" "w" "x" "y" "z"];
clf()
plot2d([0;1],[0;2],0)
xstring(0.1,1.8,alphabet)     // alfabeto
xstring(0.1,1.6,alphabet,0,1) // alfabeto em uma caixa
xstring(0.1,1.4,alphabet,20)  // ângulo
xset("font",1,1)              // usando fontes symbol
xstring(0.1,0.1,alphabet)
xset("font",1,3)              // mudando tamanho da fonte
xstring(0.1,0.3,alphabet)
xset("font",1,24); xstring(0.1,0.6,"a") //alfa grande

Ver Também

  • titlepage — adiciona título no meio de uma janela de gráficos
  • xnumb — Imprime números
  • xstringb — escreve strings em uma caixa
  • xstringl — computa uma caixa que cerca strings
  • xtitle — adidciona títulos a janelas de gráficos
Report an issue
<< xlfont text xstringb >>

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:
Mon Oct 01 17:39:51 CEST 2012