Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Group: Plot Manipulation
See also: setgopt

Function: getgopt
Description: getgopt gets the layout of a plot. It is usually used to copy some of all layout components from one plot to another one.


Usage: gopt=getgopt(di, l_num, c_num)
Input:
di Display
l_num integer, 1 ... count of lines of di
c_num integer, 1 ... count of columns of di
Output:
gopt a composed object containing following components:
a component "title"
that contents the headline,
a component "xlim"
that contents limits for x-axis,
a component "ylim"
that contents limits for y-axis,
a component "xoffset"
that contents the width of axis border
a component "yoffset"
that contents the height of axis border
a component "xvalue"
that contents the values m and k by m+k*x,
a component "yvalue"
that contents the values m and k by m+k*y,
a component "xorigin"
that contents origin for tickmark for x-axis,
a component "yorigin"
that contents origin for tickmark for y-axis,
a component "xmajor"
that contents major for tickmark for x-axis,
a component "ymajor"
that contents major for tickmark for y-axis,
a component "xlabel"
that contents label for x-axis,
a component "ylabel"
that contents label for y-axis,
a component "rotpoint"
that contents rotation point ,
a component "rotcos"
that contents rotation cosinus matrix,
a component "scal"
that contents scale matrix,
a component "transl"
that contents translation vector odd funct

Example:

di=createdisplay(4, 1)
x=1:100
y=sin(x/20)+uniform(100, 1)/10
show(di, 1, 1, x~y)
show(di, 2, 1, x~y)
show(di, 3, 1, x~y)
show(di, 4, 1, x~y)
; 	you see that thanks different width and size of each plot 
;	the axisborder have different width and height too. 
; Futhermore, the height of border is not enough to show 
;	the axis values and headline. 
; We try to improve it:
setgopt(di, 1, 1, "yoffset", 20|20, "xoffset", 5|5)	    
gopt=getgopt(di, 1, 1)
setgopt(di, 2, 1, gopt)	    
setgopt(di, 3, 1, gopt)	    
setgopt(di, 4, 1, gopt)	    
Result:
you see it yourself.

Group: Plot Manipulation
See also: setgopt

Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

(C) MD*TECH Method and Data Technologies, 17.8.2000