Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.0.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 > xstring

xstring

imprime strings

Seqüência de Chamamento

xstring(x, y, str)
xstring(x, y, str, angle)
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
set(gca(),"font_style",1,"font_size",1); // usando fontes symbol
xstring(0.1,0.1,alphabet)
xstring(0.1,0.3,alphabet)
gce().font_size = 3;          // mudando tamanho da fonte
xstring(0.1,0.6,"a") //alfa grande
gce().font_size = 24;

Ver Também

  • text_properties — description of the Text entity properties
  • Math mode in strings — Display mathematical equations in Scilab graphics through the LaTeX or MathML languages.
  • xnumb — Imprime números
  • xtitle — adidciona títulos a janelas de gráficos
  • titlepage — adiciona título no meio de uma janela de gráficos
Report an issue
<< xnumb 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:
Thu Feb 14 15:00:47 CET 2019