Modulefpreviousupnextcontents[BIG][Normal][small]
Next: 5 Visualization of surfaces Up: 4 Visualization of curves Prev: 4.2 Utilization of TRACXX Contents


4.3 Complete description of TRACXX

The module computes the extrema corresponding to the curves to be plotted automatically so that the corners of the box in which the plot will be displayed can be defined.

The line type or symbol used to plot a curve is chosen automatically by alternating (modulo the number of possibilities which exist) the choice corresponding to the type retained.

In practice, we use preprocessor TRACXX, to indicate to the module the different choices made of the possibilities offered. The only point which is a bit delicate is the one linked to the definition of the axis appearing on the plot.

The menu of TRAKOU (module called in this case) consists of a general part, a part related to the definition of the axis, a part related to the definition of the analytical functions, and a part related to the definition of an interpolation.

A default value is proposed for each option. To modify it, it suffices to select the number of the corresponding key and enter the value(s) desired.

Principal part of the menu:

 ------------------------------------------------------------
 | 11 | DEVICE NUMBER             |       1
 ------------------------------------------------------------
 | 12 | PLOT TITLE                |                                                                                  
 ------------------------------------------------------------
 | 13 | SOLID LINE                |       0
 ------------------------------------------------------------
 | 18 | ANALYTICAL FUNCTION       |   NO                                  
 ------------------------------------------------------------
 | 19 | INTERPOLATION             |   NO                                  
 ------------------------------------------------------------
 | 20 | FILE TO PLOT              |  courbe1.data                                             
 ------------------------------------------------------------
 |    | CURVES'S EXTREMA IN X     |     1.000000       20.00000    
 ------------------------------------------------------------
 | 21 | EXTREMA FOR THE X'AXIS    |     1.000000       20.00000    
 ------------------------------------------------------------
 |    | CURVES'S EXTREMA IN Y     |    0.0000000       50.00000    
 ------------------------------------------------------------
 | 21 | EXTREMA FOR THE Y'AXIS    |    0.0000000       50.00000    
 ------------------------------------------------------------
 | 22 | X'S SCALE                 |   LINEAR                              
 ------------------------------------------------------------
 | 22 | Y SCALE                   |   LINEAR                              
 ------------------------------------------------------------
 | 30 | PLOT SIZE                 |   AUTO
 ------------------------------------------------------------
 | 40 | CHARACTERS TYPE           |   HARD
 ------------------------------------------------------------
 | 60 | GENERAL LEGEND            |   YES                                 
 ------------------------------------------------------------
 | 61 | AXES WITH LEGEND          |   NO                                  
 ------------------------------------------------------------
 | 62 | AXES DEFINITION           |   AUTO                   
 ------------------------------------------------------------
 | 63 | CURVE(S) WITH LEGEND      |   NO                                  
 ------------------------------------------------------------
 | 64 | GRID                      |   NO                                  
 ------------------------------------------------------------
        | 80 | PLOT OF CURVE  1       BY LINES                            
 ------------------------------------------------------------
        | 80 | PLOT OF CURVE  2       BY LINES                            
 ------------------------------------------------------------
 | 81 | CURVE GRAPHICS            |   AUTO                                
 ------------------------------------------------------------
 | 82 | LINE THICKNESS            |       1
 ------------------------------------------------------------
 | 83 | HELP (LINE, GRAPHICS)     |  
 ------------------------------------------------------------
 | 90 | SAVE CURVES               |   NON                    
 ------------------------------------------------------------

A key (a number) and a status correspond to each item. To modify the status, it suffices to type the key and enter the values corresponding to the status desired (see the general introduction).

Key 11:
the device number.
Key 12:
the title which will appear on the plot in the legend part of the plot.
Key 13:
the plot of the curves is done by considering all the points of measure (default choice: 0), by considering only one point in 2 (3, 4, ...) (choice -2, -3, etc.), or by joining 2, 3, etc. consecutive points and then by passing to the following packet of 2, 3, etc. points by jumping an interval (choice 2, 3, etc.).
Key 18:
by typing 18 we go to the analytical function definition sub-menu to add a curve to the displayed plot; the curve is defined via a function. By default, the extrema are those of the initial plot; to change them refer to the sub-menu which appears in this case, described below).
Key 19:
No by default, it enables the user to construct and plot the curve interpolation function. This key triggers a sub-menu, described below.
Key 20:
the name of the files containing the values. To change files, we activate this key and input the new file name.
Key 21:
the extrema are calculated for all the curves (which gives the default values) and can be adjusted (take care in the case of analytical curves where the extrema of the curves are defined at the moment when we input each curve).
Key 22:
the choice of scale type, be default Linear. All couples are possible (linear in x and/or y, logarithmic in x and/or y).
Key 30:
the plot will be full screen, otherwise the user must specify the size in cm.
Key 40:
the type of characters plotted: hardware (by default), software if not.
Key 60:
the general legend (there is a legend by default) corresponds to the indications appearing to the right of the plot (see examples: title, date, file name, ...).
Key 61:
by default there is no legend on the axis. To obtain one, activate this key or go to key 62.
Key 62:
by default the axis consists of 3 intervals subdivided into 5 sub-intervals. By selecting this key, we go to the axis definition sub-menu, described below.
Key 63:
if there is a general legend, it can include legends associated with each curve written next to a line, of the same type as the corresponding curve (it is preferably to type this legend between quotes).
Key 64:
to plot a grid (no by default). By activating this key, the user can request to plot a baseline grid on the intervals (rough grid) or on the intervals and sub-intervals (fine grid).
Key 80:
the type of curve representation: lines (by default) and/or symbols for all the curves (one line 80 per curve is displayed in the menu), or the choice, for each curve, between:
  • the plot type: lines, symbols, lines and symbols, histogram, shading (in the case of one single curve);
Key 81:
the graphical representation of the curves, automatic choice by default, or the choice, for each curve (one line 81 per curve as a function of its plot type, key 80) between:
  • the graphic characteristics: color, thickness, size, line or symbol type.
Key 82:
to define the line thickness of the axis.
Key 83:
by activating this key, the different possibilities offered, each case marked by a number, is displayed on the screen.
Key 90:
save all or part of the curves of the current plot in the form of a file (re-interpretable by TRACXX).

Definition of the axis:

The user activates key 62 to define the axes him/herself. For example, for the x-axis the following menu appears (an identical menu is obtained, directly after, for the y-axis):

      

-------------------------------------------------------------
 ---   DEFINITION FOR THE X AXIS : 
-------------------------------------------------------------
 | 10 | SCALE                     |   LINEAR                              
 ------------------------------------------------------------
 | 11 | LEGEND ON THE 2 AXES      |  NO                                   
 ------------------------------------------------------------
 | 12 | DEFINITION GRADUATIONS    |   AUTOMATIC CUT          
 ------------------------------------------------------------
 | 13 | NUMBER OF INTERVALS       |       3                               
 ------------------------------------------------------------
 | 14 | NUMBER OF SUB-INTERVALS   |       5                               
 ------------------------------------------------------------
 | 16 | FORMAT OF VALUES          |  F*.     1                            
 ------------------------------------------------------------
 | 17 | SIZE FACTOR      (X)      |     1.000000    
 ------------------------------------------------------------
 | 18 | SIZE FACTOR      (Y)      |     1.000000    
 ------------------------------------------------------------
 | 20 | RETURN TO AUTOMATIC MODE  |  NO                                   
 ------------------------------------------------------------

An axis is defined by the following parameters:

 
Figure 4.1: Automatic division of the x and y axes 

These choices are made via the keys described below:

Key 10:
Linear graduation (by default), or logarithmic.
Key 11:
No legend on the axes, or input the two legends.
Key 12:
The graduations are determined automatically (in intervals and sub-intervals), or defined by their length.
Key 13:
The number of intervals (separated by long dashes) (3 by default).
Key 14:
The number of sub-intervals (separated by short dashes) in an interval (by default 5).
Key 16:
By default, format Fortran f*.1, to be chosen as a function of the values to be displayed.
Key 17:
To avoid ungraceful effects, it could be useful to enlarge (GROSSIR) or reduce (DIMINUER) the size of the characters in the x-direction.
Key 18:
The same in the y-direction.
Key 20:
Return to the automatic mode (all default values are assumed).

Definition and plot of analytical functions:

Activate key 18 to define a non-singular function on an interval (if the function is singular, the singular points must be eliminated). The following menu is obtained:

             

 -- TRACE D'UNE FONCTION DONNEE AU CLAVIER -- 
 ** CURVES'S EXTREMA IN X   :            1.000000       20.00000    
 ** CURVES'S EXTREMA IN Y   :           0.0000000       50.00000    
 ** NUMBER OF CURVES :                  2
 ------------------------------------------------------------------------------
 | 10 |  CURVE DEFINE BY Y = F(X)         |                                                                         
 ------------------------------------------------------------------------------
 | 20 |  CURVE DEFINE BY X = F(Y)         |                                                                         
 ------------------------------------------------------------------------------
 | 30 |  PARAMETER CURVE DEFINE BY :      |                                                                         
 |    |     X = F(T) ET Y = G(T)          |                                                                         
 ------------------------------------------------------------------------------
 | 40 |  NUMBER OF DOTS                   |  100
 ------------------------------------------------------------------------------
 -- OK 0 OR NUMBER OF ITEM TO MODIFY ?

Select key 10, 20 or 30 depending on the form of the function. It is then necessary to enter the bounds of the interval (in X, in Y or in T), then the corresponding expression (or the two expressions for 30). By default, these expressions are evaluated at 100 equidistant points. Key 40 is used to modify this number (it can thus be activated first). After definition, lines 10, 20 or 30 will contain the functional expression(s).

Definition and plot of an interpolation:

Activate key 19 to request an interpolation of a curve, of those curves present, for which the user enters the number. The following menu is obtained:

-- COMPUTE THE INTERPOLATION COEFFICIENTS --
 ------------------------------------------------------------------------------
 | 10 |  AFFINE REGRESSION        |                                                                                         
 |    |  WITH RATIOS              |           0.0000000    
 ------------------------------------------------------------------------------
 | 15 |  LINEAR REGRESSION        |                                                                                         
 |    |  WITH RATIO               |           0.0000000    
 ------------------------------------------------------------------------------
 | 95 |  CURVE TO BE ADDED        |   YES                                 
 -----------------------------------------------------------
 -- OK 0 OR NUMBER OF ITEM TO MODIFY ?

Select keys 10, 15, ... depending on the form of the interpolation function to calculate. This function is plotted. By default, the function is added to the list of curves of the current plot. Key 95 is used if this addition is not desired.

Currently, only two types of interpolation are implemented and it is easy to define new cases by modifying subroutine CALREG.

Once a plot is displayed on the screen, a graphics menu appears which allows us to:

Below follows some application examples of TRACXX. The first two examples, figures 4.2 and 4.3 show, for the case of a plot with lines and symbols, the symbols used in hard and soft. Figures 4.4 and 4.5 show line plots of curves: from the first plot, we chose the standard case (linear scales in x and y), a rough grid, one legend per curve and one legend per axis; for the second plot, we chose a logarithmic scale in y with shading. Figure 4.6 shows a plot without the general legend. Figure 4.7 starts with the plot in figure 4.4 and interprets it in the form of a histogram. Figure 4.8 shows the plot of an analytical function defined in parametric form, whereas figure 4.9 shows a set of points (input via the file of figure 4.5), and its linear interpolation.

The plots were obtained by typing the following sequences:

 
Figure 4.2: Example TRACXX: symbols in hard 

 
Figure 4.3: Example TRACXX: symbols in soft 

 
Figure 4.4: Example TRACXX: linear scale 

 
Figure 4.5: Example TRACXX: logarithmic scale in Y (shading) 

 
Figure 4.6: Example TRACXX: no general legend 

 
Figure 4.7: Example TRACXX: histograms 

 
Figure 4.8: Example TRACXX: parametric function 

 
Figure 4.9: Example TRACXX: curve and its interpolation 


Modulefpreviousupnextcontents[BIG][Normal][small]
Next: 5 Visualization of surfaces Up: 4 Visualization of curves Prev: 4.2 Utilization of TRACXX Contents