home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / wp / pct2_2.zip / PCTDOC1.EXE / lha / CHAP13.TXT < prev    next >
Text File  |  1989-04-21  |  23KB  |  505 lines

  1.        subject: CREATING GRAPHS
  2.  
  3.       overview: With PC-Type II you can create numerous graphs.  These
  4.                 graphs can be printed on Epson, IBM Pro Printer,
  5.                 Okidata and LaserJet printers.
  6.  
  7.                 Graphs include pie charts, vertical and horizontal bar
  8.                 charts, and line and scatter diagrams.  You can have
  9.                 up to 100 variables with 100 points apiece.  You can
  10.                 display cumulative graphs for bar charts and line
  11.                 diagrams.  Pie charts may be displayed singly, or two
  12.                 at a time.
  13.  
  14.                 Within the graphics package, you can superimpose a
  15.                 grid and display your data logarithmically.  Slices of
  16.                 pies may be selectively exploded.  You can define the
  17.                 aspect ratios of both your monitor and your printer
  18.                 so that pies will appear round on both.  You can also
  19.                 select colors if you have an EGA or VGA color monitor.
  20.  
  21.                 PC-Type II prompts you for the information required for
  22.                 your graph and creates a file called GRAPH.ME in your
  23.                 default directory.  It then switches to the program
  24.                 PCG2.EXE which reads the GRAPH.ME file.  Within
  25.                 PCG2.EXE you may move from one representation of the
  26.                 data to another, (e.g. from a line diagram to bar
  27.                 chart), print the graphs, etc.  When you are finished
  28.                 and leave the PCG2 program, you are returned to
  29.                 PC-Type II.
  30.  
  31.                 This section describes how to define the data for
  32.                 PC-Type II to create the GRAPH.ME file.  The sample shown
  33.                 below will be used to describe this process.  To learn
  34.                 how to operate PCG2.EXE, refer to PCG2 in the "Other
  35.                 Programs" section of this manual.
  36.  
  37.                 ┌───────────────────────────────────────┐
  38.                 │                                       │
  39.                 │         Comparative Intnl Sales       │
  40.                 │            (By city & Month)          │
  41.                 │                                       │
  42.                 │                   (86)                │
  43.                 │            Jan   Feb   Mar            │
  44.                 │           ┌──────────────── │         │
  45.                 │     Philly│ 10    50    22  │  82     │
  46.                 │   Montreal│ 20    80   -10  │  90     │
  47.                 │      Paris│ 30    20    40  │  90     │
  48.                 │     Moscow│ 40    15    60  │ 115     │
  49.                 │    Redmond│100    30    15  │ 145     │
  50.                 │       Lima│ 60   110    99  │ 269     │
  51.                 │       Bonn│ 20    33   122  │ 175     │
  52.                 │            ─────────────────┼────     │
  53.                 │     Totals 280   338   348  │ 966     │
  54.                 │                                       │
  55.                 └───────────────────────────────────────┘
  56.                                  158
  57.        subject: GRAPH MODE
  58.  
  59.     discussion: To enter the GRAPH Definition Mode, select the option
  60.                 "(G)raph" from the Main Menu.  When you do so, the
  61.                 following window will appear:
  62.                 ╔══════════════════════════════════╗
  63.                 ║ In GRAPH mode.                   ║
  64.                 ║                                  ║
  65.                 ║ Only screen movement keys active.║
  66.                 ║ Requests for information will be ║
  67.                 ║ made on the command line.        ║
  68.                 ║ Press a key to continue.         ║
  69.                 ╚══════════════════════════════════╝
  70.                 Once in this mode, you cannot alter your file.
  71.  
  72.                 The entire purpose of this mode is to define where the
  73.                 data to be graphed is located within your file.  The
  74.                 cursor movement keys will operate, such as PgUp, PgDn,
  75.                 and the arrow keys.  The highlighting keystrokes are
  76.                 also operable.
  77.  
  78.                 You may exit the GRAPH Definition Mode by pressing the
  79.                 Esc key at any time.  If you do so, you will be asked
  80.                 to confirm exiting the mode by answering Yes or No
  81.                 before you will be returned to PC-Type II's normal edit
  82.                 mode.
  83.  
  84.       graph.me: The data to be graphed will be saved in an ASCII file
  85.                 called GRAPH.ME on your default drive.  The data in
  86.                 GRAPH.ME is used by PCG2.EXE to create the graph(s).
  87.                 GRAPH.ME can be edited directly by PC-Type II and rerun
  88.                 without having to redefine the graphics data via the
  89.                 GRAPH Definition Mode of PC-Type II.
  90.  
  91.                 After pressing a key to exit the window shown above,
  92.                 PC-Type II checks to see if GRAPH.ME already exists on
  93.                 your default drive.  If such a file does exist, then
  94.                 the window below will be shown:
  95.  
  96.                 ┌──────────────────────────────────┐
  97.                 │ Question:                        │
  98.                 ╞══════════════════════════════════╡
  99.                 │                                  │
  100.                 │ Create new GRAPH.ME file or      │
  101.                 │ go directly to PCG2?             │
  102.                 │ Press C for Create or P for PCG2 │
  103.                 └──────────────────────────────────┘
  104.  
  105.                 By pressing P, the GRAPH.ME file will be rerun by
  106.                 PCG2.EXE with no further ado.  If you wish to define
  107.                 new data, however, then press C and a new GRAPH.ME
  108.                 file will be created by answering the questions which
  109.                 follow.  (If no GRAPH.ME file exists on your default
  110.                 drive, this question will not be asked.)
  111.  
  112.                                  159
  113.        subject: DEFINING VALUES TO BE GRAPHED
  114.  
  115.     discussion: The first information requested is the location of the
  116.                 values to be graphed with the message:
  117.  
  118.                  Mark DATA to be graphed with CtrlB.  F10 when done.
  119.  
  120.                 This is accomplished by moving the cursor to opposite
  121.                 corners of the set of data values to be graphed and
  122.                 pressing Ctrl B at each of the two locations.  In the
  123.                 examples below, these locations are shown by the "╔"
  124.                 and '╝' characters.  (The examples are extracted from
  125.                 the sample PC-Type II file shown at the bottom of the
  126.                 Overview page of this section.)
  127.  
  128.                 ╔───────────────┐
  129.                 │ 10    50    22│  In this example, multiple groups of
  130.                 │ 20    80   -10│  data (variables) are defined.  Each
  131.                 │ 30    20    40│  row constitutes a group of data
  132.                 │ 40    15    60│  consisting of three points.  In this
  133.                 │100    30    15│  case, a group is a set of monthly
  134.                 │ 60   110    99│  sales figures for a particular city.
  135.                 │ 20    33   122│
  136.                 └───────────────╝
  137.                 ╔───────────────┐  If only one group is to be graphed,
  138.                 │ 40    15    60│  then you may mark a single row as
  139.                 └───────────────╝  shown to the left, or a single
  140.                             ╔───┐  column as below.  Many of the
  141.                             │ 22│  following questions depend upon
  142.                             │-10│  which type of value marking was
  143.                             │ 40│  made.  Once the values have been
  144.                             │ 60│  defined by the Ctrl Bs, press F10 to
  145.                             │ 15│  continue to the next step.
  146.                             └───╝
  147.  
  148.                 To distinguish different columns of data, PC-Type II asks:
  149.  
  150.                 Define columns as:  aabbbb  cccc. Then press Enter.
  151.  
  152.                 ┌───────────────┐  A field will appear within the area
  153.                 │ 10    50    22│  you marked (shown at the left with
  154.                 │ 20    80   -10│  the '║' characters.).  Mark each
  155.                 │ 30    20    40│  column with a set of repeating
  156.                 │ 40    15    60│  characters.  If a column is not to
  157.                 │100    30    15│  be graphed, leave spaces in the
  158.                 │ 60   110    99│  field.  If only one column exists,
  159.                 ║aaabbbbbbcccccc║  fill it in.  These column
  160.                 └───────────────┘  definitions are also used for the
  161.                                                          column identifiers.
  162.  
  163.                 The values defined are then given a meaning:
  164.  
  165.                 Enter content of data being graphed e.g.  SALES in $:
  166.  
  167.                 In our example we entered "Sales in $".
  168.                                  160
  169.        subject: DEFINING COLUMN LABELS for the GRAPH
  170.  
  171.     discussion: Column labels and the column category heading will be
  172.                 truncated if they exceed 12 characters in length.  If
  173.                 you only define one column, the questions on this page
  174.                 will not be asked.
  175.  
  176.                 After the data values are defined, you must identify
  177.                 the labels which go with the columns you marked.  You
  178.                 are prompted for this data with the message:
  179.  
  180.                 Mark COL identifiers with CtrlB. Press F10 when done.
  181.  
  182.                 In our example, you would mark the three months by
  183.                 pressing CtrlB at the ╔ and ╝ characters.
  184.                 (Actually, you can move to the appropriate line and
  185.                 press Ctrl L).  The label data in the marked area will
  186.                 be separated by the same column definition information
  187.                 you provided above.  For this reason, you should be
  188.                 sure to define the columns wide enough to include the
  189.                 column labels which are assumed to line up exactly.
  190.                             ╔───────────────┐
  191.                             │Jan   Feb   Mar│
  192.                             └───────────────╝
  193.  
  194.                 After marking the column labels, press F10 and respond
  195.                 to the data request:
  196.  
  197.                 Enter COL category - e.g. Months:
  198.  
  199.                 In our example, we typed "Months".
  200.  
  201.                 Suppose for a moment that the column label data we
  202.                 marked was not the months shown above, but the values:
  203.                              ╔───────────────┐
  204.                              │1.0   2.0   3.4│
  205.                              └───────────────╝
  206.  
  207.                 Then we would be asked:
  208.                 ┌─────────────────────────┐
  209.                 │ Question:               │
  210.                 ╞═════════════════════════╡
  211.                 │ All Column IDs numeric. │
  212.                 │ Use as Text or Value?   │
  213.                 │ Press T or V            │
  214.                 └─────────────────────────┘
  215.                 If we pressed T, then the column labels would be
  216.                 treated as text and separated by equal distances when
  217.                 placed on the X-axis of a Line or Scatter diagram.
  218.  
  219.                 However, if we pressed V, then the column label values
  220.                 would be treated as numeric values on the X-axis of a
  221.                 Line or Scatter diagram, and their points would be
  222.                 plotted according to the values defined.  (For this
  223.                 example we defined the category title as "Values".)
  224.                                  161
  225.        subject: DEFINING ROW LABELS for the GRAPH
  226.  
  227.     discussion: If you only define one row, the questions on this page
  228.                 will not be asked.
  229.  
  230.                 (Row labels and the row category heading will be
  231.                 truncated if they exceed 12 characters in length.)
  232.  
  233.                 You must identify the labels which go with the rows
  234.                 you marked.  You are prompted for this data with the
  235.                 message:
  236.  
  237.                 Mark ROW identifiers with CtrlB.  Press F10 when done.
  238.  
  239.                 ╔────────┐
  240.                 │  Philly│
  241.                 │Montreal│
  242.                 │   Paris│
  243.                 │  Moscow│
  244.                 │ Redmond│
  245.                 │    Lima│
  246.                 │    Bonn│
  247.                 └────────╝
  248.  
  249.                 In our example, we marked the row labels as shown by
  250.                 pressing CtrlB at the ╔ and ╝ characters.
  251.  
  252.                 The row labels must be on the same row as the data
  253.                 they represent.  For this reason, PC-Type II only
  254.                 needs to know the size and offset on the row where the
  255.                 row labels are to be found.  This could be done by
  256.                 only marking "Montreal" as:
  257.  
  258.                 ╔────────┐
  259.                 │Montreal│
  260.                 └────────╝
  261.  
  262.                 After marking the row labels, press F10 and then
  263.                 respond to the data request:
  264.  
  265.                 Enter ROW category - e.g. Months:
  266.  
  267.                 In our example, we typed "Cities", then pressed the
  268.                 Enter key.
  269.  
  270.                 Unlike column labels, row labels are always treated as
  271.                 text.
  272.  
  273.  
  274.  
  275.  
  276.  
  277.  
  278.  
  279.  
  280.                                  162
  281.        subject: DEFINING TITLES
  282.  
  283.          title: The graph's title may be up to 40 characters in
  284.                 length.  You may highlight the title with Ctrl B's or
  285.                 type in the title separately by responding to the
  286.                 prompt:
  287.  
  288.                 Highlight the graph TITLE then F10, or F10 first and type one in.
  289.  
  290.                 ╔───────────────────────┐
  291.                 │Comparative Intnl Sales│
  292.                 └───────────────────────╝
  293.                 In our example, we highlighted the title by pressing
  294.                 CtrlB at the ╔ and ╝ characters.  Then we pressed F10.
  295.  
  296.                 Alternatively, we could have pressed F10 without
  297.                 highlighting any data.  In this case a field would be
  298.                 made available with the prompt "Enter graph title:".
  299.                 You could then type in the desired title and press the
  300.                 Enter key.
  301.  
  302.       subtitle: The graph's subtitle may be up to 40 characters in
  303.                 length.  You may highlight the subtitle on the graph
  304.                 with Ctrl Bs or type in the subtitle separately by
  305.                 responding to the prompt:
  306.  
  307.                 Highlight the SUBTITLE then F10, or F10 first and type one in.
  308.  
  309.                 ╔─────────────────┐
  310.                 │(By city & Month)│
  311.                 └─────────────────╝
  312.                 In our example, we highlighted the subtitle by
  313.                 pressing CtrlB at the ╔ and ╝ characters.  Then we
  314.                 pressed F10.
  315.  
  316.                 Alternatively, we could have pressed F10 without
  317.                 highlighting any data.  In this case a field would be
  318.                 made available with the prompt "Enter subtitle:".  You
  319.                 could then type in the desired subtitle and press the
  320.                 Enter key.  (If no subtitle is desired, use this
  321.                 option and press Enter without keying in any text.)
  322.  
  323.  
  324.  
  325.  
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.  
  335.  
  336.                                  163
  337.        subject: INITIAL TYPE OF GRAPH AND SETTING BOUNDS
  338.  
  339.     graph type: You are now ready to select the initial type of graph
  340.                 to display when PCG2 is called.  Select the graph type
  341.                 from the menu shown below.
  342.  
  343.                 ┌────────────────┐
  344.                 │Graph Type:     │
  345.                 ╞════════════════╡
  346.                 │(H)orizontal Bar│
  347.                 │(L)ine          │
  348.                 │(P)ie           │
  349.                 │(S)catter       │
  350.                 │(V)ertical Bar  │
  351.                 └────────────────┘
  352.  
  353.                 Once inside PCG2 you can, of course, switch from one
  354.                 type of graph to another.
  355.  
  356. setting bounds: This option only occurs if multiple columns were
  357.                 defined with numeric column labels.  If the first
  358.                 column label is a value greater than 0, you will be
  359.                 asked:
  360.  
  361.                 ┌────────────────────────────┐
  362.                 │ Question:                  │
  363.                 ╞════════════════════════════╡
  364.                 │                            │
  365.                 │ Min X value > 0.           │
  366.                 │ Graph from X=Zero or X=Min │
  367.                 │ Press Z or M               │
  368.                 │                            │
  369.                 └────────────────────────────┘
  370.  
  371.                 A line or scatter diagram of such a graph will
  372.                 normally start with the left-most point on the X-axis
  373.                 equal to zero.  Since the first value was greater than
  374.                 0, the graph will not begin at the left of the
  375.                 graphics screen.
  376.  
  377.                 This question permits you to begin the X-axis at the
  378.                 minimum X value supplied as a column label if you
  379.                 press M.  A special "BOUND:" record is added to the
  380.                 GRAPH.ME file in this case, and the MENU option
  381.                 "(B)OUND" will appear in PCG2.  Pressing B in the PCG2
  382.                 menu will toggle you between the standard
  383.                 representation and the "bound" representation.
  384.  
  385.  
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  
  392.                                  164
  393.        subject: SAMPLE GRAPH.ME FILES
  394.  
  395.     discussion: The GRAPH.ME file presented below represents the end
  396.                 product of the definitions made in our sample graph in
  397.                 this section.  (See PCG2 in "Other Programs" for a
  398.                 description of the GRAPH.ME file.)
  399.  
  400.                ░PARMS:L
  401.                ░TITLE:Comparative Intnl Sales
  402.                ░TITLES:(By city & Month) TITLEV:Sales in $
  403.                ░TITLEC:Months
  404.                ░TITLEG:Cities
  405.                ░TITLEG:Philly
  406.                ░TITLEG:Montreal
  407.                ░TITLEG:Paris
  408.                ░TITLEG:Moscow
  409.                ░TITLEG:Redmond
  410.                ░TITLEG:Lima
  411.                ░TITLEG:Bonn
  412.                ░10,20,30,40,100,60,20:Jan
  413.                ░50,80,20,15,30,110,33:Feb
  414.                ░22,-10,40,60,15,99,122:Mar
  415.  
  416.                 The display below shows how the information would be
  417.                 placed in the actual line graph.  Note that the
  418.                 location of all the data depends upon the type of
  419.                 graph being shown.
  420.  
  421.                 ┌────────────────────────────────────────────────────┐
  422.                 │                                                    │
  423.                 │          Comparative Intnl Sales                   │
  424.                 │             (By city & Month)                      │
  425.                 │   125 ┤                        .                   │
  426.                 │       │                                 Cities     │
  427.                 │ S 100 ┤  .          .          .       .. Philly   │
  428.                 │ a     │             .                  .. Montreal │
  429.                 │ l  75 ┤                                .. Paris    │
  430.                 │ e     │  .     Data points     .       .. Moscow   │
  431.                 │ s  50 ┤  .          .                  .. Redmond  │
  432.                 │       │  .          .          .       .. Lima     │
  433.                 │ i  25 ┤  .                     .       .. Bonn     │
  434.                 │ n     │  .          .          .                   │
  435.                 │     0 ┤                                            │
  436.                 │ $     │                        .                   │
  437.                 │   -25 ┴──┬──────────┬──────────┬──                 │
  438.                 │         Jan        Feb        Mar                  │
  439.                 │                                                    │
  440.                 │                  Months                            │
  441.                 │                                                    │
  442.                 └────────────────────────────────────────────────────┘
  443.  
  444.  
  445.  
  446.  
  447.  
  448.                                  165
  449.          bound: In our example, we discussed what happens if the
  450.                 column labels are numeric and are to be treated as
  451.                 values.  The net result of this case would be the
  452.                 modification of four lines in the GRAPH.ME file and
  453.                 the addition of another line as shown.
  454.  
  455.                ░TITLEC:Values
  456.                ░10,20,30,40,100,60,20:#1.
  457.                ░50,80,20,15,30,110,33:#2.
  458.                ░22,-10,40,60,15,99,122:#3.4
  459.                ░BOUND:3.4,1,122,-10,0,358
  460.  
  461.                 The TITLEC: line is different because we entered the
  462.                 column category heading as "Values" instead of
  463.                 "Months".
  464.  
  465.                 Note that "Jan", "Feb" and "Mar" on the three data
  466.                 lines have been replaced with #1., #2. and #3.4.  The
  467.                 "#" character implies that the data which follows is
  468.                 to be interpreted by PCG2 as numeric data, not text.
  469.  
  470.                 Finally, the "BOUND:" line is added at the end of the
  471.                 file.  Notice that the maximum and minimum values of X
  472.                 are the first two entries on the line.
  473.  
  474.                 The display below shows how this data will change the
  475.                 line graph from that shown on the previous page.
  476.  
  477.                 ┌─────────────────────────────────────────────────────┐
  478.                 │                                                     │
  479.                 │          Comparative Intnl Sales                    │
  480.                 │             (By city & Month)                       │
  481.                 │   125 ┤                        .                    │
  482.                 │       │                                 Cities      │
  483.                 │ S 100 ┤  .        .            .       .. Philly    │
  484.                 │ a     │           .                    .. Montreal  │
  485.                 │ l  75 ┤                                .. Paris     │
  486.                 │ e     │  .     Data points     .       .. Moscow    │
  487.                 │ s  50 ┤  .        .                    .. Redmond   │
  488.                 │       │  .        .            .       .. Lima      │
  489.                 │ i  25 ┤  .                     .       .. Bonn      │
  490.                 │ n     │  .        .            .                    │
  491.                 │     0 ┤                                             │
  492.                 │ $     │                        .                    │
  493.                 │   -25 ┴──┬────────┬────────────┬──                  │
  494.                 │         1.0      2.0          3.4                   │
  495.                 │                                                     │
  496.                 │                  Values                             │
  497.                 │                                                     │
  498.                 └─────────────────────────────────────────────────────┘
  499.  
  500.  
  501.  
  502.  
  503.  
  504.                                  166
  505.