Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.0.1 - English

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

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

Scilab Help >> Graphics > annotation > xtitle

xtitle

add titles on a graphics window

Syntax

xtitle(title,[x_label,[y_label,[z_label]]],<opts_args>)

Arguments

title,x_label,y_label, z_label

matrices of strings.

Starting from Scilab 5.2, it is possible to write LaTeX or MathML expression.

<opt_args>

a sequence of statements key1=value1, key2=value2 ,... where keys may be boxed (see below). In this case, the order has no special meaning.

boxed

an integer value. If it is 1, a box is drawn around each title.

Description

xtitle add titles on a 2D or 3D plot. title is the general title and x_label, y_label and z_label are the titles on the three axis. If the arguments are matrices, each line of the matrices is displayed on a different line.

Enter the command xtitle() to see a demo.

Examples

plot3d() ;
// puts the titles
xtitle( 'My surface is blue', 'X axis', 'Y axis', 'Z axis' ) ;
// draw a box around the titles
xtitle( 'My surface is blue', 'X axis', 'Y axis', 'Z axis', boxed = %t );

// With LaTeX & MathML:
mathml="<mrow>      <mfrac>        <mrow>          <mi>d</mi>          <mi>y</mi>        </mrow>        <mrow>          <mi>d</mi>          <mi>x</mi>        </mrow>      </mfrac>      <mo>=</mo>      <mfrac>        <mn>1</mn>        <msup>          <mi>y</mi>          <mn>2</mn>        </msup>      </mfrac>    </mrow>";

xtitle( 'My surface is blue', 'X axis', '$Y axis$', mathml );

See also

Report an issue
<< xlabel annotation axes_operations >>

Copyright (c) 2022-2024 (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 Feb 12 19:26:50 CET 2018