Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.3.2 - Français

Change language to:
English - 日本語 - 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

Aide Scilab >> Graphiques: export et impression > driver

driver

select a graphics driver

Calling Sequence

driver(driver_name)
current_driver=driver()

Arguments

driver_name

string, driver to be selected.

Description

This function is used to select a graphics driver, or with no arguments to get the current graphics driver name. The selected driver can be one of the followings:

"X11"

output to the screen of the computer.

"Pos"

output into Postscript format.

"Rec"

output to the screen of the computer. Same as X11.

"Fig"

output into XFig format.

"GIF"

output into Gif format.

"PPM"

output into PPM format.

Remark

To convert "GIF" or "PPM" files to other image format or for building animation one can use the "convert" program for ImageMagic (http://www.imagemagick.org/)

To redirect the graphic output to a GIF file (which will be written in the current directory), you can use the following example:

driver('GIF');
xinit('mygiffile.gif');
plot3d();
xend();
driver('X11');

For example if one has generated a sequence of Gif files named img*.gif it is possible to build an animated Gif file (named anim.gif) by

convert -delay 10  img*.gif anim.gif

Authors

J.Ph.C.

<< xinit Graphiques: export et impression xs2bmp >>

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:
Thu May 12 11:45:00 CEST 2011