Win_scaled()

Controls and creates pre-scaled windows for plotting data.

WIN_SCALED dxmin=Real dxmax=Real dymin=Real dymax=Real wxmin=Real wxmax=Real wymin=Real wymax=Real [colour=Colour] [minmode=Integer] [maxmode=Integer] Creates a scaled window.

example:

	# Creating and displaying a scaled
	# window
	>> win_scaled 0.1 0.9 0.1 0.9 -100.0 10.0
	>> 0.0 10.0

Note: d means the device co-ordinate, w means the world co-ordinate.

Win_Scaled

Creates and displays a scaled window. A scaled window is an area in which it is possible to specify any range of data or window co-ordinates to map onto an area of the display device (specfied in device co-ordinates). Normally a scaled window should be created for every data plot. For drawing simple graphics which do not require an extra scaling to match the data you can use the Win_unscaled() command instead.

Parameters:

Dxmin (Real)

Sets the minimum x device co-ordinate.

Dxmax (Real)

Sets the maximum x device co-ordinate.

Dymin (Real)

Sets the minimum y device co-ordinate.

Dymax (Real)

Sets the maximum y device co-ordinate.

Wxmin (Real)

Sets the minimum x world co-ordinate.

Wxmax (Real)

Sets the maximum x world co-ordinate.

Wymin (Real)

Sets the minimum y world co-ordinate.

Wymax (Real)

Sets the maximum y world co-ordinate.

Colour (Colour)

Sets the colour of the window. By default the colour of the window is black.

Minmode (Integer)

Specify how the axes are scaled by setting the minimum mode where, 0=absolubte values, 1 or 3 = +10%, 2 or 3 = round down, and 4 = force zero.

Maxmode (Integer)

Specify how the axes are scaled by setting the maximum mode where, 0=absolubte values, 1 or 3 = +10%, 2 or 3 = round down, and 4 = force zero.

RESULT = (WindowScaled)

Returns all of the properties of the newly created window.