<> <> <> <> -- The fastest way to get familiar with this package is to follow the steps in the tutorial (sections I). -- If you are reading this documentation on line, you might want to use the Tioga Levels commands to see different levels of texts. -- This documentation is not in its final form yet. It only provides a brief description of the most essential functionalities of the Graph program. Graph registers a command, "Graph", in the CommandTool to display graphs, examine their details, edit them, store them, and print them. Cedar Thyme has been modified to make use of this package for the convenience of post-processing all data generated by each simulation. DF file: [Cherry]Cedar6.0>Top>Graph.df A. Command syntax: Graph {files} where {files} := one or more instances of [switches] {filePattern}, where switches are optional (see A.1. below), and filePattern may contain "wild" characters (see A.2. below). If you specify more than one graph files in the command line, the first graph will be shown on the color monitor, and the rest of the graph viewers will be created initially in iconic state, to be opened later when you like. This package understands graph files with data written in binary format by this package. It also understands graphics data written in human readable texts. See **. For backward compatibility, plot files generated by the graphics package previously written for Thyme can also be processed. A.1. Switches: The meaningful switches are: -h or -H => (Highest version only. Default true) Only the highest version of graph files whose names match the filepattern are opened. -a or, -A => (All versions. Default false) All versions of graph files that agree with the filepattern are opened. -# => (The max number of graph files to open is #. Default 12) Sets the limit of the number of graphs to be opened at a time to #, where # is a number. A switch affects all files opened thereafter until overridden by a different switch. Illegal switches are ignored. A.2. Examples: graph cmos*.graph* Plots all files with names matching the pattern "cmos*.graph*". For each file that has more than one versions, only the latest version is opened unless the a switch is used. (See example below.) The program is clever enough to exclude files whose names end with ".press". graph foo.graph -a cmos*.graph0 Plots the latest version of foo.graph; then plots all versions of files with names matching "cmos*.graph0" B. Menus on the Graph viewer: There are ten menu buttons on each graph viewer, namely, Color, Curson, Background, Get, Merge, Store, List, InterPress, Clear/Refresh, and Controller. One may click these menus and invoke the associated commands with any mouse button. Most of these menus, when clicked, will pop up a menu listing the options available to the user. B.1. Color - Sets the screen display mode and the color map. Options: my colors, graph default colors, my colors _ graph default, cedar default colors, black and white There are two screen display mode supported, namely, the color mode, and the black-and-white mode. The first four options are in color mode, while the last one is in black and white mode, in which lines of different colors are represented by different dot-dash patterns. B.1.1. my colors: This option is useful when you are running more than one programs that fiddle with the color map. This command will resume the right colors for this tool, if other tools have altered the color map. B.1.2. graph default colors: Display colors according to your default colors. (If you have not customized your default colors, the default default colors will be used. The way to cutomize the default colors is described in D.4. below.) This option affects the display only, i.e., the current colors setting will still be used when graphs are saved or printed. (See next option.) B.1.3. my colors _ graph default: This tool keeps a record of the current color setting, which may be set manually by the control panel (see **) or automatically by reading the specification in a graph file. This command replaces the current color setting with your default setting. Note that this affects not only the display, but also affects the colors used for printing or saving the graph. B.1.4. cedar default colors: Use cedar default color map for display. Like B.1.2., this affects display only. B.1.5. black and white: In the black-and-white mode, curves are drawn in black and white, using different line patterns (dots, dashes, ... , etc.), so that we can still distinguish curves easily when the graph is printed through a black and white printer. If other tools have altered the color map, you may not see black and white in this mode. In this case, just click the color menu again choosing any of the first three options should put it back in shape -- this won't work if you have altered color # 0 (reserved for white) and/or color # 15 (reserved for black). B.2. Cursor - Sets the color of the cursor on color monitor. Two options are available: black, or white. The cursor's color on the color monitor may be black or white. When you click at this menu, a pop-up menu will show up for you to choose its color. B.3. Background - Sets the background color of the graph. Options: white, gray, dark gray, and black. There are four colors available for the background, namely, white, gray, dark gray, and black. When you click at this menu, a pop-up menu will show up for you to choose the background color easily. B.4. Get - Gets another graph, replacing the current one. The current graph on the graph viewer will be replaced by the new one, whose file name is the current selection. This is similar to the Get menu in a tioga viewer. The file may be a graph file (generated by this package), a plot file (generated by the graphics package previously used by Cedar Thyme), or a text file (written by human in a simple format, see **). B.5. Merge - Gets another graph, merging into the current one. Merge another graph (file name is the current selection) into the current graph. The file may be a graph file (generated by this package), a plot file (generated by the graphics package previously used by Cedar Thyme), or a list file (written by human in a simple format, see **). B.6. Store - Stores the graph into a file. Similar to the store menu command in a tioga viewer, this command stores the plotting information of the graph currently displayed on the Graph viewer into a file, whose name is the current selection. Note that graph files are created with keep = 10. B.7. List - List the variables and their values in a tioga viewer. Using the current selection as the name, this command creates a tioga viewer, and list the variables of the graph, and the x and y values of the variables into this tioga viewer. The format is quite simple, see **. This list file can be processed by the Graph program too. B.8. Interpress - Makes a interpress master for the graph. Options: color, or black-and-white. When this menu is clic+ed, a pop-up menu will show up for you to select one of the two drawing mode: color or black and white. In the color mode, curves are drawn alternately in twelve colors, which may be customized by the user if he wants. (see D.4. below.) In the black-and-white mode, curves are drawn in black and white, using different line patterns (dots, dashes, ... , etc.), so that we can still distinguish curves easily when the graph is printed through a black and white printer. The name of the interpress file created is simply replacing the "extension" part of the current graph file name with "ip". Note that if there is already an interpress file with the same name, it will be overwritten. D.9. Clear/Refresh - clears and/or repaint the graph. Options: rebresh, cle`r/refresh, remove all curves. When this menu is clicked, a pop-up menu will show up for you to select one of the three options above. The first option, refresh, simply repa nts the graph without clearing the display. This is useful when some curves or texts have been erased from the display, erasing part of the curves or texts that still exist. This action is not made automatic whenever something is erased, because refreshing the whole picture may often take a while when the graph is complicated. The next option, clear/refresh, serves the same purpose, except that the whole screen will be cleared first before the graph is redrawn. This is useful in case the graph gets dirty for some reason. The third option just removes all the curves from the graph, but the axes, labels, and any texts still remain. D.10. Controller - shows up the controller Each graph can create a controller for the ease of examining and editing the graph. If the controller viewer has not been created, this menu will create it; if it already exists, then the it will be moved to the top of its column. C. How to Get Hardcopies Following are examples of the ways to get hardcopies of the graph in black and white through, say, Stinger; or in color through the color Versatec plotter. See InterpressToolsDoc.tioga for more details. A. Black and white Suppose the black and white printer you are going to use is Stinger. First make a PD file for it. Suppose you have an IP file named "Foo.ip", and if you want the PD file to be named "FooBW.pd", then the following command will do it for you. Note that the last argument is "raven384". InterpressToPD FooBW.pd _ Foo.ip raven384 To print it, just type the following in the CommandTool Print -h stinger FooBW.pd If you had chosen the black and white mode when the interpress master was generated, you would see the curves plotted in different line patterns (e.g., dots, dashes, etc.); but if you had chosen the color mode, then different curves would be drawn in gray patterns -- which usually makes it difficult to distinguish one line from another. B. Color Suppose the color printer of interest is the color Versatec plotter. We can use the "InterpressToPD" command to make a PD file for it from the ip file. Note that the last argument is "colorVersatec". To get a multi-color graph, you should have created the ip file with the color drawing mode. InterpressToPD FooColor.pd _ Foo.ip colorVersatec Then Chat with Sleepy. If the PD file has been stored on Cherry as [Cherry]Cedar6.0>Documentation>FooColor.pd, then send the PD file to Sleepy by issuing the following command on Sleepy in Chat. >>print [Cherry]Cedar6.0>Documentation>FooColor.pd See [indigo]Documentation>PeachDoc.tioga for more information. D. User Profile Entries (all optional) D.1. Graph.Column: {color | left | right} (default: color.) Specifies the column in which the graph viewer(s) will be created. D.2. Graph.CreateOption: {CloseOtherViewers | SwapBottomViewer | Iconic} (default: CloseOtherViewers.) This entry specifies how the graph viewers will be created. If "CloseOtherViewers" is the option, all viewers in the same column will be closed when the graph viewer is created in that column. If you choose the "SwapBottomViewer" option, the new viewer will replace the bottom viewer in the column. If there is no viewer in this column, then the new viewer will occupy the whole column. If Iconic is your option, then the new viewer will be created in its iconic state. D.3. Graph.Background: {White | Gray | DarkGray | black} (default: White.) D.4. Graph.ColorN: r, g, b -- where N may be any number in [1..12], and r, g, b are any real number in [0..1]. If you don't specify your own colors, the default ones are: Graph.Color1: 1, 0, 0.8 -- purple red Graph.Color2: 0.4, 0, 1 -- purple Graph.Color3: 0, 0, 1 -- blue Graph.Color4: 0, 0.56, 1 -- greenish blue Graph.Color5: 0, 1, 1 -- green blue Graph.Color6: 0, 1, 0 -- green Graph.Color7: 0.52, 1, 0 -- yellow green Graph.Color8: 1, 1, 0 -- yellow Graph.Color9: 1, 0.6, 0 -- orange yellow Graph.Color10: 1, 0.42, 0 -- yellowish orange Graph.Color11: 1, 0.25, 0 -- orange Graph.Color12: 1, 0, 0 -- red In fact you may also alter the following colors (at your own risk) by specifying rgb values for the following colors differently. Note that they are used by the Graph program to display in black and white mode, and to display the background. Graph.Color0: 1, 1, 1 -- white Graph.Color13: 0.5, 0.5, 0.5 -- gray Graph.Color14: 0.17, 0.17, 0.17 -- dark gray Graph.Color15: 0, 0, 0 -- black E. User Profile Entries for ColorDisplay (also optional) ColorDisplay.Side: left -- or right, if you like. This is the side of your color monitor w.r.t. the black and white one. ColorDisplay.BitsPerPoint: 8 -- or 4, but 8 is recommended. ColorDisplay.Type: 640x480 -- or 1024x768, depending on your monitor. If interested, read [Cedar]Documentation>ColorDisplayDoc.tioga for more information about ColorDisplay. F. Basic components of a graph F.1. Divisions - (x or y) F.2. Bounds - (x or y) F.3. Carets - (primary, secondary, or text) F.3.1. Primary caret F.3.2. Secondary caret F.3.3. Text caret F.3.4. Slope between primary and secondary carets F.3.5. Blinking of carets (for display only) F.4. Targets - (x or y) F.4.1. width F.4.2. color F.4.3. value F.5. Grids - (x or y) F.6. Colors - F.6.1. color index F.6.2. red F.6.3. green F.6.4. blue F.7. Fonts - F.7.1. font index F.7.2. family F.7.3. bold F.7.4. italic F.7.5. size of screen font F.7.6. scale of press font F.8. Texts F.8.1. text id F.8.2. rope F.8.3. place F.8.4. justification (x or y) F.8.5. color F.8.6. font F.8.7. rotation F.9. Curves F.9.1. curve id F.9.2. name F.9.3. comment F.9.4. color F.9.5. width F.9.6. mark F.9.7. group G. Keyboard commands on the Graph viewer <> C-red: select Curve. C-blue: remove selected Curve. <> T-red: select Text. T-yellow: move selected Text. T-blue: erase selected Text. T-#-red: rotate text by #*10 degrees c.c.w, where # is in [0..9]. T-#-blue: rotate text by #*10 degrees c.w, where # is in [0..9]. <> ctrl-C: show detailed specification of selected Curve on spec panel. ctrl-T: show detailed specification of selected Text on panel. <> B: switch auto Bounds. D: switch auto Divisions. V-X or X-V: switch X target Value bar. V-Y or Y-V: switch Y target Value bar. G-X or X-G: switch X Grids. G-Y or Y-G: switch Y Grids. <> H-red: jump left. (primary caret jumps Horizontally to the left to another curve.) H-blue: jump right. (primary caret jumps Horizontally to the right to another curve.) V-red: jump up. (primary caret jumps Vertically up to another curve.) V-blue: jump down. (primary caret jumps Vertically down to another curve.) <> S-red: Slide primary caret on selected curve. S-H-red: jump left on Same curve. (primary caret jumps Horizontally to the left on the same curve.) S-H-blue: jump left on Same curve. (primary caret jumps Horizontally to the right on the same curve.) #-red: jump left # steps. (# in [1..9]) (Primary caret jumps # steps to the left on the same curve. Where # may be 1, 2, ... , up to 9. Each data point on the curve is a step.) #-blue: jump right # steps. (# in [1..9]) (Primary caret jumps # steps to the right on the same curve. Where # may be 1, 2, ... , up to 9. Each data point on the curve is a step.) <> 1-2 or 2-1: move secondary caret to primary. ctrl-1: turn on/off primary caret ctrl-2: turn on/off secondary caret ctrl-3: turn on/off text caret shift-1: turn on/off primary caret's blinking shift-2: turn on/off secondary caret's blinking shift-3: turn on/off text caret's blinking <> R: Refresh without clearing R-C or C-R: Clear then Refresh shift-C: remove all curves <> Z-red: Zoom in. (if a zoom box has been defined.) Z-(drag)yellow: define Zoom box. Z-blue: Zoom out. <