next up previous contents index
Next: Communication Interfaces Up: No Title Previous: Table Interfaces

   
Graphics Interfaces


Module Version 1.0 (27-Oct-1993) Module PCA


Author:    R.M. van Hees ESO-IPG, Garching

Language:    C

Classification: High Level Graphics Interfaces

Source file: $MIDASHOME/$MIDVERS/libsrc/plot/pca.c

Environment:

Comments: The module contains the routines to draw a coordinate box. The main arguments used by the routines are:

xmnmx
floating point array holding minimum and maximum value along the X-axis,
ymnmx
floating point array holding minimum and maximum value along the Y-axis,
labelx
character array to be drawn as label along the X-axis
labely
character array to be drawn as label along the Y-axis
xwcfrm
floating point array with the definition of the X-axis: amin, amax, abig ticksteps, asmall tickstep
ywcfrm
floating point array with the definition of the Y-axis: amin, amax, abig ticksteps, asmall tickstep
AGLopt
character array with AGL options, see AGL reference manual.

History:

[1.0] 23-Sep-1993: Creation (R.M. van Hees)


Function

PCAXES
 

void PCAXES(xmnmx, ymnmx, labelx, labely, AGLopt)

float *xmnmx IN : minimum and maximum value along the X-axis
float *ymnmx IN : minimum and maximum value along the Y-axis
char *labelx IN : label along X-axis
char *labely IN : label along Y-axis
char *AGLopt IN : AGL option string, see AGL ref. manual (AG_AXES)


Function

PCFRAM
 

void PCFRAM(xwcfrm, ywcfrm, labelx, labely)

float *xwcfrm IN : definition of the X axis
float *ywcfrm IN : definition of the Y axis
char *labelx IN : label along the X axis
char *labely IN : label along the Y axis



External references:

<agl.h><midas_def.h><plot_def.h>
<stdio.h><string.h>
<math.h>



Module Version 1.0 (27-Oct-1993) Module PCD


Author:    R.M. van Hees ESO-IPG, Garching

Language:    C

Classification: High Level Graphics Interfaces

Source file: $MIDASHOME/$MIDVERS/libsrc/plot/pcd.c

Environment:

Comments: The module contains the routine for plotting data points by lines, symbols, and histogram. In addition the module takes care of plotting text strings. The main arguments used by the routines are:

stype
Integer number defining the symbol type used, see SET/GRAPHIC options,
ltype
Integer number defining the line type used, see SET/GRAPHIC options,
binmod
Integer number: (0) bin mode OFF; (1) bin mode ON
fopt
floating point array, [0] histogram type selector: (= 0) simple staircase, (= 1) staircase steps joined to X-axis, (> 1) boxes with width starting from 0 (simple line) and increasing with mode value in steps of small character width, [1] space between the filling lines, [2] angle of the filling lines w.r.t. X-axis.
ipos
Integer number defining the centering position: (= 1) starts at (xc, yc), (= 2) ends at (xc, yc), or centred on (xc, yc)

History:

[1.0] 23-Sep-1993: Creation (R.M. van Hees)


Function

PCDATA
 

void PCDATA(stype, ltype, binmod, x_data, y_data, y_off, nrdata)

int stype IN : symbol type
int ltype IN : line type
int binmod IN : bin mode
float *x_data IN : X values of the data points
float *y_data IN : Y values of the data points
float y_off IN : offset along the Y-axis
int nrdata IN : number of points to be plotted


Function

PCHIST
 

void PCHIST(nbins, cl, rfr, fopt)

int nbins IN : number of data points
float *cl IN : values along the X-axis
float *rfr IN : number of occurrences per bin
float fopt[ ] IN : histogram options


Function

PCTEXT
 

void PCTEXT(text, xc, yc, angle, chsiz, ipos)

char *text IN : text to be drawn
float xc IN : string position in X
float yc IN : string position in Y
float angle IN : text angle, in degrees w.r.t. x-axis
float chsiz IN : character expansion factor
int ipos IN : centering parameter



External references:

<agl.h><plot_def.h><midas_def.h><stdio.h><string.h>



Module Version 1.0 (27-Oct-1993) Module PCG


Author:    R.M. van Hees ESO-IPG, Garching

Language:    C

Classification: High Level Graphics Interfaces

Source file: $MIDASHOME/$MIDVERS/libsrc/plot/pcg.c

Environment:

Comments: The module contains routine(s) to manipulate the graphics cursor. The main arguments used by the routines are:

xval
input: required initial x position of the locator
output: final locator x position
yval
input: required initial y position of the locator
output: final locator y position
key
key code (device dependent)

History:

[1.0] 23-Sep-1993: Created by R.M. van Hees


Function

PCGCUR
 

int PCGCUR(xval, yval, key)

float *xval IN/OUT : x value of the locator position
float *yval IN/OUT : y value of the locator position
int *key OUT : key code



External references:

<agl.h><midas_def.h><stdio.h>



Module Version 1.0 (27-Oct-1993) Module PCK


Author:    R.M. van Hees ESO-IPG, Garching

Language:    C

Classification: High Level Graphics Interfaces, graphic keywords

Source file: $MIDASHOME/$MIDVERS/libsrc/plot/pck.c

Environment:

Comments: The module PCK contains routines to interact with the graphic keywords of MIDAS. The graphic keywords contain values which can be read or written by the user, using a parameter name. For the definition of these name see section [*]. Using parameter names offers a greater flexibility than using the standard interfaces directly, since the contents of the keywords may change, while the link between the parameter name and its value is saved.

The functions provided are:

The main arguments used by the routines are:

cpar,ipar,rpar
name of a parameter in a keyword, see section [*]
maxvals
maximum number of elements required
actvals
actual number of elements accessed, value returned by the routine
cval,ival,rval
buffer for the value(s) of the parameter

History:

[1.0] 23-Sep-1993: Created by R.M. van Hees


Function

PCKRDC
 

void PCKRDC(cpar, maxvals, actvals, cval)

char *cpar IN : character parameter to be found
int maxvals IN : no. of elements to get
int *actvals OUT : actual no. of elements returned
char *cval OUT : value of the parameter


Function

PCKRDI
 

void PCKRDI(ipar, maxvals, actvals, ival)

char *ipar IN : integer parameter to be found
int maxvals IN : no. of elements to get
int *actvals OUT : actual no. of elements returned
int *ival OUT : value of the parameter


Function

PCKRDR
 

void PCKRDR(rpar, maxvals, actvals, rval)

char *rpar IN : real parameter to be found
int maxvals IN : no. of elements to get
int *actvals OUT : actual no. of elements returned
float *rval OUT : value of the parameter


Function

PCKWRC
 

void PCKWRC(cpar, cval)

char *cpar IN : name of the character parameter
char *cval IN : value of the parameter


Function

PCKWRI
 

void PCKWRI(ipar, nrval, ival)

char *ipar IN : name of the integer parameter
int nrval IN : no. of elements to write, if zero then set IPAR to default
int *ival IN : value for the parameter


Function

PCKWRR
 

void PCKWRR(rpar, nrval, rval)

char *rpar IN : name of the real parameter
int nrval IN : no. of elements to write, if zero then set RPAR to default
float *rval IN : value of the parameter


Function

PCKDEF
 

void PCKDEF(void)



External references:

<midas_def.h><stdio.h><string.h>



Module Version 1.1 (29-Oct-1993) Module PCO


Author:    R.M. van Hees ESO-IPG, Garching

Language:    C

Classification: High Level Graphics Interfaces

Source file: $MIDASHOME/$MIDVERS/libsrc/plot/pco.c

Environment:

Comments: The module contains the routine for opening and closing a graphics device The main arguments used by the routines are:

devnam
Name of the graphics device to open. The devic must be present in the `agldevs.dat' file containing all legal devices.
plname
Name of the meta (plot) file to open or to append
access
Integer number to set the access mode to cursor (= -1), over plot (= 1) or new plot (= 0)
plmode
Integer number to set the plot mode: (0) no axes and no info, (1) draw axes, labels and some info, (2) draw axes, labels and full info, (-1) use and return the current MIDAS setting.

History:

[1.0] 23-Sep-1993: FORTRAN to C (R.M. van Hees)

[1.1] 29-Oct-1993: made device and meta-file optional, RvH


Function

PCOPEN
 

void PCOPEN(devnam, plname, access, plmode)

char *devnam IN : name of device to be activated
char *plname IN : name of meta file
int access IN : access mode
int *plmode IN/OUT : plot mode


Function

PCCLOS
 

void PCCLOS()



External references:

<agl.h><osparms.h><plot_def.h><midas_def.h>
<stdio.h><string.h><stdlib.h><math.h>



Module Version 1.0 (27-Oct-1993) Module PTA


Author:    R.M. van Hees ESO-IPG, Garching

Language:    Fortran 77

Classification: High Level Graphics Interfaces

Environment:

Comments: This module contains the routines to draw a coordinate box. Main arguments used by the routines are:

XMNMX
real array holding minimum and maximum value along the X-axis,
YMNMX
real array holding minimum and maximum value along the Y-axis,
LABELX
character array to be drawn as label along the X-axis
LABELY
character array to be drawn as label along the Y-axis
XWCFRM
real array with the definition of the X-is: amin, amax, abig ticksteps, asmall tickstep
YWCFRM
real array with the definition of the Y-axis: amin, amax, abig ticksteps, asmall tickstep
AGLOPT
character array with AGL options, see AGL reference manual.

History:

[1.0] 23-Sep-1993: Creation (R.M. van Hees)


Subroutine

PTAXES
 

PTAXES(XMNMX, YMNMX, LABELX, LABELY, AGLOPT)

REAL XMNMX(2) IN : minimum and maximum value along the X-axis
REAL YMNMX(2) IN : minimum and maximum value along the Y-axis
CHARACTER*(*) LABELX IN : label along X-axis
CHARACTER*(*) LABELY IN : label along Y-axis
CHARACTER*(*) AGLOPT IN : option string, see AGL ref. manual (AG_AXES)


Subroutine

PTFRAM
 

PTFRAM(XWCFRM, YWCFRM, LABELX, LABELY)

REAL XWCFRM(4) IN : definition of the X axis
REAL YWCFRM(4) IN : definition of the Y axis
CHARACTER*(*) LABELX IN : label along the X axis
CHARACTER*(*) LABELY IN : label along the Y axis




Module Version 1.0 (27-Oct-1993) Module PTD


Author:    R.M. van Hees ESO-IPG, Garching

Language:    Fortran 77

Classification: High Level Graphics Interfaces

Environment:

Comments:

This module contains the routines for plotting data points by lines, symbols, and histogram. In addition the module takes care of plotting text strings. The main arguments used by the routines are:

STYPE
Integer number defining the symbol type used, see SET/GRAPHIC options,
LTYPE
Integer number defining the line type used, see SET/GRAPHIC options,
BINMOD
Integer number: (0) bin mode OFF; (1) bin mode ON
FOPT
real array,
(1) histogram type selector: (= 0) simple staircase, (= 1) staircase steps joined to X-axis, (> 1) boxes with width starting from 0 (simple line) and increasing with mode value in steps of small character width,
(2) space between the filling lines,
(3) angle of the filling lines w.r.t. X-axis.
IPOS
Integer number defining the centering position: (= 1) starts at (xc, yc), (= 2) ends at (xc, yc), or centred on (xc, yc)

History:

[1.0] 23-Sep-1993: Creation (R.M. van Hees)


Subroutine

PTDATA
 

PTDATA(STYPE,LTYPE,BINMOD,XDATA, YDATA, YOFF, NRDATA)

INTEGER STYPE IN : symbol type
INTEGER LTYPE IN : line type
INTEGER BINMOD IN : bin mode
REAL XDATA(NRDATA) IN : X values of the data points
REAL YDATA(NRDATA) IN : Y values of the data points
REAL YOFF IN : offset along the Y-axis
INTEGER NRDATA IN : number of points to be plotted


Subroutine

PTHIST
 

PTHIST(NBINS, CL, RFR, FOPT)

INTEGER NBINS IN : number of data points
REAL CL(NBINS) IN : values along the X-axis
REAL RFR(NBINS) IN : number of occurrences per bin
REAL FOPT(3) IN : array with the histogram options


Subroutine

PTTEXT
 

PTTEXT(TEXT,XC,YC,ANGLE,CHSIZ,IPOS)

CHARACTER*(*) TEXT IN : text to be drawn
REAL XC IN : string position in X
REAL YC IN : string position in Y
REAL ANGLE IN : text angle, in degrees w.r.t. x-axis
REAL CHSIZ IN : character expansion factor
INTEGER IPOS IN : centering parameter




Module Version 1.0 (27-Oct-1993) Module PTG


Author:    R.M. van Hees ESO-IPG, Garching

Language:    FORTRAN 77

Classification: High Level Graphics Interfaces

Environment:

Comments: The module contains routine(s) to manipulate the graphics cursor. The main arguments used by the routines are:

XVAL
input: required inital x position of the locator,
output: final locator position
YVAL
input: required inital y position of the locator,
output: final locator position
KEY
returned key code (device dependent)

History:

[1.0] 23-Sep-1993: Created by R.M. van Hees


Subroutine

PTGCUR
 

PTGCUR(XVAL,YVAL,KEY,IERR)

REAL XVAL IN/OUT : x position of the locator position
REAL YVAL IN/OUT : y position of the locator position
INTEGER KEY OUT : key code
INTEGER IERR OUT : error code




Module Version 1.0 (27-Oct-1993) Module PTK


Author:    R.M. van Hees ESO-IPG, Garching

Language:    FORTRAN 77

Classification: High Level Graphics Interfaces, graphic keywords

Environment:

Comments: The module PTK contains routines to interact with the graphic keywords of MIDAS. The graphic keywords contain values which can be read or written by the user, using a parameter name. For the definition of these name see section [*]. Using parameter names offers a greater flexibility than using the standard interfaces directly, since the contents of the keywords may change, while the link between the parameter name and its value is saved.

The functions provided are:

The main arguments used by the routines are:

CPAR,IPAR,RPAR
name of a parameter in a keyword, see section [*]
MAXVALS
maximum number of elements required
ACTVALS
actual number of elements accessed, returned by the routine
CVAL,IVAL,RVAL
buffer for the value(s) of the parameter

History:

[1.0] 23-Sep-1993: Created by R.M. van Hees


Subroutine

PTKRDC
 

PTKRDC(CPAR,MAXVALS,ACTVALS,CVAL)

CHARACTER*(*) CPAR IN : character parameter to be found
INTEGER MAXVALS IN : no. of elements to get
INTEGER ACTVALS OUT : actual no. of elements returned
CHARACTER*(*) CVAL OUT : value of the parameter


Subroutine

PTKRDI
 

PTKRDI(IPAR, MAXVALS, ACTVALS, IVAL)

CHARACTER*(*) IPAR IN : integer parameter to be found
INTEGER MAXVALS IN : no. of elements to get
INTEGER ACTVALS OUT : actual no. of elements returned
INTEGER IVAL(*) OUT : value of the parameter


Subroutine

PTKRDR
 

PTKRDR(RPAR, MAXVALS, ACTVALS, RVAL)

CHARACTER*(*) RPAR IN : real parameter to be found
INTEGER MAXVALS IN : no. of elements to get
INTEGER ACTVALS OUT : actual no. of elements returned
REAL RVAL(*) OUT : value of the parameter


Subroutine

PTKWRC
 

PTKWRC(CPAR, CVAL)

CHARACTER*(*) CPAR IN : name of the character parameter
CHARACTER*(*) CVAL IN : value of the parameter


Subroutine

PTKWRI
 

PTKWRI(IPAR, NRVAL, IVAL)

CHARACTER*(*) IPAR IN : name of the integer parameter
INTEGER NRVAL IN : no. of elements to write, if zero then set IPAR to default
INTEGER IVAL(*) IN : value for the parameter


Subroutine

PTKWRR
 

PTKWRR(RPAR, NRVAL, RVAL)

CHARACTER*(*) RPAR IN : name of the real parameter
INTEGER NRVAL IN : no. of elements to write, if zero then set RPAR to default
REAL RVAL(*) IN : value of the parameter


Subroutine

PTKDEF
 

PTKDEF




Module Version 1.1 (29-Oct-1993) Module PTO


Author:    R.M. van Hees ESO-IPG, Garching

Language:    FORTRAN 77

Classification: High Level Graphics Interfaces

Environment:

Comments: The main arguments used by the routines are:

DEVNAM
Name of the graphics deivce to open
PLNAME
Name of the meta (plot) file to open or to append
ACCESS
Integer number to set the access mode to cursor (= -1), over plot (= 1) or new plot (= 0)
PLMODE
Integer number to set the plot mode: (0) no axes and no info, (1) draw axes, labels and some info, (2) draw axes, labels and full info, (-1) use and return the current MIDAS setting.

History:

[1.0] 23-Sep-1993: FORTRAN to C (R.M. van Hees)

[1.1] 29-Oct-1993: made device and meta-file optional, RvH


Subroutine

PTOPEN
 

PTOPEN(DEVNAM,PLNAME,ACCESS,PLMODE)

CHARACTER *(*) DEVNAM IN : name of device to be activated
CHARACTER *(*) PLNAME IN : name of meta file
INTEGER ACCESS IN : access mode
INTEGER PLMODE IN/OUT : plot mode


Subroutine

PTCLOS
 

PTCLOS()




next up previous contents index
Next: Communication Interfaces Up: No Title Previous: Table Interfaces
Send comments to web@eso.org
Last update: 1998-10-23