Quick and Simple Graphs

Quick Command: Making Graphs Fast

The best introduction to making graphs with PlotIT is through the Quick command. This command is found in the File pull-down menu in the main PlotIT window.

Gsguide00000013.gif

Selecting Quick

Select Quick from the PlotIT File menu. PlotIT will display a dialog box similar to this:

Gsguide00000014.gif

This example will use the Quick defaults. We will deal only with data from which PlotIT will create a graph.

Data Options

As mentioned earlier, data may be in several forms, including a data file or expressed as a mathematical function written in FORTRAN syntax with evaluation limits in brackets. For this example, the FORTRAN function option will be used for data.

To have PlotIT graph the parabola described by y=4x2, it must be written according to the rules of the FORTRAN programming language:

Y=4*X**2

or

Y=4*X^2

-- either will work.  In addition, with any formula entered as data, PlotIT must be told what part of the graph to plot and with how many points.  This is done by adding bracketed information after the equation in the following format:

[X-MIN, X-MAX, X-INCREMENT OR NUMBER OF POINTS]

(If a decimal point is entered with this third parameter, PlotIT assumes it to be the x-increment; an integer is assumed to be number of points.)  In a moment, you will be asked to enter an equation such as

Y=4*X**2 [-20.0, 20.0, 41]

in the Data File text box within the Quick dialog box.  PlotIT would plot the curve y=4x2 starting at x=-20.0, ending with x=20.0, and calculating 41 points through which the curve will be drawn.

If, as an alternative, you were to enter

Y=4*X**2 [-20.0, 20.0, 1.0]

into the Data File text box, PlotIT would evaluate the function at x=-20, -19, -18, ..., 19, 20.

Entering the Data

Enter the FORTRAN equation and bracketed information into the Data File text box of the Quick dialog box. Take care to get the syntax correct, as illustrated below:

Gsguide00000015.gif

When you have confirmed that you typed the data information correctly, press the Enter key. PlotIT should then display the following curve:

Gsguide00000016.gif

Hint: Use the Windows Maximize buttons to enlarge your graph for better viewing.

Customizing a Quick Graph

Quick graphs may have options that will change their look and offer more information to the person reading them. To help you become more familiar with the way PlotIT works, the following tutorial will take the simple graph created above, and change its look and add information to the graph without changing the data.

Comments

One of the elements that can be included in a graph is a comment. A Comment can simply be an annotation positioned anywhere on or about the graph, or if Auto Graph Title is selected in the Format dialog box, PlotIT will automatically position that comment as a graph title.

Adding a Title

From the Menu Bar, select Graph/Add Element, as shown below.

Gsguide00000017.gif

When the dialog box appears, click on the Comment button, then position the cursor in the New Element Name text box, and type

Title

This will give the element a more descriptive name, Comment 1 Title, rather than just the PlotIT default name, Comment 1.

Your window should look something like this:

Gsguide00000018.gif

Click OK, and notice the new dialog box appears titled with the new element name, Comment 1 Title.

Click on Graph Title. This tells PlotIT that it should position this comment as a graph title. Click on the text box and type a graph title, such as

PlotIT Example 1--Parabola

For now, leave the other choices in this dialog box alone; these affect comment style, font, and positioning.  Press the Enter key.  PlotIT will display the comment as shown:

Gsguide00000019.gif

The comment may be repositioned by using the mouse to click and drag to any desired location.

Manipulating the Comment Element, "Title"

Now that your first graph has a title, let's play with it to understand better how PlotIT works.

Selecting an Element

To select the element "Title", you may click on it with a mouse or use the Menu Bar option, Select. With either method you use to select a graph element, when it is currently selected it will have a check mark by it in the Select menu. The selected element is also displayed in the PlotIT window caption.

Gsguide00000020.gif

Open the Select pop-up menu and verify what graph element is currently selected.

Modifying the Curve Element's Class and Type

Select the curve. (Either point and click on it near a point, or use the Select menu.)

Then select the Format command. (Double-clicking on the curve near a point short-cuts this by selecting the element and bringing up the Format dialog box.) The following is what you should see:

Gsguide00000021.gif

The Class, Type, and Color options should be the defaults specified by Quick, which, in this case, are Line Graph, Trace, and blue. To change the curve to a Point Graph in a shade of green, do the following:

1. Open the Class options drop-down list box by clicking on the down arrow to the right of Line Graph in the Class box. You will see a range of Class options:

Gsguide00000022.gif

2. Select Point Graph.

3. Open the Type drop-down list box by clicking on its down arrow. Select the type, Needle.

4. Then open the color options drop-down list box. Scroll down through the colors by clicking on the scroll down arrow or by moving the thumb scroll down the scroll bar.

5. When green is displayed, select it.

6. Close the dialog box by clicking on OK, and your changes should appear on the graph:

Gsguide00000023.gif

Experiment with other curve Class options, for example, Bar Graph or None. Some options will produce no curve for the data given. When this happens, you can go back into the Format command and choose a Class option that will produce a visible curve.

Hint: Remember that any graph element you wish to modify must be selected, and the Select menu can both confirm which element is currently selected and change that selection, if necessary. If an invisible element is no longer selected (such as our curve element with a class option None, which doesn't create a curve), you must use the Select menu to select that element for modification or deletion.

Adding a Second Curve to the Graph

You may want to display two or more curves in the same graph. The following steps will walk you through adding another curve element to an existing graph.

For this example, we'll plot another function on the parabola graph created in the first tutorial.

1. Add the new element, a second curve, to the graph by selecting Graph/Add Element.

2. Select the curve option in the 2-D Graph section.

3. Give the new element a name by typing it into the New Element Name text box. Your screen should look like this:

Gsguide00000024.gif

4. Click OK or press Enter. A new dialog box appears.

5. At this point you have the option of changing the curve Class and Type from the default Line Graph and Trace. For now, use the default options.

6. Before leaving this dialog box, you must enter a data file name or a FORTRAN equation in the Data File text box. We will use another FORTRAN equation. Type the following

Y=1600-4*X^2 [-20.0, 20.0, 41]

and press Enter.  (Notice that the x-value limits are the same as the first curve.)  You should see the graph printed below:

Gsguide00000025.gif