Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: Français - Português - 日本語 - Русский
Scilab Help >> Graphics > xchange


transform real to pixel coordinates


[x1, y1, rect] = xchange(x, y, dir)


x, y

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


a string, parameter used to specify the conversion type (See "Description" for details).

x1, y1

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].


Scilab Enterprises
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Mon Jan 03 14:23:29 CET 2022