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

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

Please note that the recommended version of Scilab is 2024.0.0. This page might be outdated.
However, this page did not exist in the previous stable version.

Справка Scilab >> Графики > xgetech

xgetech

get the current graphics scale (obsolete)

Syntax

[wrect, frect, logflag, arect] = xgetech()

Arguments

wrect, frect

real vectors.

logflag

string of size 2 "xy".

Description

This function is obsolete. It will be removed from Scilab 6.1. Please use ax=gca(); (ax.axes_bounds, ax.data_bounds(:)', ax.log_flags, ax.margins) or any combination instead.

xgetech returns the current graphics scale (of the current window). The rectangle [xmin, ymin, xmax, ymax] given by frect is the size of the whole graphics window. The plotting will be made in the region of the current graphics window specified by wrect.

wrect=[x, y, w, h] (upper-left point, width, height) describes a region inside the graphics window. The values in wrect are specified using proportion of the width and height of the graphics window:

wrect=[0, 0, 1, 1] means that the whole graphics window is used.

wrect=[0.5, 0, 0.5, 1] means that the graphics region is the right half of the graphics window.

logflag is a string of size 2 "xy", where x and y can be "n" or "l". "n" stands for normal (linear) scale and "l" stands for logscale. x stands for the x-axis and y stands for the y-axis.

arect = [x_left, x_right, y_up, y_down] gives the frame size inside the subwindow. The graphic frame is specified (like wrect) using proportion of the width or height of the current graphic subwindow. Default value is 1/8*[1,1,1,1]. If arect is not given, current value remains unchanged.

Examples

// first subwindow
xsetech([0,0,1.0,0.5])
plot2d()
// then xsetech is used to set the second sub window
xsetech([0,0.5,1.0,0.5])
grayplot()
// get the graphic scales of first subwindow
xsetech([0,0,1.0,0.5])
[wrect,frect,logflag,arect]=xgetech();
// get the graphic scales of second subwindow
xsetech([0,0.5,1.0,0.5])
[wrect,frect,logflag,arect]=xgetech();

See also

  • xsetech — set the sub-window of a graphics window for plotting

History

VersionDescription
6.0.1 xgetech() is tagged obsolete for removal from Scilab 6.1.
Report an issue
<< xget Графики xset >>

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 Feb 12 20:08:39 CET 2018