subject: CREATING GRAPHS overview: With PC-Type II you can create numerous graphs. These graphs can be printed on Epson, IBM Pro Printer, Okidata and LaserJet printers. Graphs include pie charts, vertical and horizontal bar charts, and line and scatter diagrams. You can have up to 100 variables with 100 points apiece. You can display cumulative graphs for bar charts and line diagrams. Pie charts may be displayed singly, or two at a time. Within the graphics package, you can superimpose a grid and display your data logarithmically. Slices of pies may be selectively exploded. You can define the aspect ratios of both your monitor and your printer so that pies will appear round on both. You can also select colors if you have an EGA or VGA color monitor. PC-Type II prompts you for the information required for your graph and creates a file called GRAPH.ME in your default directory. It then switches to the program PCG2.EXE which reads the GRAPH.ME file. Within PCG2.EXE you may move from one representation of the data to another, (e.g. from a line diagram to bar chart), print the graphs, etc. When you are finished and leave the PCG2 program, you are returned to PC-Type II. This section describes how to define the data for PC-Type II to create the GRAPH.ME file. The sample shown below will be used to describe this process. To learn how to operate PCG2.EXE, refer to PCG2 in the "Other Programs" section of this manual. ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ³ ³ ³ Comparative Intnl Sales ³ ³ (By city & Month) ³ ³ ³ ³ (86) ³ ³ Jan Feb Mar ³ ³ ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ ³ ³ ³ Philly³ 10 50 22 ³ 82 ³ ³ Montreal³ 20 80 -10 ³ 90 ³ ³ Paris³ 30 20 40 ³ 90 ³ ³ Moscow³ 40 15 60 ³ 115 ³ ³ Redmond³100 30 15 ³ 145 ³ ³ Lima³ 60 110 99 ³ 269 ³ ³ Bonn³ 20 33 122 ³ 175 ³ ³ ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄ ³ ³ Totals 280 338 348 ³ 966 ³ ³ ³ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ 158 subject: GRAPH MODE discussion: To enter the GRAPH Definition Mode, select the option "(G)raph" from the Main Menu. When you do so, the following window will appear: ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» º In GRAPH mode. º º º º Only screen movement keys active.º º Requests for information will be º º made on the command line. º º Press a key to continue. º ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ Once in this mode, you cannot alter your file. The entire purpose of this mode is to define where the data to be graphed is located within your file. The cursor movement keys will operate, such as PgUp, PgDn, and the arrow keys. The highlighting keystrokes are also operable. You may exit the GRAPH Definition Mode by pressing the Esc key at any time. If you do so, you will be asked to confirm exiting the mode by answering Yes or No before you will be returned to PC-Type II's normal edit mode. graph.me: The data to be graphed will be saved in an ASCII file called GRAPH.ME on your default drive. The data in GRAPH.ME is used by PCG2.EXE to create the graph(s). GRAPH.ME can be edited directly by PC-Type II and rerun without having to redefine the graphics data via the GRAPH Definition Mode of PC-Type II. After pressing a key to exit the window shown above, PC-Type II checks to see if GRAPH.ME already exists on your default drive. If such a file does exist, then the window below will be shown: ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ³ Question: ³ ÆÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ͵ ³ ³ ³ Create new GRAPH.ME file or ³ ³ go directly to PCG2? ³ ³ Press C for Create or P for PCG2 ³ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ By pressing P, the GRAPH.ME file will be rerun by PCG2.EXE with no further ado. If you wish to define new data, however, then press C and a new GRAPH.ME file will be created by answering the questions which follow. (If no GRAPH.ME file exists on your default drive, this question will not be asked.) 159 subject: DEFINING VALUES TO BE GRAPHED discussion: The first information requested is the location of the values to be graphed with the message: Mark DATA to be graphed with CtrlB. F10 when done. This is accomplished by moving the cursor to opposite corners of the set of data values to be graphed and pressing Ctrl B at each of the two locations. In the examples below, these locations are shown by the "É" and '¼' characters. (The examples are extracted from the sample PC-Type II file shown at the bottom of the Overview page of this section.) ÉÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ³ 10 50 22³ In this example, multiple groups of ³ 20 80 -10³ data (variables) are defined. Each ³ 30 20 40³ row constitutes a group of data ³ 40 15 60³ consisting of three points. In this ³100 30 15³ case, a group is a set of monthly ³ 60 110 99³ sales figures for a particular city. ³ 20 33 122³ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄļ ÉÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ If only one group is to be graphed, ³ 40 15 60³ then you may mark a single row as ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄļ shown to the left, or a single ÉÄÄÄ¿ column as below. Many of the ³ 22³ following questions depend upon ³-10³ which type of value marking was ³ 40³ made. Once the values have been ³ 60³ defined by the Ctrl Bs, press F10 to ³ 15³ continue to the next step. ÀÄÄļ To distinguish different columns of data, PC-Type II asks: Define columns as: aabbbb cccc. Then press Enter. ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ A field will appear within the area ³ 10 50 22³ you marked (shown at the left with ³ 20 80 -10³ the 'º' characters.). Mark each ³ 30 20 40³ column with a set of repeating ³ 40 15 60³ characters. If a column is not to ³100 30 15³ be graphed, leave spaces in the ³ 60 110 99³ field. If only one column exists, ºaaabbbbbbccccccº fill it in. These column ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ definitions are also used for the column identifiers. The values defined are then given a meaning: Enter content of data being graphed e.g. SALES in $: In our example we entered "Sales in $". 160 subject: DEFINING COLUMN LABELS for the GRAPH discussion: Column labels and the column category heading will be truncated if they exceed 12 characters in length. If you only define one column, the questions on this page will not be asked. After the data values are defined, you must identify the labels which go with the columns you marked. You are prompted for this data with the message: Mark COL identifiers with CtrlB. Press F10 when done. In our example, you would mark the three months by pressing CtrlB at the É and ¼ characters. (Actually, you can move to the appropriate line and press Ctrl L). The label data in the marked area will be separated by the same column definition information you provided above. For this reason, you should be sure to define the columns wide enough to include the column labels which are assumed to line up exactly. ÉÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ³Jan Feb Mar³ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄļ After marking the column labels, press F10 and respond to the data request: Enter COL category - e.g. Months: In our example, we typed "Months". Suppose for a moment that the column label data we marked was not the months shown above, but the values: ÉÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ³1.0 2.0 3.4³ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄļ Then we would be asked: ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ³ Question: ³ ÆÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ͵ ³ All Column IDs numeric. ³ ³ Use as Text or Value? ³ ³ Press T or V ³ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ If we pressed T, then the column labels would be treated as text and separated by equal distances when placed on the X-axis of a Line or Scatter diagram. However, if we pressed V, then the column label values would be treated as numeric values on the X-axis of a Line or Scatter diagram, and their points would be plotted according to the values defined. (For this example we defined the category title as "Values".) 161 subject: DEFINING ROW LABELS for the GRAPH discussion: If you only define one row, the questions on this page will not be asked. (Row labels and the row category heading will be truncated if they exceed 12 characters in length.) You must identify the labels which go with the rows you marked. You are prompted for this data with the message: Mark ROW identifiers with CtrlB. Press F10 when done. ÉÄÄÄÄÄÄÄÄ¿ ³ Philly³ ³Montreal³ ³ Paris³ ³ Moscow³ ³ Redmond³ ³ Lima³ ³ Bonn³ ÀÄÄÄÄÄÄÄļ In our example, we marked the row labels as shown by pressing CtrlB at the É and ¼ characters. The row labels must be on the same row as the data they represent. For this reason, PC-Type II only needs to know the size and offset on the row where the row labels are to be found. This could be done by only marking "Montreal" as: ÉÄÄÄÄÄÄÄÄ¿ ³Montreal³ ÀÄÄÄÄÄÄÄļ After marking the row labels, press F10 and then respond to the data request: Enter ROW category - e.g. Months: In our example, we typed "Cities", then pressed the Enter key. Unlike column labels, row labels are always treated as text. 162 subject: DEFINING TITLES title: The graph's title may be up to 40 characters in length. You may highlight the title with Ctrl B's or type in the title separately by responding to the prompt: Highlight the graph TITLE then F10, or F10 first and type one in. ÉÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ³Comparative Intnl Sales³ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄļ In our example, we highlighted the title by pressing CtrlB at the É and ¼ characters. Then we pressed F10. Alternatively, we could have pressed F10 without highlighting any data. In this case a field would be made available with the prompt "Enter graph title:". You could then type in the desired title and press the Enter key. subtitle: The graph's subtitle may be up to 40 characters in length. You may highlight the subtitle on the graph with Ctrl Bs or type in the subtitle separately by responding to the prompt: Highlight the SUBTITLE then F10, or F10 first and type one in. ÉÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ³(By city & Month)³ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄļ In our example, we highlighted the subtitle by pressing CtrlB at the É and ¼ characters. Then we pressed F10. Alternatively, we could have pressed F10 without highlighting any data. In this case a field would be made available with the prompt "Enter subtitle:". You could then type in the desired subtitle and press the Enter key. (If no subtitle is desired, use this option and press Enter without keying in any text.) 163 subject: INITIAL TYPE OF GRAPH AND SETTING BOUNDS graph type: You are now ready to select the initial type of graph to display when PCG2 is called. Select the graph type from the menu shown below. ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ³Graph Type: ³ ÆÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ͵ ³(H)orizontal Bar³ ³(L)ine ³ ³(P)ie ³ ³(S)catter ³ ³(V)ertical Bar ³ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ Once inside PCG2 you can, of course, switch from one type of graph to another. setting bounds: This option only occurs if multiple columns were defined with numeric column labels. If the first column label is a value greater than 0, you will be asked: ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ³ Question: ³ ÆÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ͵ ³ ³ ³ Min X value > 0. ³ ³ Graph from X=Zero or X=Min ³ ³ Press Z or M ³ ³ ³ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ A line or scatter diagram of such a graph will normally start with the left-most point on the X-axis equal to zero. Since the first value was greater than 0, the graph will not begin at the left of the graphics screen. This question permits you to begin the X-axis at the minimum X value supplied as a column label if you press M. A special "BOUND:" record is added to the GRAPH.ME file in this case, and the MENU option "(B)OUND" will appear in PCG2. Pressing B in the PCG2 menu will toggle you between the standard representation and the "bound" representation. 164 subject: SAMPLE GRAPH.ME FILES discussion: The GRAPH.ME file presented below represents the end product of the definitions made in our sample graph in this section. (See PCG2 in "Other Programs" for a description of the GRAPH.ME file.) °PARMS:L °TITLE:Comparative Intnl Sales °TITLES:(By city & Month) TITLEV:Sales in $ °TITLEC:Months °TITLEG:Cities °TITLEG:Philly °TITLEG:Montreal °TITLEG:Paris °TITLEG:Moscow °TITLEG:Redmond °TITLEG:Lima °TITLEG:Bonn °10,20,30,40,100,60,20:Jan °50,80,20,15,30,110,33:Feb °22,-10,40,60,15,99,122:Mar The display below shows how the information would be placed in the actual line graph. Note that the location of all the data depends upon the type of graph being shown. ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ³ ³ ³ Comparative Intnl Sales ³ ³ (By city & Month) ³ ³ 125 ´ . ³ ³ ³ Cities ³ ³ S 100 ´ . . . .. Philly ³ ³ a ³ . .. Montreal ³ ³ l 75 ´ .. Paris ³ ³ e ³ . Data points . .. Moscow ³ ³ s 50 ´ . . .. Redmond ³ ³ ³ . . . .. Lima ³ ³ i 25 ´ . . .. Bonn ³ ³ n ³ . . . ³ ³ 0 ´ ³ ³ $ ³ . ³ ³ -25 ÁÄÄÂÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÂÄÄ ³ ³ Jan Feb Mar ³ ³ ³ ³ Months ³ ³ ³ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ 165 bound: In our example, we discussed what happens if the column labels are numeric and are to be treated as values. The net result of this case would be the modification of four lines in the GRAPH.ME file and the addition of another line as shown. °TITLEC:Values °10,20,30,40,100,60,20:#1. °50,80,20,15,30,110,33:#2. °22,-10,40,60,15,99,122:#3.4 °BOUND:3.4,1,122,-10,0,358 The TITLEC: line is different because we entered the column category heading as "Values" instead of "Months". Note that "Jan", "Feb" and "Mar" on the three data lines have been replaced with #1., #2. and #3.4. The "#" character implies that the data which follows is to be interpreted by PCG2 as numeric data, not text. Finally, the "BOUND:" line is added at the end of the file. Notice that the maximum and minimum values of X are the first two entries on the line. The display below shows how this data will change the line graph from that shown on the previous page. ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ³ ³ ³ Comparative Intnl Sales ³ ³ (By city & Month) ³ ³ 125 ´ . ³ ³ ³ Cities ³ ³ S 100 ´ . . . .. Philly ³ ³ a ³ . .. Montreal ³ ³ l 75 ´ .. Paris ³ ³ e ³ . Data points . .. Moscow ³ ³ s 50 ´ . . .. Redmond ³ ³ ³ . . . .. Lima ³ ³ i 25 ´ . . .. Bonn ³ ³ n ³ . . . ³ ³ 0 ´ ³ ³ $ ³ . ³ ³ -25 ÁÄÄÂÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄ ³ ³ 1.0 2.0 3.4 ³ ³ ³ ³ Values ³ ³ ³ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ 166