Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.4.0 - Русский

Change language to:
English - Français - 日本語 - Português -

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

Scilab help >> Graphics > xchange


transform real to pixel coordinates

Calling Sequence




two matrices of size (n1,n2) (coordinates of a set of points).


parameter used to specify the conversion type (See "Description" for details)


two matrices of size (n1,n2) (coordinates of the set of points).


a vector of size 4.


After having used a graphics function, xchange computes pixel coordinates from real coordinates and conversely, according to the value of the parameter dir: "f2i" (float to int) means real to pixel and "i2f" (int to float) means pixel to real. x1 and y1 are the new coordinates of the set of points defined by the old coordinates x and y.

rect is the coordinates in pixel of the rectangle in which the plot was done: [upper-left point, width, height].


Report an issue
<< xbasr Graphics xclear >>

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:41:09 CEST 2012