36.0 HRGRAPHICS Command The HRGRAPHICS COMMAND is used to produce high resolution graphs or slides for variables in the current B34S dataset or variables in a SCA FSAVE file. These graphs can be viewed and or printed with the B34S Display Manager which is documented in section 1.20. While the HRGRAPHICS command contains many options, simple graphs can be produced with little or no command language. To graph a series in the current dataset, the easiest approach is to execute the HELP command in the Display Manager and follow the menus. The user will be presented with a menu of series names from which series can be selected for graphing. The Display Manager uses the HRGRAPHICS command. The commands it automatical generates can be seen in the B34S log. The HRGRAPHICS command is available only on the PC. Lineprinter plots and graphs can be made with the PLOT command which runs on all platforms. In addition to line plots the HRGRAPHICS command can display an intensity plot of a vector using the IPLOT sentence. More complex graphs can be made without writing commands with the Graphics option in the Display Manager of B34S version 7.xx. Form of HRGRAPHICS command. B34SEXEC HRGRAPHICS options parameters$ GTEXT options parameters$ LABEL options parameters$ PLOT options parameters$ IPLOT options parameters$ B34SEEND$ Note: The HRGRAPHICS sentence requires, either the PLOT sentence, the LABEL sentence, the GTEXT sentence or the IPLOT sentence. If the IPLOT sentence is used, no other sentences are supported. If the IPLOT sentence is not used, then the PLOT sentence, the GTEXT sentence or the LABEL sentence can also be used. If the SYMBOLS option is used, no other sentences need be supplied. SYMBOLS is not supported under version 7.xx. The OPTIONS command GDRIVER( ) allows the user to globally set the Hardcopy output format. HRGRAPHICS overview: - PLOT sentence to specify variables for line plots, histograms bar graphs and various 3D graph types. - GTEXT sentence to specify text. - LABEL sentence to specify labels. - IPLOT sentence to specify intensity plots. HRGRAPHICS sentence options and parameters. SYMBOLS - Will display a symbol table for use with the ICHARR parameter discussed below. This option is not supported under version 7.xx which has a symbol and character display facility built into the Display Manager. DISPLAY - Will display the graph on the screen. This is the default unless PRINT is supplied. PRINT - Will print the graph on output device GPORT using graphics driver GDRIVER. GPORT and GDRIVER can be set in this paragraph OR on the OPTIONS paragraph. DISPLAYPRINT - Will display and print. GRAPINFO - Will display Lahey Graphoria software data and other info pertaining to the graphics screen mode. This option is not for the normal user. WAIT(n) - Optionally sets the number of seconds to wait before a new graphic image is displayed. If the WAIT parameter is not supplied, the user must hit a key between graphs. IBEGIN=n1 - Sets observation number to begin with. Default=1. IEND =n2 - Sets observation to end with. Default = NOOB. PLOTTYPE(k) - Where K is OBSPLOT, TIMEPLOT or XYPLOT. OBSPLOT is the default. OBSPLOT plots all series with respect to the observation number. TIMEPLOT plots all time series with respect to the date. If this option is used, the SETFREQ, SETYEAR, SETMY, SETQY or SETDMY functions must be supplied on the OPTIONS paragraph. XYPLOT plots the first series X axis and the second series on the Y axis. The PLOTTYPE parameter is not used with the IPLOT sentence. Other options available with version 7.xx are: HIST2D - 2 dimensional histogram HIST2DV - 2 dimensional histogram with labels HIST2DHL - 2 dimensional histogram with high/low labels (series 1 = low value, series 2 is high value) 2 series passed. HIST3D - 3 dimensional histogram HIST2DC - 2 dimensional cumulative histogram HIST3DC - 3 dimensional cumulative histogram BAR2D - 2 dimensional bar graph BAR2DV - 2 dimensional bar graph with labels BAR3D - 3 dimensional bar graph BAR2DC - 2 dimensional cumulative bar graph BAR3DC - 3 dimensional cumulative bar graph PIE - Pie chart SCATTER - Scatter diagram XYSCATTER - XY Plot using Scatter Note: Histograms and bar charts are limited to 2000 observations. The next sixteen options require 3 series CONTOURS - 3D Scatter plot. CONTOURSX - 3D Scatter plot line to X axis. CONTOURSY - 3D Scatter plot line to Y axis. CONTOURSZ - 3D Scatter plot line to Z axis. CONTOUR3 - Three demensional surface plot. User supplies three vectors. SURF3 - Same as CONTOUR3 CONTOURC - Same as CONTOUR3, except that Height vector CHEIGHT is generated. STEPPED3 - Same as SURF3 except plots with bars STEPPED3DC - Same as CONTOURC except plots with bars. XYZPLOT - XYZ Connected plot. Limited to 4094 obs. SURF3CON - Same as CONTOURC SURF3COL - Three 3 Plot with Color a Function of height only available under the Matrix Graph. Suggest use of SURFAC3G SURF3G - Three Series Plot with colors set as a gradiant. 2 Series needed as input CONTOUR2 - Two dimensional line based coutour plot. CONTOURF - Two dimensional fill based coutour plot. OBSPLOTB - Line plot with two error bars TIMEPLOTB - Time plot with two error bars Note for OBSPLOTB and TIMEPLOTB the series are entered as Y YLOWER YUPPER. SURF3D - User passes one vector and sets NX, NY, NZ MARSPISP - Reads MARS or PISPLINE file off MARSUNIT with name SURFNAME SURF3DC - User passes one vector and sets NX, NY, NZ. Height vector is generated. MARSPISPC - Reads MARS or PISPLINE file off MARSUNIT with name SURFNAME. Height vector is generated. In version 7.xx, PLOTTYPE can be set globally on the HRGRAPHICS sentence or individually on the PLOT sentence for multiple plots. This latter option allows GFORMAT=FOURGRAPH with 4 distinct types of graphs. Note: With 3D graphs where the X or Y values are negative, the X and Y axis will be scaled to be positive. Note: The PIE type graph is only available from the MATRIX command at this time. MARSUNIT=n - Sets file in which to read MARS of PISPLINE file. For further detail on this file see MARS IGRAPH and PISPLINE OUTPUTXG and OUTPUTYG. SURFFNAME(k) - Sets surface grid file name. Used with MARSPISP and MARSPISPC commands. NX=n - Sets first dimension of matrix read as a vector in SURF3D or SURF3DC. NY=n - Sets second dimension of matrix read as a vector in SURF3D or SURF3DC. NZ=n - Sets third dimension of matrix read as a vector in SURF3D or SURF3DC. ANGLE=r - Sets angle of 3D display. Default = 22.5. Must be in range 0.0 LE ANGLE LE 45. ROTATION=r - Sets rotation of 3D display. Default=0.0. Must be in range -360.0 LE ROTATION LE 360.0. D3AXIS - Sets 3D axis. D3BORDER - Sets 3D border. SBOXWID=r - Sets width of box used to calculate Z height in CONTOUR3, CONTOURC, CONTOUR2 and CONTOURF. Default = .2. SBOXHGT=r - Sets height of box used to calculate Z height in CONTOUR3, CONTOURC, CONTOUR2 and CONTOURF. Default = .2. NGRID =i - Sets dimensions of gridded Z height matrix. Notes on 3D routines. The commands SUR3D and MARSPISP operate directly on user supplied two dimentional matrix which is plotted in 3D. CONTOUR3, CONTOURC, CONTOUR2 and CONTOURF transform three vectors into a two dimensional matrix of heights with dimensions NGRID, NGRID by the Interacter subroutine iPGXYZToGrid. NCONTOUR - Sets number of contours for CONTOURC, CONTOUR2, COUNTOURF, SURF3DC and MARSPISPC. Range 2-20. Default = 9. Heights are divided into NCONTOUR ranges and color coded. SCAUNIT=n3 - Sets SCA FSAVE file unit. Default = 44. SCAFNAME=k - Sets SCA FSAVE file name. Unless this parameter is set, data will be taken from the default B34S dataset. If SCAFNAME is supplied, IBEGIN and IEND cannot be used. GFORMAT(k) - Sets graph style. The parameter k must be set ONEGRAPH (the default), TWOGRAPH, FOURGRAPH or NINEGRAPH. The pattern of the graphs is: graph 2 TWOGRAPH graph 1 graph 3 graph 4 FOURGRAPH graph 1 graph 2 graph 7 graph 8 graph 9 graph 4 graph 5 graph 6 NINEGRAPH graph 1 graph 2 graph 3 and is supplied with the GPOSITION( ) parameter on the PLOT, LABEL and GTEXT sentences. BASE(r1,r2) Sets the origin for the graph if GFORMAT is ONEGRAPH. Default = 1.0, 1.0. The plotting screen is 8.5 in the y direction and 11.0 in the x direction. Using the default 1.0 1.0 means that the X axis is 10.0 inches long and the y axis is 7.5 inchs long. Note that all x-y dimensions are set as if the full screen is used and adjusted using the GFACTOR. For example, if GFACTOR = .5, then the graph will is scaled to 50% of normal size. MARK(k) If k=NONE, no label info will be placed on the plot. If k = NUMBER the series will be numbered 1,,, . If k = NAME the series will be named. NAME is the default. It will result in names being used for each series if the number of series plotted is > 1. Number option not implemented B34S version 7.xx. LINETYPE(k) If k = SMOOTH, a smooth curve will be plotted. If k = STRAIGHT, straight lines will connect the points. If K = DASHED, dashed lines will connect the points. STRAIGHT is the default setting. DASHED is similar to STRAIGHT except that the lines are dashed. The LINETYPE parameter is used to reset all positions of IDASH. The following parameters can be supplied on the HRGRAPHICS paragraph or on the OPTIONS paragraph. Not all values have to be supplied. If less than the max number of values are supplied, default values will be used. If set on the HRGRAPHICS paragraph, these parameters are only in effect for the duration of the job step. GDRIVER(' ') - Sets file name for graphics printer driver. Since version 7.xx this parameter must be set on the options command. The default driver is usually WINMETAFILE although other drivers are supported. Their keywords and names are given next: Keyword Name HPGLPLOTTER HP-GL POSTSCRIPT PostScript/EPS RASTERPRINTER Raster Printer (laser/inkjet) RASTERIMAGE Raster image file (PCX/BMP) LOTUSPIC Lotus PIC format AUTOCADDXF AutoCAD DXF format CGMETAFILE CGM Format WINPRINTMGR Windows Print Manager WINMETAFILE Windows Metafile(WMF) HPGL2 HP-GL/2 As an example to make the Lotus format the default, code B34SEXEC OPTIONS GDRIVER('LOTUSPIC'); B34SRUN; in the autoexec.b34 file. This input is not case sensitive unless ' ' are used. The default driver can be changed in the setup menu under File/Run. The HPGL2 driver makes much smaller files and runs with the modern HP Laserjet series of printers. If you just want to route graphs to the printer, use this format. The autoexec.b34 file supplied has set the default as gdriver('WINMETAFILE') graphsuf('wmf') on W2K/XP machines due to the widespread use of MS Word. GPORT(' ') - Sets file for graphics printer. Up to 40 characters can be supplied. The advantage of using a file is that teh graph can be imported into Word. b34sexec hrgraphics displayprint gport('mygraph.wmf'); plot(x,y); b34srun; GFACTOR=r - Sets default reduction factor for graphs. Default = 1.0. A smaller number makes a smaller graph. In B34S verion 7.xx the INTPRINT program allows the size of the graph to be changed interactively making for less need for GFACTOR. GCOLOR(n1,n2) - Sets default colors for displaying curves in B34S graphics. For version 7.xx the codes are Text # Graphics # Range BLACK 0 0 0 -15 RED 1 47 32-47 YELLOW 2 79 64-79 GREEN 3 111 80-95 CYAN 4 143 96-111 BLUE 5 175 160-175 MAGENTA 6 207 192-207 WHITE 7 239 224-239 GRAY 8 240 240-255 BRED 9 31 16-31 BYELLOW 10 63 48-63 BGREEN 11 95 80-95 BCYAN 12 127 112-127 BBLUE 13 159 144-159 BMAGENTA 14 191 176-191 BWHITE 15 223 208-223 Up to 9 names (or values) can be supplied. Defaults are: 2,2,4,3,5,6,10,12,13. The first 2 is the axis. The second 2 is for the 1st series for a non XYPLOT and the second series for an XYPLOT. These colors work with VGA which has 16 colors. For other systems, user must supply other values. The NAMES listed under the CCODE option can also be used. To turn off the axis of the graph, set first elements of array to or black. B34S version 6.xx and B34S version 7.xx use different numbers. To avoid different numbers. To avoid problems, it is suggested that NAMES be used. GLINE(n1,..,n9) Allows a global setting of graph types for up to 9 graphs. This setting will override LOGXAXIS and LOGYAXIS settings n1 = 0 => (linearX linearY), n1 = 1 => (linearX logYaxis) n1 = 2 => (logXaxis linearY) n1 = 3 => (logXais logYaxis) BIOS=n For version 6.xx Set = 1 for direct writing to the screen. This options is for version 6.xx. Set = 0 for writing through the BIOS. Direct writing is faster BUT may not be possible for some "nonstandard" machines. Default = 1. For version 7.81 and beyond BIOS(0) = uses 8 bit / 256 color palette BIOS(1) = uses 24 bit / RGB color palette The usual setting for this option is 0 at the present time. In future releases the RGB palette will may be enables if there is demand for this option. IMODE=n - Set = 0 to allow the B34S graphics software to determine the graphics mode to use. This options is for version 6.xx. B34S uses Lahey Graphoria Library that allows the user to specify the type of graphics screen. If the user desires a higher resolution than VGA 800 by 600 16 colors, then set IMODE=0 and place the command SET LPLOT=HH,XX,YY,CC in the AUTOEXEC.BAT file where: HH = the hexadecimal number used to initialize the BIOS mode XX = the number of pixels in the horizontal direction YY = the number of pixels in the vertical direction CC = the number of colors supported. The default setting for IMODE = 0. Be sure to set BIOS=0 if the SET LPLOT command is used. Table of IMODE settings Adapter Mode Resolution Colors CGA 4 320 by 200 4 CGA 5 320 by 200 2 Mono 6 640 by 200 2 EGA 13 320 by 200 16 EGA 14 640 by 200 16 EGA 15 640 by 350 2 EGA 16 640 by 350 16 VGA 17 640 by 480 2 VGA 18 640 by 480 16 VGA 19 320 by 200 256 Hercules 99 720 by 348 2 Note: The option VERSION on the HRGRAPHICS will provide information on the status of the graphics driver. For B34S version 7.xx IMODE=n Sets the Marker Mode. Default = 3. Allowable codes are: 1 = Digits (0-9) 2 = Letters (A-Z 1-26 a-z 27-52) 3 = Markers (1-20) 4 = Symbols from symbols.chr (33-126/161-225) IMODE settings change how ICHARR is interpreted. ICHARR(n1,n2) - For version 6.xx sets the default character if ITICK option is in effect. The command B34SEXEC HRGRAPHICS SYMBOLS$ B34SRUN$ will display symbols. Default values are ICHARR(1,2,3,4,5,6,7,8,9) This option is not supported under version 7.xx For version 7.xx ICHARR sets marker character number if IMODE=3, digits in IMODE=1, letters if IMODE=2 and symbols if IMODE= 4. INC=n - Set default incrument for graphing. Default=1. In INC = 10, only the 1th, 11th, 21th points are plotted. ITICK(n1,n2) - Sets the default line type. If n2 = 0 a straight line is drawn for the first series. If n2 > 0 ICHARR(2) is plotted every n2 points. If n2 < 0 Then only character values are plotted every abs(n2) points. Default=(0,0,0,0,0,0,0,0,0) This option has not been implemented in version 7.xx. IDASH(n1,n2) - Sets the default type of streight line. Valid values include 0 = straight line, 1 = dashed line, 3 = smooth line. Default =(0,0,0,0,0,0,0,0,0). If it is desired that the second line be dashed, set third element = 1. IDASH( ) can be globally set with LINETYPE. PLOT sentence options and parameters. GRID - Places a grid on graph. Works for 2-D and 3-D plots. FITSPLINE - Fits spline for OBSPLOT and XYPLOT. This options makes a smoother curve but can go below the axis depending on the data. NOBACKFIT - Does not display 3D plots rotated 180 degrees. NOCXSCALE - Turns off automatically set X scale numbers. This option is useful for 9 plot graphs where there is not enough space to place numbers on plot at bottom. NOCYSCALE - Turns off automatically set Y scale numbers. This option is useful for 9 plot graphs where there is not enough space to place numbers on plot at left. NOXLABEL - Turns off X labels. Not supported Version 6.xx. NOYLABEL - Turns off Y labels. Not supported Version 6.xx. NOKEY - Turns off variable key. NOLABEL - Turns off variable label. ******************************************************************* Custom Labeling options - These options override usual settings XLABELTOP(' ',key) Sets text up to 90 and key where key must be 'L', 'C' or 'R' for left, centered, or right XLABEL(' ',key) Sets text up to 90 and key where key must be 'L', 'C' or 'R' for left, centered, or right YLABELLEFT(' ',key) Sets text up to 90 and key where key is a 2 level code entered inside ' '. Position 1 is: T -> Starting at top edge C -> Centered (default) B -> Ending at bottom edge Position 2 is: V -> Verticle (default) R -> Rotated 270 degrees 9 -> Rotated 90 degrees YLABELRIGHT(' ',key) Sets text up to 90 and key where key is a 2 level code entered inside ' '. Position 1 is: T -> Starting at top edge C -> Centered (default) B -> Ending at bottom edge Position 2 is: V -> Verticle (default) R -> Rotated 270 degrees 9 -> Rotated 90 degrees ZLABELLEFT(' ',key) Sets text up to 90 and key where key is a 2 level code entered inside ' '. Position 1 is: T -> Starting at top edge C -> Centered (default) B -> Ending at bottom edge Position 2 is: V -> Verticle (default) R -> Rotated 270 degrees 9 -> Rotated 90 degrees ZLABELRIGHT(' ',key) Sets text up to 90 and key where key is a 2 level code entered inside ' '. Position 1 is: T -> Starting at top edge C -> Centered (default) B -> Ending at bottom edge Position 2 is: V -> Verticle (default) R -> Rotated 270 degrees 9 -> Rotated 90 degrees XLABELPOS(r4) Sets relative position of xlabel. r4 must be in range 0 to 1.0 Default = .7. Smaller numbers mean nearer to figure. YLABELPOS(r4) Sets relative position of ylabel. r4 must be in range 0 to 1.0 Default = .8. Smaller numbers mean nearer to figure. ZLABELPOS(r4) Sets relative position of zlabel. r4 must be in range 0 to 1.0 Default = .8. Smaller numbers mean nearer to figure. Note: If these options are set for a multiple plot, then all labels will be the same. This may change in future releases. ******************************************************************** DISPLAY=i - Sets which face of SURF3D, MARSPISP, SURF3DC or MARSPISPC to display. Default=1. PLOT=(Var1, var2,.. ) Specify variables to plot. For an XYPLOT up to 9 series can be supplied. For a non XYPLOT up to 8 series can be supplied. GPOSITION(n1) - Places graph. This parameter is need if GFORMAT is not ONEGRAPH. PLOTTYPE - Defaults to PLOTTYPE set on HRGRAPHICS card. If PLOTTYPE can be over ridden on the PLOT sentence. ROTATEYLABEL - Rotates Y label counter clockwise. SETXSCALE(r1,r2) - Sets left hand value and incrument for X scale. If this parameter is not set correctly all or parts of the graph may be off the screen. The value r1 is the lower left X value and r2 is the incrument between tick marks for X scale. SETYSCALE(r1,r2) - Sets left hand value and incrument for Y scale. If this parameter is not set correctly all or parts of the graph may be off the screen. The value r1 is the lower left Y value and r2 is the incrument between tick marks for Y scale. NXTICKS(n) - Sets number of user X ticks if SETXSCALE is in effect. This option is for version 7.xx only. 2 LE n LE 100. Default = 5. NYTICKS(n) - Sets number of user Y ticks if SETYSCALE is in effect. This option is for version 7.xx only. 2 LE n LE 100. Default = 5. SETXRANGE(XMIN,XMAX) - Sets Min and Max for xscale. This option is available only under 7.XX. SETYRANGE(YMIN,YMAX) - Sets Min and Max for yscale. This option is available only under 7.XX. For residual plots on different graphs the scales can be made to align. TITLE=(' ') - Is used to supply the title for the graph. Maximum size is 80 characters. HTITLE(r) - Sets size of characters in title. Default = .8. If one argument is supplied, both width and height are set the same. If HTITLE(1.0,.5) is set => standard width and .5 height. If CHARACTER on options sentence is set as H scaling may not be possible. AXISHEIGHT(r) - Sets size of characters on axis. Default = .8. If one argument is supplied, both width and height are set the same. If AXISHEIGHT(1.0,.5) is set => standard width and .5 height. If CHARACTER on options sentence is set as H, scaling may not be possible. LOGXAXIS - Uses log10 scale for X axis. X series must be > 0.0. LOGYAXIS - Uses log10 scale for Y axis. Y series must be > 0.0. Note on scaling. NOCXSCALE and NOCYSCALE only work if LOGXASIS or LOGYAXIS is not in effect. These options and SETXSCALE and SETYSCALE are used only to allow user to take control of the graph. NOCYSCALE is usually not used. GTEXT sentence options and parameters. GTEXT(' ') - Sets text to be written on the graph. This text will be displayed BUT will not be printed. A max of 80 characters can be supplied. LC(n1,n2) - Sets line (n1) and column (n2) for the text. n1 must be in the range 0 - 24 and n2 be in the range 0 to 79. The position 0, 0 is in the upper left. COLOR(n) - Sets color for the text. For values see GCOLOR. LABEL sentence options and parameters. LABEL(' ') - Sets up to 80 characters of label text. XY(r1,r2,r3,r4) - Sets x1 (r1), y1 (r2), x2 (r3), y2 (r4) where characters are centered between (x1,y1) and (x2,y2). All values are in inches. GPOSITION(n) - Sets graph position. Needed only if GFORMAT is not ONEWAY. COLOR(n) - Sets color for label. For values see GCOLOR. LCHARSIZE(r) - Set maximum label character size. IPLOT sentence options and parameters. Assume a matrix X(400,500). The IPLOT command displays the magnitude of each element on a XY plot where the color of pixel denotes the magnitude. If the matrix had the same value for each row, this would plot as horizontal bars, if the matrix had the same value for each column, then we would see verticle bars. The paramaters SYVAL, SXVAL, YINT, XINT, NY, NX and Var are required. Given that the screen is 480 by 640 pixels and the axis base is 1" down from the top and 1" in from the right, the pixel position is 56 down and 58 over. This leaves a maximum of 424 pixels down for the Y axis (480-56) and 582 pixels across (640-58) for the X axis. Thus 1" across = 58 pixels and 1" down equals 56 pixels. This is taken into account in the scale. The user specifies the scale incrument by pixel using YINT and XINT. If high resolution is used, the screen will automatically adjust in size. The GFACTOR command has no effect on the IPLOT sentence. The present version of IPLOT does not allow for anything but video output because of problems in converting pixel output to hard copy devices. IPLOT(Var) - Sets variable to input to IPLOT option. TRANSPOSE - It is assumed that the vector is saved as if it were a matrix by cols. In other words x(1,1),...,x(NY,1), ...,x(1,2),...,x(NY,2),... If the matrix is saved by rows, the TRANSPOSE command will make it by cols. TEST - Generates a test pattern whereby X(i,j)=i + j. If this option is used, only DD need be set. IPLOT=Var1 - Specify variable to use for intensity plot. SYVAL = r1 - Set lower value for Y scale. YINT = r2 - Y interval for each pixel. Must be > 0 NY = i1 - Number of Y values. SXVAL = r3 - Set lower value for X scale. XINT = r4 - X interval for each pixel. Must be > 0. NX = i2 - Number of X values. TDIFF = r5 - Sets threshold difference. If not set, this defaults to RANGE/15. XNAME = n1 - Sets name for X axis. Default = FREQ YNAME = n2 - Sets name for Y axis. Default = TIME TRESHOLD(r1,...,r15) - Sets 15 threshold values. TCOLOR(i1,...,i16) - Sets 16 colors. Default = 0,1,2,3,4,5,6,7,8 9,19,11,12,13,14,15. For a discussion of colors, see GCOLOR command. Depending on monitors these might change. TCOLOR can be set using NAMES or numbers. TCOLOR can be set on the OPTIONS paragraph. SIZEDATA=key - If key set as ABORT and NY > 400 or NX > 500 command aborts. This is the default setting. If key set as TRUNCATE, then data will be truncated to fit into 400 by 500. If key set as AVERAGE, then the data will be averaged. TITLE=(' ') - Is used to supply the title for the graph. Maximum size is 80 characters. HTITLE(r) - Sets size of characters in title. Default = .35. General notes for HRGRAPHICS command. There can be up to 9 plot sentences and up to 25 GTEXT and 50 LABEL sentences OR one IPLOT sentence. Importing Graphs into WordPerfect(r). The B34S HRGRAPHICS options provides direct links with the WordPerfect(r) program using the HPGL2 print driver. To make this the default driver, place the command b34sexec options gdriver('HPGL2') $ b34srun$ in the AUTOEXEC.B34 file. To import a graph from the Display Manager, hit the Display Manager HELP command and follow the menu. When asked for a file name, give a name such as MYGRAPH. Once back in the display manager, give the DOS command. Enter WP. This will place you in WorkPerfect under the B34S Display Manager. Use the WordPerfect command sequence {Alt} FN9 and define a figure. Follow the WordPerfect prompts and give the approproate graph file name. The usual windows setting is b34sexec options gdriver('WINMETAFILE') graphsuf('wmf') which will produce windows meta file format graphs. The graph file can also we made with commands. For example the command: b34sexec hrgraphics print$ plot=x$ b34srun$ will print a graph of X on LPT1, while the command b34sexec hrgraphics print gport=('mygraph')$ plot=x$ b34srun$ will make a file MYGRAPH. Both commands assume that the appropriate graphics driver has been installed in the AUTOEXEC.B34 file. Sample Jobs. 1. Plot series X against observation number. b34sexec hrgraphics$ plot=x $ b34srun$ 2. Plot series X and Y against observation number. A title is supplied. b34sexec hrgraphics$ plot=(x y) title=('This is a heading')$ b34srun$ 3. Plot series X and Z against each other. b34sexec hrgraphics plottype=xyplot$ plot=(x z) $ b34srun$ 4. Plot, display and save plot b34sexec hrgraphics plottype=xyplot displayprint gport('test1.wmf')$ plot=(x,z)$ b34seend$ 5. Construct a multicolor side using text graphics. b34sexec hrgraphics$ gtext=('this is in red color on line 0') lc(0,0) color(red)$ gtext=('this is in green color on line 2') lc(2,0) color(green)$ gtext=('this is in blue color on line 4') lc(4,0) color(blue)$ gtext=('this is in bright green on line 6') lc(6,0) color(bgreen)$ gtext=('this is in yellow on line 8') lc(8,0) color(yellow)$ b34srun$ 6. Construct a multi color slide using graphics characters. b34sexec hrgraphics$ label=('this is in red color at top centered') xy(0.0,8.0,11.0,8.0) color(red)$ label=('this is in green color on bottom left') xy(0.0,0.0,3.0,0.0) color(green)$ b34srun$ 7. Plot 4 series in four graphs. b34sexec hrgraphics gformat=fourgraph$ plot=x1 gposition(1) title=('Graph one')$ plot=x2 gposition(2) title=('Graph two')$ plot=x3 gposition(3) title=('Graph three')$ plot=x4 gposition(4) title=('Graph four')$ b34srun$ 8. Make a plot of three series and save in file MYGRAPH.GRA. This graph can be printed with the DOS command print mygraph.gra assuming the user has setup the correct graphics device on the port that the PRINT command directs the file. The GDRIVER parameter sets the format of the graphics file. b34sexec hrgraphics print gport=('mygraph.gra')$ plot(x1,x2,x3)$ b34srun$ 9 Assuming a vector of 200,000 observations called TESTDATA represents a 400 by 500 matrix of intensities. The command b34sexec hrgraphics $ iplot(testdata) syval=10. yint=2. ny=400 sxval=.1 xint=.1 nx=500 $ b34seend$ will produce an intensity plot showing the location of the large and small values in the matrix. The Y scale starts at 10 and goes up by 2 for each pixel. The X scale starts at .1 and goes up by .1 for each pixel. 10. Assuming a vector of 200,000 observations called TESTDATA represents a 400 by 500 matrix of intensities. The command b34sexec hrgraphics $ iplot(testdata) syval=10. yint=2. ny=400 sxval=.1 xint=.1 nx=500 threshold(.1 .2 .3 .4 .5 .6 .7 .8 .9 .10 .11 .12 .13 .14) $ b34seend$ will produce an intensity plot showing the location of the large and small values in the matrix. Here the thresholds are set. 11. Assuming a MARS model has been estimated and the surface saved in nonlin.fsv. The below listed job will graph the surface. b34sexec options open('nonlin.fsv') unit(47) disp=unknown$ b34seend$ b34sexec hrgraphics plottype(MARSPISP) marsunit=47 surffname=marscrv$ plot title('Test of MARSPISP')$ b34seend$