Manuale Angel4
Manuale Angel4
Ver. 4.52
User’s Manual
Koji NIITA
*
Chapter 1
Introduction of ANGEL
' $
♠ PostScript: 1
PS (PostScript) is a programming language optimized for printing graphics and text introduced by Adobe in
1985. In the jargon of the day, it is a page description language. It sounds very difficut but PS has close relation
with Macintosh (Mac), since PS firstly appeared in the Apple LaserWriter. However, no one of Mac user knows
what PS file is. PS is a good feature in Mac, but it gets into trouble when I give them PS files. They do not
know how to print PS files.
& %
' $
♠ PostScript: 2
It is a very nice feature that PS is a programming language written in ascii. By virtue of this, we can read PS file
like Fortran program, and understand how PS describes images and text in a device independent manner. If we
know the grammar of the PS language, anyone can write PS file directly. Furthermore, PS file can be brought
to any machine and can be used on any PS printers without modification like TEXand LATEX.
& %
1
2 CHAPTER 1. INTRODUCTION OF ANGEL
' $
♠ PostScript: 3
It is hard to make program to show graphs on PC screen or to print them on various printers, since we have
to know how to control screens or printers depending on the type of OS and printers. However, if we use
PostScript language, it is enough to write only a scenario for graph. Also, Fortran language is enough to write
a scenario. Indeed, AN GE L program is written in Fortran. The scenario is played by an interpreter installed in
PS printer. In your PC, you can use Ghostscript and GSview to play the scenario on the screen as a strolling
player.
& %
' $
The first line, “ H: X Y ”, is a command line of AN GE L which makes one dimensional plot according to
the following lines which include two data, the first column is x data and the second one is y data. AN GE L processes
this file and creates an EPS file, which is shown bellow, where the size of paper is A4 in default.
60
40
Y
20
0
0 2 4 6 8
X
Only by List 1.1, you can get the above graph in which AN GE L automatically determines the scale of x and y
axis, number, text and margin by the default.
1 In the case of data list or prgram list, we put the line number on the head of line.
4 CHAPTER 1. INTRODUCTION OF ANGEL
Figure 2
60
Histogram
40 Spline
Error bar
Arrow
20
0
0 2 4 6
E (MeV)
You can see a high quality image produced from a simple input by AN GE L . First, let me explain the points
denoted by number in right-hand side of input lines in List 1.2.
(4) Comment W:
The comment in the figure is defined by the line started from W: . The strings from W: to / are shown
in the figure at the point specified by X( ) Y( ) as a comment.
(5) Arrow A:
The arrow in the figure is defined by the line started from A: . The start and end points of the arrow are
specified by X( ) Y( ) and AX( ) AY( ) , respectively.
(6) Arrow with Comment AW:
This is a combination of arrow and comment. The strings from AW: to / are shown in the figure at the
point sepecified by X( ) Y( ) and the arrow is described to AX( ) AY( ) .
In the following sections, we will explain another parameters which define the more detail of the above objects.
Next, we explain the basic section in AN GE L , H: , which defines the x-y graph. There are three H: sections
(7), (8) and (9) in this example. The main purpose of this line of H: is to define the ordering of the following
columns. As shown in the previous example, if the numerical data consist of x-value and y-value columns, we
should write H: X Y . By this line, we can additionally define line type, symbol type, color, and legend.
The strings in the parenthesis after Y like Y(Histogram),DH0 are automatically shown in the right hand
side of the graph frame as legends. The strings after the comma define the line type (D = Dashed Line, L = Solid
Line, N = No Line), spline (S = Spline), histogram (H = Histogram), and symbol type (0 = No Symbol, 3 = Open
Circle).
In the last section of (9), there are columns defined by DX, D . These define the error bars. DX defines the
error bar of the X column, D defines the error bar of the Y column just before. In default, the value of the error
is the same values around the y-value. It is explicitly expressed by D+- . If you want to define the different error
values upper and lower values around the y-value, you should define those by different columns like D+ D- .
In AN GE L , we call ’section’ the part of the input file starting from alphbet characters with colon : like
AW: H: .
Chapter 2
Reference Manual
In this moment, AN GE L is waiting for the input parameters from normal input. Then you should write file name
and page numbers to be processed and output EPS file name in a line. These parameters should be separated by at
least one blank. After you put Enter, AN GE L starts processing and creats an EPS file.
The format of the starting parameters is the following,
where the parameters with [ ] are omissible. At least, the input file name is necessary. The ordering of these
parameters is free as far as these are separated by blank.
6
2.1. HOW TO START ANGEL 7
parameter explanation
input filename Input file name processed by AN GE L .
The first page to be processed n1 .
-f n1 Without this, AN GE L processes from the first page.
The last page to be processed n2 .
-t n2 Without this AN GE L processes up to the last page.
Output EPS file name. Without this, AN GE L make a file with the same
-o output filename
name as the input file name except for the extension, changed to be EPS.
By this parameter, AN GE L make a shell file which includes the informa-
-a tion whether orientation of figure is portrait or landscape for Ghostview.
The name of the shell file is angelbat. It is only for UNIX users.
By this parameter, AN GE L translates the input file for AN GE L ver.2 or
before to the input file for the present version, since after ver.3 the for-
-v12 mat of special characters is changed completely. AN GE L makes a new
input file with changeing the extention name to be ’an2’, and processes
this file.
By this parameter, if the input file includes the inclusion file description,
-exp AN GE L makes a new input file which include all data unfolded from the
inclusion file, with different extension name ’new’.
Without any parameters, this batch file only shows the name of program, copyright and short explanation of starting
8 CHAPTER 2. REFERENCE MANUAL
Up to the 25th line, the above shell is the same as that for Windows. After checking an error, this shell start another
shell angelbat created by AN GE L , in which you can set up Ghostview configuration to show EPS file.
2.1. HOW TO START ANGEL 9
You should prepare the shell of angel-gs for Landscape and angel-gp for Portrait, respectively. An example is
shown below,
List1.8 • angel-gs
1: #!/bin/sh
2: if [ "$1" = "" ]
3: then
4: exit
5: fi
6: ghostview -fg black -bg white -a4 -magstep 1 -landscape $1 -display myscreen &
List1.9 • angel-gp
1: #!/bin/sh
2: if [ "$1" = "" ]
3: then
4: exit
5: fi
6: ghostview -fg black -bg white -a4 -magstep 1 $1 -display myscreen &
The difference between these two shells is only -landscape in angel-gs. You can modify -magstep and other
parameters as you like. It is convenient to put IP address where you want to show a graph.
You can modify the source file but it is forbidden to modified version or the executable file with the same name
as AN GE L . It is also forbidden to use some parts of source code in the other software without permission.
List1.10 • angel00.inc
1: ************************************************************************
2: * *
3: * angel00.inc *
4: * *
5: ************************************************************************
6:
7: *-----------------------------------------------------------------------
8:
9: parameter ( mdas = 5000000 )
10:
11: common /mdasa/ das( mdas )
12: common /mdasb/ mmmax
13:
14: *-----------------------------------------------------------------------
In angel01.inc, we define some parameters for maximum column number, maximum comment number and
so on. You can change these parameters for special cases.
List1.11 • angel01.inc
1: ************************************************************************
2: * *
3: * angel01.inc *
4: * *
5: ************************************************************************
6:
7: *-----------------------------------------------------------------------
8:
9: parameter ( mh = 30 )
10: * max column terms in one h: section
11:
12: parameter ( mfc = 100 )
13: * mfc : max number of constant
14: * and max terms of equation
15:
2.1. HOW TO START ANGEL 11
16: *-----------------------------------------------------------------------
17:
18: parameter ( icolm = 200 )
19: * icolm : max column number, should be less than ichrl
20:
21: parameter ( ichrl = 2048 )
22: * ichrl : length of character for dimension
23: * and max column number for ps file
24:
25: *-----------------------------------------------------------------------
26:
27: parameter ( inig = 500 )
28: * inig : length of character for dimension
29:
30: parameter ( mc = 500 )
31: * mc : max number of line comments (total)
32: * max number of arrows
33: * max number of multi records
34:
35: parameter ( numtic = 1000 )
36: * numtic : max number of tic number
37:
38: parameter ( ipsm = 100 )
39: * max number of include ps file in one graph
40:
41: parameter ( nr = 50 )
42: parameter ( nc = 50 )
43:
44: * nr: maxmum number of row in one table
45: * nc: maxmum number of column in one table
46:
47: *-----------------------------------------------------------------------
48:
49: parameter ( r0max = 1.0d+40, r1max = 1.0d+41 )
50: * max real number
51:
52: parameter ( r9max = 1.0d+39 )
53: parameter ( r9min = 1.0d-39 )
54:
55: parameter ( pi = 3.1415926535898d0 )
56:
57: *-----------------------------------------------------------------------
58:
59: parameter (jol=18)
60: * output temporary file of lines
61: parameter (jil=19)
62: * output temporary file of region line
63: parameter (jhc=20)
64: * output temporary file of 3D color plot
65: parameter (jhl=21)
66: * output temporary file of 3D cluster plot
67: parameter (jer=22)
68: * for error message
69: parameter (jps=23)
70: * input ps file
71: parameter (jab=24)
72: * angelbat for psview only for unix
73: parameter (jht=25)
74: * final eps output for angel
12 CHAPTER 2. REFERENCE MANUAL
2.1.7 Makefile
In order to compile the AN GE L , you need to modify the makefile. Uncomment the options suitable for your
environment. Then you can compile AN GE L by the “make” command.
List1.12 • Makefile
1: #------------------------------------------------------------------------
2: #
3: # @(#)Makefile 2002/08/06
4: #
5: # Makefile for ANGEL
6: #
7: #------------------------------------------------------------------------
8: ##### sors #####
9: #------------------------------------------------------------------------
10:
11: OBJ1 = \
12: a-alone.o
13:
14: OBJ2 = \
15: a-main1.o a-hsect.o a-line.o a-func.o a-utl00.o \
16: a-main0.o a-wtext.o mdp-uni.o
17:
18: #------------------------------------------------------------------------
19: ##### set executable file name #####
20: #------------------------------------------------------------------------
21:
22: TERGET = angel400
23:
24: #------------------------------------------------------------------------
25: ##### set compile options #####
26: #------------------------------------------------------------------------
27: #Alpha
28: # FFLAGS = -O4 -warn noalignments -warn nousage
29: # FC = f77
30: #------------------------------------------------------------------------
31: #Linux pgf
32: FFLAGS = -O4
33: FC = pgf77
34: #------------------------------------------------------------------------
35: #Linux g77
2.1. HOW TO START ANGEL 13
2.2.2 Sections
Table 2.2 shows the various sections which starts from the following strings. However, there is one exception
mentioned in the tutorial examples, which is a line between ’ ’.
strings explanation
INFL: insert a file
INPS: insert a EPS graphic
SET: user definition constants
X: title of x-axis
Y: title of y-axis
NEWPAGE: indicator of new page
C: skip line
N: skip line
Q: end mark of input data
QP: end mark of one page
SKIPPAGE: end mark of one page
Z: indicator of new graph
H: one dimensional graph section
H2: two dimensional contour plot section
HD: two dimensional cluster plot section
HC: two dimensional color cluster plot section
HB: bitmap plot section
W: one line comment
WT: multiple lines comment
WTAB: table section
E: end mark of WT: and WAT:
AW: arrow with comment
MSUL: message at left upside corner
MSUC: message at middle upside
MSUR: message at right upside corner
MSDL: message at left downside corner
MSDC: message at middle downside
MSDR: message at right downside corner
A: arrow
AB: bold arrow
POLG: circle and polygon
BOX: box and box with shadow
RIBN: ribbon
STAR: star
P: parameter section
INFL: { f ile.name } [ n1 − n2 ]
You should specify an including file name in { }, and the number of lines from n1 to n2 in [ ]. If there is no [ ],
PH I TS includes all lines of the specified file. You can use the following style to specify line numbers,
[ n1 − ]
[ −n2 ]
From line number n1 to the end, and from top to line number n2 respectively. The including file can be nested more
than once.
2.5. INPS: INSERTING EPS GRAPH 17
You should specify an including EPS file name in { }. AN GE L can support hole inclusion of EPS file and only EPS
file with one page and the description of bounding box as %%BoundingBox. The included graph is shown at ( x,
y ), and scaled by s, and also rotated by a degree if necessary.
• INPS: parameters
parameters explanation
{ f ilename } EPS file name which should be included
X( x ) x position of EPS graph (D=origin of x-axis)
Y( y ) y position of EPS graph (D=origin of y-axis)
x origionof EPS graph
1 : left end of EPS (default)
IX( ix )
ix =
2 : middle of EPS
3 : right end of EPS
−1
−2
−3
−3 −2 −1 0 1 2 3
Figure 2.1: Example of inserting EPS graph
2.6. SET: USER DEFINITION CONSTANT 19
This “set” definition can be written in anyplace. Defined user-constant can be used as a numerical value in your
input file. User-constants can be re-defined any number of times, and these values is kept until re-defined. In
the 3rd case of above example (c3), another user-constant c1 is called in a user-constant definition. In the case,
the value in which the user-constant c1 keeps at that time, is used. So even if you re-define the c1 below the c3
definition, the value of c3 defined here is not changed. pi is set to the value of π in default.
In addition to pi, ran can be used for random number of [ 0 - 1 ].
The user definition constants can be shown in figure. The position of the constants is in default at the center
just above the graph frame. You can change the position and scale by the following parameters which are defined
in the parameters section.
For example,
S[ c1 * 3.5 * sin( 55 * pi / 180 ) ]
20 CHAPTER 2. REFERENCE MANUAL
In this example, you can use the mathematical expression for one numeric data s like S( s ). In this case, you
should use square bracket [ ] instead of ( ).
X: or Y: strings
These strings are shown in the middle of X or Y axis. The blanks before the strings and after strings are neglected.
The parameters which move the position of the titles, neglect them, and change the scale are explained in the
following table. These parameters are defined in the parameters section P:.
Z: XORG( x ) YORG( y )
where x, y are the length in an unit of X and Y axes of the previous graph frame. It is not necessary to define the
parameters XORG( x ), YORG( y ) in this multigraph section. You can define them in normal parameters section in
the next graph.
When Z: section is appeared, some parameters are reset, e.g., the maximum and minimum values of axis, title
of axis, parameters related to coordinate, but the design of the graph, user definition constant are kept in this next
graph.
22 CHAPTER 2. REFERENCE MANUAL
• Example of multigraph
As a simple example, we draw Figure 1.1 and Figure 1.2 of CHAPTER 1 in one page. The input file of this
example is shown in the following. In List2.2, the files of fig101.ang and fig102.ang are the input file of Figure 1.1
and Figure 1.2, respectively. We first draw Figure 1.1 by setting a scale to be 0.55 to include four graphs in one
page. Next we draw Figure 1.2 by moving it in x-direction by 1.7 in an unit of the length of x-axis of the previous
Figure 1.1. Further we draw Figure 1.1 again by moving it in y-direction by 1.5 in an unit of the length of y-axis of
the previous Figure 1.2. Then we draw Figure 1.2 again b moving it in x-direction by -1.7 in an unit of the length
of x-axis of the previous Figure 1.1.
Figure 2
(4) (3)
Comment =12C +40Ca
60
dσ/dΩdE (nb/MeV/sr)
60
Histogram 40
40
Y
Spline
Error bar
Arrow 20
20
0 0
0 2 4 6 0 2 4 6 8
E (MeV) X
Figure 2
(1) (2)
60 12
Comment = C + Ca 40
dσ/dΩdE (nb/MeV/sr)
60
40 Histogram
40
Y
Spline
Error bar
20 Arrow
20
0 0
0 2 4 6 8 0 2 4 6
X E (MeV)
In this case, the line of H: declares that there are two columns and that the first one is X column, and the second
one is Y column. AN GE L can judge how many lines are included in this section. The number of the data is only
restricted by your memory. If you need more memory, you should change mdas parameter in angel00.in file.
• Basic style 2
In below example, there is one X column but there are four Y columns. X column should be only one in a H:
section, but you can define Y column up to 30.
Using this input file, four lines are drawn as a function of the same x values. In the above input, the digits followed
by Y as Y1 Y2 Y3 Y4 are omissible. These are necessary for error column and column function discussed
latter. For this case, Y Y Y Y is enough. The ordering of X column and Y column are free. Then you can
easily exchange x and y value by writing Y X instead of X Y in H: section without the data ordering.
• Basic style 3
In order to skip some data columns, it is enough to change the character which specifies meaning of the column.
For an example, in the above input data, if you want to skip the second and third column, you should only write N
or NY instead of Y. However, if there is no data of Y column partially in certain X low, it becomes error as,
2.10.2 Factor
You can multiply, divide, sum or subtract a constant from the data in X, Y, D, DX column. For an example,
This example multiplies 1000 on the Y value and subtracts 500. These values after calculation are plotted in a
graph. This factor function is also available for X column. The format of this factor function is
[ ** r1 ] [ { * | / } r2 ] [ { + | - } r3 ]
where [ ] means omissible, { A | B } denotes that you should choose A or B, and r1 , r2 , r3 are positive number. If
you want to use negative number, you have to use ( ) as (−r1 ), (−r2 ), (−r3 ). The user definition constant and
mathematical expression are not allowed to use as r1 , r2 , r3 . Therefore you cannot express complicated mathemat-
ical expression in this factor function. For such case, you had better use the column function explained latter. The
remark points of the factor function are
2.10.3 Legend
As shown in Tutorial example 2, you can easily draw legend of lines. It is very convenient when you plot several
lines in one graph. As an example,
The strings inside ( ) just after Y or Y3 and before a comma are shown with the symbol and/or line type at
the middle of right handside of graph frame. The ordering of the legends is that of appeatrance of input file. The
position of the legend can be moved by parameter. The remarks of the format of legend are
• draw parentheses in ( ) as \( \)
• no blank before and after ( )
And the blank inside ( ) is no matter, and also the ordering between factor and legend is free.
The parameters which change scale, position and color are listed in the following table.
• Legend parameters
parameters explanation
LEGN Show legend (default).
NOLG Do not show legend.
LEGX( x ) Set the left hand side of legend to be x in X axis.
LEGY( y ) Set the top of legend to be y in Y axis.
LEGS( s ) Change scale of legend by s (D=1).
CLLG( c ) Change color of legend to c 1 (D=e).
LBOX( boxname ) Show frame around by boxname 2 .
LBCB( cb ) Change color of background of box to cb (D=w).
LBCL( cl ) Change color of frame of box to cl (D=e).
LBCS( cs ) Change color of shadow of box to cs (D=e).
• Line type
There are nine types of lines which is specified by alphabet symbol as
Interior shaded I and II paints the region within the line with defined color. You can change the color or gray scale
by color parameter. The region is clipped within the graph frame by I, but not clipped by II.
parameter explanation
LPTL( r ) Change unit length to r (D=1).
• Line thickness
You can change thickness of lines by Z and T as
• Spline
In default, AN GE L conects two data points by straight line. If you add line parameter ’S’, AN GE L conects the data
with spline line as shown in Tutorial example 2. AN GE L interpolates four points between two data if you specify
’S’. The number of points for interpolation is changed by adding number after ’S’ as
S[ n ]
• Symbol
There are 16 kinds of symbol drew on the data points as follow,
ID output explanation
0 No Marker
1 Dot (default)
2 Plus
3 Open Circle
4 Solid Circle
5 Open Square
6 Solid Square
7 Open Triangle (up)
8 Solid Triangle (up)
9 Open Triangle (down)
10 Solid Triangle (down)
11 Open Diamond
12 Solid Diamond
13 Open Square Diamond
14 Solid Square Diamond
15 Times
16 * Asterisk
• Option of Symbol
The symbols of odd number from 3 to 13 are hollow symbol. The hollow part of these symbol is not transparent,
see the line of Spline in Tutorial example 2., but drew by white color. If you want to change the hollow part to be
transparent, you add 20 to ID number of these symbols. When you change the color of these symbols, the hollow
part keeps white. If you want to change the color of the hollow part, you should write as 5[R]. You can specify
the color of the hollow part by color definition within [ ] just after symbol ID.
Thickness of symbols is proportional to the thickness of lines. You can also change the thickness of symbols
separately in parameter section as
parameter explanation
SYBW( r ) Change thickness of symbol to be r (D=1).
• Size of symbol
You can change the size of symbol by X and A as
• Grayscale
The grayscale is defined by alphabet symbols as in the next table. There are 6 degrees of grayscale. If you use
C[ f ] description mentioned latter, you can define the grayscale continuously.
• Color
The color of lines and symbols are defined by the following symbols in line parameter part. The basic color consist
of 5 colors and intermediate colors are specified by doublet or triplet of the symbol. If you use C[ f ] description
of color mentioned latter, you can define continuously color by HSB (Hue, Saturation, Brightness) or name. Only
Hue values are defined by the symbols, Saturation and Brightness are always one in this case.
Though C is used as a color symbol for Cyan, if [ ] is followed just after C, this means the color or grayscale
definition by HDB or name. If H(Hue) is negative, this means grayscale. In this case, S (Saturation) B(Brightness)
are no meaning and omissible. For color, H(Hue) should be positive and H(Hue) S (Saturation) B(Brightness) are
always set between zero and one. If you omit S (Saturation) B(Brightness), one is assumed for them. In the next
page, we show color map with changing HSB values.
2.10. H: ONE DIMENSIONAL GRAPH SECTION 31
0.8 0.8
0.6 0.6
H (Hue)
H (Hue)
0.4 0.4
0.2 0.2
0.0 0.0
0.0 0.2 0.4 0.6 0.8 1.0 0.0 0.2 0.4 0.6 0.8 1.0
B (Brightness) S (Saturation)
0.8 0.8
0.6 0.6
H (Hue)
H (Hue)
0.4 0.4
0.2 0.2
0.0 0.0
0.0 0.2 0.4 0.6 0.8 1.0 0.0 0.2 0.4 0.6 0.8 1.0
B (Brightness) S (Saturation)
0.8 0.8
0.6 0.6
H (Hue)
H (Hue)
0.4 0.4
0.2 0.2
0.0 0.0
0.0 0.2 0.4 0.6 0.8 1.0 0.0 0.2 0.4 0.6 0.8 1.0
B (Brightness) S (Saturation)
• Histogram
You can draw histogram by adding ’H’ in line parameter as shown in Tutorial example 2. In histogram, you have
to choose the relationship between data points and corners of histogram. In default, the y value of a data point
keeps the value up to the next x point. Thus the data point is shown by the left corner of histogram as
0
0 2 4 6
If you write ’HH’ or ’HHH’ instead of ’H’ in line parameter, you can change the corner of histogram.
80 80
40 40
20 20
0 0
0 2 4 6 0 2 4 6
As shown in above graph, you can choose the relation between the data points and the corner of histogram.
34 CHAPTER 2. REFERENCE MANUAL
If you want to draw error bars which values are different between upside and downside, you should prepare
two ’D’ column like D+ D- after y column by adding + and -.
In this case, 3 error bar for + side of y direction, 2 error bars for - side of y direction are shown at the point
(1,10). If you want to draw both side error bar by one error column, you should write D+- for the column, which
is equivalent to default style of D
If there are some ’Y’ columns and also ’D’ column in a H: section, ’D’ column just after ’Y’ column is the
error bar for the y values in default. In order to change the ordering on column more freely, you can put ID digit
after ’Y’ and ’D’ like
In this case, ±3 error bar is shown at the point (1,10) of ’Y1’ column, ±0.3 error bar is at (1,1.1) of ’Y2’ column.
ID digit can be used from 1 to 10, and the ordering is free. If you want to put the ID digit on one ’Y’ column, you
should put ID digit on all other ’Y’ and ’D’ column identification. You can also use factor for error bar column as
in y column.
Here, ee summarize the above error bar for Y column as
• D[ID digit][+][-][factor]
Therefore if you want to draw the different error bar for X value, you have to describe each Y value in different H:
section with different error bar for X values.
36 CHAPTER 2. REFERENCE MANUAL
where column parameters denote X, Y, DX, D, NY, ND listed in Table.2.8, and ID digit is necessary for Y, D,
NY, ND. Any blank is not allowed before and after =. But you can use some blanks in equation within [ ]. In
the equation, you can use real number, user definition constants, intrinsic constant (pi, ran), intrinsic function,
Fortran equation, and functional fit, self-running variable, which are introduced in the following sections, and X
and Y column values specified by the column parameters.
A simple example is shown below,
0
0 1 2 3 4
In this example, the first column is X value, the second Y value, and the third column is the relative error of Y
value as %. You cannot draw the error bar by this error value, since the values of error should be given by absolute
value in AN GE L . You have to transform the relative values of error to the absolute values using the column function.
You first change the column parameter of the third column to ’NY2’, and you define the fourth column by column
function as DY1=[Y1*Y2/100]. The graph of this input is shown here. In the column function, you can only use
the value of X and Y column. We define the column parameter of the third colum as ’NY2’ not as ’ND1’. We
summarize the rule of the column function as following,
V=[ r1 , r2 , n ]
where any blank is not allowed excepy in [ ]. In this format, r1 and r2 are the minimum and maximaum values
and n is number of value points. The self-running variable gives n points from r1 to r2 divided equally by n − 1
groups. You can use user definition constants and mathematical expressions for r1 and r2 . By this self-running
variable and column function, you can plot any analytical function on a graph without explicit x column values.
We show an example of the self-running variable and column function in the following.
1.0
0.5
0.0
−0.5
−1.0
0.0 0.5 1.0 1.5 2.0
In the above example, the self-running variable V prepares 100 values from 0 to 2π. In the first H: section, X is
defined by V/π and Y is a sine function of X. In the second H: section, X and Y are defined by the cosine and sine
function of V. This is a circle with (1.0,0) center and 0.5 radius. Here, we summarize the format of self-running
variables.
• V=[ r1 , r2 , n ]
• any blank is not allowed except in [ ]
• user definition constant and mathematical expression can be used for r1 and r2 .
38 CHAPTER 2. REFERENCE MANUAL
where column parameter 1 is a column for the fitting function with Y, NY and column parameter 2 is a Y column
for fitting data. Any blanks are not allowed before and after =F. But you can use blanks within { } and [ ].
In the fitting function, you can use real number, user definition constants, intrinsic constant (pi, ran), intrinsic
function, and any equation in Fortran style, and X and Y column values specified by the column parameters in
the same H: section. For the coefficients in the fitting function, you should use the coefficient variables A. The
suffixes of A are from A1 to A99. These coefficient variables can be used in the other places after the fitting function
like user definition constant.
Let see a simple example below.
0
0 1 2 3 4
In this example, X and Y1 columns are the same as in the example of column function. The error column should
be converted to the absolute values. We fitted these data points by the function of y = a1 x2 . After the AN GE L
processing, the values of A1 and the squares of the error of fitting are shown in the normal output. Since AN GE L
uses the Metropolis method for fitting, the results differ a little in each processing. If the correlation between the
data and the fitting function is not enough, the coefficients are not converged and give us almost zero values in each
processing.
As in the above example, if we plot the fitting function in the same H: section, the X values of the fitting
function are the same points as the data. In this case, we cannot obtain smooth shape of the fitting function. So we
have not plotted the fitting function in the same H: section, we specified NY2, but we have plotted it in the next H:
section by using the self-running variables and the coefficient variables in the above example to get smooth shape
of the fitting function.
2.10. H: ONE DIMENSIONAL GRAPH SECTION 39
These coefficients obtained from fitting the function to data can be shown in the figure. In default, these are
shown at the left corner above the figure frame as in the previous example. When changing the position, scale and
the other format, you can use the following parameters in the parameter section P:.
−1
−2
−3
−3 −2 −1 0 1 2 3
In H2: section, contour lines are described from data on height between two dimensional points given by mesh
points with equal width. In the H2: line, the minimal, maximal and width of mesh points for X and Y axes should
be specified. In the above example, the minimum value = −3.0, the maximum value = 3.0, and the width of the
meshes = 1.0 for both X and Y axes are defined. The number of the mesh points are automatically determined
from these values. The order of this definition determines the order in which the data below this low is read.
H2: { Y | X } = r1 TO r2 BY r3 ; { X | Y } = r4 TO r5 BY r6 ;
If you want to exchange X axis and Y axis, the order of reading the data has to be exchanged. (In the above Fortran
expression, the ordering of IX, IY is exchanged.) The ”;” of the end of X axis part and Y axis part is always
necessary. The number of the numerical data in a line is free as far as the data sequence is satisfied following the
above expression.
2.11. H2: TWO DIMENSIONAL CONTOUR GRAPH SECTION 41
parameters explanation
ICUT( i ) Set the number of contour lines as i. The default is 8.
Specify the height of the contour lines with r1 , r2 , .... The number of the
line is free. Also, the order of r1 , r2 , .... is arbitrary. If not specified, the
CUTS( r1 , r2 , r3 , ...., rN )
interval between the maximum and minimum heights is divided into 8
equal parts, and 8 contour lines are shown.
COLN( c ) set the contour color to be c 1 ,2 .
specify each contour color and grayscale by c1 , c2 , c3 , ... 2 . These suffix
COLS( c1 , c2 , c3 , ...., cN )
numbers of cn correspond to those of CUTS( r1 , r2 , r3 , ...., rN ).
COLS Automatically set the contour colors.
SMAX( c ) Specify the colors of the maximum and minimum contour line.
SMIN( c ) Default is Red(r) and Blue(b).
ZLIN The interval of the contours is divided equally in linear scale (default).
ZLOG The interval of the contours is divided equally in logarithmic scale.
These parameters are valid only without CUTS.
IWD2( id ) Specify the thickness of line. Default is id = 4 in unit of 1/300 inch.
Spline the cotour lines by 4 interpolation points (dfault). If you want to
IPD2 increase the interpolation points, set the number of the points n such as
IPD2[ n ].
Spline the mesh data by Gauss smearing with considering the nearest
IPDS neighbor mesh (default). If you want to increase the number of neighbor
meshes, set the number of neighbors n such as IPDS[ n ].
By the same input as in example 1 when the IPD2 and COLS are specified, the result is shown below.
−1
−2
−3
−3 −2 −1 0 1 2 3
−1
−2
−3
−3 −2 −1 0 1 2 3
The ordering of X, Y, maximum value, and minimum value of HD: row is specified as follows in the same way
as H2: section in how to read data.
H2: { Y | X } = r1 TO r2 BY r3 ; { X | Y } = r4 TO r5 BY r6 ;
If you want to exchange X axis and Y axis, the order of reading data has to be exchanged. (In above Fortran
expression, the ordering of IX, IY is exchaged.) The ”;” of the end of X axis part and Y axis part is always
necessary. The number of the numerical data in a line is free as far as the data sequence is satisfied following the
above expression.
44 CHAPTER 2. REFERENCE MANUAL
parameters explanation
Specify the size of the cluster. By default, the maximum value fills the entire rectangle,
and the other values fill the area proportional to the height of the data relative to the
CLUS( f )
maximum value. f = 1 (default) means that the entire rectangle is filled by the cluster,
and the value of f specifies the size of the of the rectangle for the maximaum value.
The size of the cluster is determined proportional to the height of the data in linear scale
ZLIN
(default),
The size of the cluster is determined proportional to the height of the data in logarithmic
ZLOG
scale.
DMAX( dmax ) Set dmax as the maximum value, neglect the data which values are greater than dmax.
DMIN( dmin ) Set dmin as the minimum value, neglect the data which values are smaller than dmin.
CMAX( cmax ) Display the data which value is greater than cmax in size of the cmax.
CMIN( cmin ) Display the data which value is saller than cmin in size of the cmin.
CLHD( c ) Set the cluster color to c 1 .
−1
−2
−3
−3 −2 −1 0 1 2 3
−1
−2
−3
−3 −2 −1 0 1 2 3
The order of X, Y, maximum value, and minimum value of HD: row is specified as follows in the same way as
H2: section in how to read data.
H2: { Y | X } = r1 TO r2 BY r3 ; { X | Y } = r4 TO r5 BY r6 ;
If you want to exchange X axis and Y axis, the order of reading data has to be exchanged. (In the above Fortran
expression, the ordering of IX, IY is exchanged.) The ”;” of the end of X axis part and Y axis part is always
necessary. The number of the numerical data in a line is free as far as the data sequence is satisfied following the
above expression.
2.13. HC: TWO DIMENSIONAL COLOR CLUSTER PLOT SECTION 47
parameters explanation
The color of the cluster is determined proportional to the height of the data in a linear
ZLIN
scale. (default).
The color of the cluster is determined proportional to the height of the data in a logarithmic
ZLOG
scale.
DMAX( dmax ) Set dmax as the maximum value, neglect the data which values are greater than dmax.
DMIN( dmin ) Set dmin as the minimum value, neglect the data which values are smaller than dmin.
CMAX( cmax ) Display the data which value is greater than cmax in color of the cmax.
CMIN( cmin ) Display the data which value is smaller than cmin in color of the cmin.
SMAX( c ) Specify the maximum and minimum color
SMIN( c ) The default are red(R) and blue(B).
IPDC Automatically interpolate by halving the mesh spacing.
−1
−2
−3
−3 −2 −1 0 1 2 3
The FRAME :, CLIP :, PATH :, BMAP: subsections are optional. However, one of subsection, i.e,, CLIP :,
PATH :, BMAP:, must be included at least once. Each subsection of FRAME :, CLIP: is not allowed to be defined
more than once. The path defined by FRAME :, CLIP: clips the bitmap. FRAME: is a higher clipping path than
CLIP :. PATH : and BMAP: can be defined any number of times. PATH: must be defined each time the area and
color change, and BMAP: must be defined each time the bitmap size changes. When drawing, please define PATH:
and then surely overwrite BMAP :.
50 CHAPTER 2. REFERENCE MANUAL
parameters explanation
CLIP (default) Clip the path defined by CLIP:.
NOCLIP Do not clip the path defined by CLIP:.
LINE Illustrate the path defined by CLIP:.
NOLINE (default) Do not insert the path defined by CLIP:.
C( c ) Let the color of the clipping path be c 1 (D=e) .
CB( cb ) Let the color of the clipping path area be cb 1 (D=w).
Increases the line thickness of the clipping path based on the default.
T
If you repeat it like TTT, it will get thicker in order.
Makes the line thickness of the clipping path thinner than the default.
Z
If you repeat it like ZZZ, it will become thinner in order.
HSB (default) Defines the color of BMAP: by a HSB value.
RGB Defines the color of BMAP: by an RGB value.
C( cp ) Let the color of the area of PATH: be cp 1 .
WIDTH = w Let the width of the bitmap be w (cm).
HEIGHT = h Let the height of the bitmap be h (cm).
Strings after W: up to / (including blank ) are shown according to the position and size specified by the parameters
after /. Each parameter is explained below.
S( s ) Multiplies the size of the string by s with the default value of 1. (D=1)
C( c ) Let the color of the string be c 1 . (D=e)
A( a ) Rotate the string counterclockwise by a degrees around ( x, y ) (D=0)
F( f ) Let the font of the string be f 2 (D=0).
The WT: line before the string is connected by \, but it is one line.
A multi-line string after the WT: line, including the blank line up to the E: line, are displayed according to the
position and size specified by the parameters after the WT:. The input line feed will be the output line feed as it is.
parameters explanation
BOX( boxname ) Enclose the entire string in a box of boxname 1 .
CB( cb ) Set the background color of the box be cb 2 (D=w).
CL( cl ) Set the color of the box frame be cl (D=e).
CS( cs ) Set the shadow color of the box be cs (D=e).
In the above format, the command starting with & and \ are parameters that control the indentation of each line,
the adjustment of line spacing, and the horizontal movement. Each parameter is explained below.
parameters explanation
& Align the characters of & written on sequential lines.
\vspace{ vs } Set the interval between the upper line and the next line be vs with respect to the
default line spacing as 1.
\hspace{ hs } Insert a space vs at that location with respect to a space character as 1.
The indent is specified by ix(1). The indent is specified by ix(1). The indent is specified by ix(1).
ix(1) is left justified. ix(1) is left justified. ix(1) is left justified.
ix(2) is centered. ix(2) is centered. ix(2) is centered.
ix(3) is right justified. ix(3) is right justified. ix(3) is right justified.
The WTAB: line before the string is connected by \, but it should be one line. A multi-row table with blank rows
after the WTAB: row up to the E: row is displayed according to the position and size specified after the WTAB:.
The input line feed will be the output line feed as it is. The number of columns is specified by the argument cols
of TAB{ }. In the string, use & to separate them. It is almost the same format as LATEX. In addition to strings,
there are lines that start with \, which are parameters enabling to control the horizontal ruled lines and the spacing
between lines. The height between lines is automatically determined from the height of the character string of the
element, so not all lines have the same line spacing. If you enter large letters or equations, the line spacing will
increase. The shaded table in the first row of the table in this manual is a paste of the table written in this multi-row
tabular comment of AN GE L . Each parameter is explained below.
parameters explanation
S( s ) Multiply the size of the table by s with the default value of 1 (D=1)
C( c ) Set the color of the table string be c 1 (D=e)
A( a ) Rotate the table counterclockwise by a degrees around (x, y) (D=0)
F( f ) Specifies the font 2 for the table string. (D=0)
CB( cb ) Set the background color of the table be cb 1 .(D=w)
CL( cl ) Set the color of the table frame be cl. (D=e)
The parameters used for TAB{ cols } and \vline{ cols } are explained below.
In the above format, in addition to the character string, the line starting with \ is a parameter enabling to control
the horizontal ruled line and the space between lines. More than one parameter can be written on one line. Each
parameter is explained below.
parameters explanation
\Hline Add a horizontal ruled line.
\hline The thickness of the ruled line is standard with \hline and thickened with \Hline.
\Cline{ m − n } Insert horizontal ruled lines from m column to n column.
\cline{ m − n } The thickness of the ruled line is standard with \cline and thickened with \Cline.
\vline{ cols } According to cols, put a vertical ruled line only in the column above this line.
\vspace{ vs } The space between the upper string and the next horizontal ruled line is vs with the height
of the string set as 1.
\tabtopsp{ ts } The space between the upper horizontal ruled line and the next character string is ts with
the height of the character string as 1.
\selcolor{ cs } Set the background color of the cell containing this instruction be cs 1 .
' $
& %
Figure 2.21: Example for multi-row tabular comment 1
' $
& %
Figure 2.22: Example for multi-row tabular comment 2
58 CHAPTER 2. REFERENCE MANUAL
& %
Figure 2.23: Example for multi-row tabular comment 3
& %
Figure 2.24: Example for multi-row tabular comment 4
2.15. COMMENT SECTION 59
& %
Figure 2.25: Example for multi-row tabular comment 5
& %
Figure 2.26: Example for multi-row tabular comment 6
60 CHAPTER 2. REFERENCE MANUAL
Strings (including spaces) after AW: up to / are displayed with arrows according to the position and size specified
after /. Each parameter is explained below.
The position of the comment is to the left of the arrow start point if the arrow tilt is positive, and to the right of
the arrow start point if the arrow tilt is negative. Please use IL, and IR to force the comment to be repositioned.
2.16. MESSAGE SECTION 61
−3
−3 −2 −1 0 1 2 3
MS{ U | D }{ R | C | L }:
The following string after : is displayed as a message. The type of each message section is below.
String explanation
MSUL: Message in the upper left corner
MSUC: Message in the upper center
MSUR: Message in the upper right corner
MSDL: Message in the lower left corner
MSDC: Message in the lower center
MSDR: Message in the lower right corner
A: X( x ) Y( y ) AX( ax ) AY( ay ) C( c ) A( a ) N T Z
Arrows are plotted according to the position and size specified after A:. Each parameter is explained below.
Hollow arrows are drawn according to the position and size specified after AB:. Each parameter is explained below.
−1
−2
−3
−3 −2 −1 0 1 2 3 4
The top 7 lines are arrows without lines, the next 7 lines are ordinary arrows, the next 7 lines are hollow arrows
without lines, and the last is a hollow arrow. The thickness can be changed using two parameters of Z and T. The
arrows shown in the middle of the Figure 2.29 is in default. The top of arrow can be thin by Z, while the bottom
can be thick by T. An arrow without a line part draws a triangular arrow with the start point of the arrow as the
center of gravity toward the end point. In that case, there is no corresponding length of the arrow.
66 CHAPTER 2. REFERENCE MANUAL
−1
−2
−3 −2 −1 0 1 2 3 4
Using A(), you can change the opening angle of the arrow for each arrow type. The arrows shown in the
middle of Figure 2.30 is in default.
2.17. SHAPE SECTION 67
A circle or polygon is drawn according to the position and size specified after POLG:. Each parameter is explained
below.
−1
−2
−3
−3 −2 −1 0 1 2 3
Draw boxes according to the position and size specified after BOX:. Each parameter is explained below.
boxname explanation
siglebox Square box with one line
ovalbox Box with rounded corners with one line
doublebox Square box with double lines
shadowbox Square box with one line and shadow
ovalshadowbox Box with rounded corners with one line and shadow
In these boxname, capitalizing the first letter makes the box line thicker. Also, capitalizing b in box increases
the margin around it. If there is no string inside, the box just gets a little bigger. If there is a string, the gap between
the string and the box becomes large. There are variations for each of the above 5 types of boxes, making a total
of 20 types of boxes.
70 CHAPTER 2. REFERENCE MANUAL
−2
−4
−6
−2 0 2 4 6 8
The ribbon is drawn according to the position and size specified after RIBN:. Each parameter is explained below.
−2
−4
−6 −4 −2 0 2 4 6
A star shape is drawn according to the position and size specified after STAR:. Each parameter is explained below.
−1
−2
−3
−3 −2 −1 0 1 2 3
parameter explanation
LAND Arrange the graph horizontally in A4. (default)
PORT Arrange the graph vertically in A4. ( The same is true for IROT.)
Arrange the graph by reducing the A4 horizontal LAND in half and
SLND placing it in the lower half of the A4 vertical. This is convenient when
you cannot rotate when importing to LaTeX etc.
Each layout of the A4 paper is shown below. The outermost frame is the outline of the A4 paper.
Date = 14:56 04-Jul-2003
1.0
LAND
0.6
0.8
X
0.4
0.6 1.0
PORT
Y
0.8
0.4
0.2
0.6
SLND
Y
0.2 0.4
0.0
1.0
0.8
0.6
0.4
0.2
0.0
0.0 0.2
0.0 0.2 0.4 0.6 0.8 1.0
File = a4001.ang
Y
0.0
X 0.0 0.2 0.4 0.6 0.8 1.0
X
parameter explanation
A4PP Set the paper size to A4. (default)
A4US Set the paper size to US letter.
A3PP Set the paper size to A3.
A5PP Set the paper size to A5.
B3PP Set the paper size to B3.
B4PP Set the paper size to B4.
B5PP Set the paper size to B5.
parameter explanation
FRAM Draw the outer frame of the paper. (default)
NOFR Do not draw the outer frame of the paper.
CLFR( c ) Set the frame color be c 1 . (D=e)
MSSG Draw a message on the outer frame of the paper. (default)
NOMS Do not draw the message on the outer frame of the paper.
CLMS( c ) Set the color of all messages be c. (D=e)
parameter explanation
TITL Displays the graph title. (default)
NOTL Does not display the graph title.
Set the position of the graph title be x with the length of the X axis as
TLXP( x ) 1. (D=0.5)
It can only be moved in the X-axis direction.
CLTL( c ) Set the color of the graph title be c 1 . (D=e)
parameter explanation
Defines the position of the origin of the axes. (0, 0) is the default,
and its position is from the left and bottom edges of the paper frame,
(4.5cm, 3.0cm) for LAND, and (4.0cm, 3.5cm) for PORT. In the case of
XORG( x )
a multigraph, the origin positions of the second and subsequent graphs
is the position of the previous graph. The unit of (x, y) is X-axis and
YORG( y )
Y-axis length as 1, and it moves by (x, y) from the default position. In
the case of a multi-graph, the second and subsequent graphs are based
on the length of the X-axis and Y-axis of the previous graph.
ANGL( a ) Rotate the entire graph counterclockwise by a degrees around the origin.
14.0 cm
10.5 cm
LAND
4.5 cm
3.0 cm
14.0 cm
10.5 cm
PORT
4.0 cm
3.5 cm
2.18.6 Scale
parameter explanation
Scale the size of the entire graph. s = 1.0 is the default and is specified as a ratio to
SCAL( s )
the default. Scale everything including the position of the origin.
Specify the length of the X axis. x = 1.0 is 14 cm in default. Specify x as a ratio to
XFAC( x )
the default.
Specifies the ratio of Y-axis length to X-axis length. The default is f = Y/X = 0.75.
FORM( f ) Even if this is changed, the position of the origin and the length of the X-axis do not
change. That is, only the length of the Y-axis changes.
Scale the scale, thickness, numbers, text, and titles of the axes. a = 1.0 is the de-
AFAC( a ) fault and is specified as a ratio to the default. Note that comments, arrow comments,
legends, graph line thicknesses, are not scaled.
From the next page, we will show how the default output changes for each parameter due to changes in these
parameters. The text may or may not change depending on the size of the graph, so combine them to draw the
desired graph.
80 CHAPTER 2. REFERENCE MANUAL
40
Arrow
20
0
0 2 4 6
E (MeV)
60
40
Arrow
20
0
0 2 4 6
E (MeV)
60
40
Arrow
20
0
0 2 4 6
E (MeV)
dσ/dΩdE (nb/MeV/sr)
Comment =12C +40Ca
60
40
Arrow
20
0
0 2 4 6
E (MeV)
60
40
Arrow
20
0
0 2 4 6
E (MeV)
40
Arrow
20
0
0 2 4 6
E (MeV)
40
Arrow
20
0
0 2 4 6
E (MeV)
60
40
Arrow
20
0
0 2 4 6
E (MeV)
60
dσ/dΩdE (nb/MeV/sr)
40
Arrow
20
0
0 2 4 6
E (MeV)
Figure 2
0
0 2 4 6
E (MeV)
Figure 2
60
Histogram
40 Spline
Error bar
Arrow
20
0
0 2 4 6
E (MeV)
Figure 2
dσ/dΩdE (nb/MeV/sr)
Histogram
40 Spline
Error bar
Arrow
20
0
0 2 4 6
E (MeV)
parameter explanation
AFRM Displays the axis lines of the X and Y axes. (default)
NOAF Does not display the axis lines of the X and Y axes.
XLIN, YLIN The X and Y axes are displayed in linear scale. (default)
XLOG, YLOG The X and Y axes are displayed in logarithmic scale.
XDEC Decimal notation for horizontal axis values.
XEXP Exponential notation for horizontal axis values.
YDEC Decimal notation for vertical axis values.
YEXP Exponential notation for vertical axis values.
parameter explanation
ATXS( a ) Multiply the size of the axis title by a (D=1)
XTXP( x ) Set the position of the X-axis title be x with the axis length of 1. (D=0.5)
YTXP( y ) Set the position of the Y-axis title be y with the axis length of 1. (D=0.5)
NOXT Does not display the X-axis title.
NOYT Does not display the Y-axis title.
CLTX( c ) Set the color of the XY axis title be c 1 . (D=e)
X-axis title display options
−1 : Display on the upper side
XTXT( ix ) 0 : Do not display
ix =
1 : Display at the bottom (default)
2 : Display on both sides
parameter explanation
X-axis scale display options
−1 : Display on the upper side
XTIC( ix ) 0 : Do not display
ix =
1 : Display at the bottom
2 : Display on both sides (default)
XLTD( x )
Explicitly specify the distance between long axis tick marks with x, y.
YLTD( y )
XSTD( x )
Explicitly specify the distance between the short axis tick marks with x, y.
YSTD( y )
XLTV( x )
Explicitly specify the coordinates of a point with a long axis scale in x, y.
YLTV( y )
XSTV( x )
Explicitly specify the coordinates of a point with a short axis scale in x, y.
YSTV( y )
CLAX( c ) Set the color of the graph frame and scale be c 1 . (D=e)
Caution
From AN GE L ver.3, the parameters of XTIC, YTIC have been renamed. The previous XTIC, YTIC becomes
XDTC, YDTC. The above function is newly added as XTIC, YTIC. Please change each one.
86 CHAPTER 2. REFERENCE MANUAL
parameter explanation
NOXN Does not display X-axis scale numbers.
NOYN Does not display Y-axis scale numbers.
X-axis scale number display options
−1 : Display on the upper side
XNUM( ix ) 0 : Do not display
ix =
1 : Display at the bottom (default)
2 : Display on both sides
XTDC( ix )
Explicitly specify the number of decimal places in the tick mark ix, iy.
YTDC( iy )
CLNM( c ) Let the color of the numbers on the XY axis scale be c 1 . (D=e)
parameter explanation
NOTC Does not display XY axis scales and scale numbers.
NOTN Does not display XY axis scales, scale numbers, and titles.
NOTF Does not display XY axis scales, scale numbers, titles, and axis lines.
Here, NOTC can be used as an existing parameter, as the three parameter specifications of ITIC(0) NOXN
NOYN. In addition to above parameters, NOXT and NOYT can be defined for NOXN, while NOTF can be defined for
NOYN.
2.18. P: PARAMETER SECTION 87
The following is a typical example when defining thedisplay parameters for the XY axis title, axis scale, and
axis scale numbers. Noted that other items are not displayed for each item. For example, in the axis title, the axis
scale and the axis scale number are not displayed.
X-axis Title
Y-axis Title
Y-axis Title
Y-axis Title
Y-axis Title
DFAULT XTXT(-1) YTXT(2)
0.5 0.5
XNUM(-1) YNUM(-1)
0.0 DFAULT 0.0
YNUM(0) XNUM(0)
−0.5 −0.5
−1.0 −1.0
−1.0 −0.5 0.0 0.5 1.0
parameter explanation
By default, the maximum and minimum values of X and Y axis are automati-
cally determined from the range of the X and Y values. At that time, 7 % of the
length of the X and Y axes is automatically added to the outside as a margin.
SPAC
If the sign of the value does not change and the minimum value (or maximum
value) is 25 % or less of the maximum value − minimum value, 0 is set to the
minimum value (or maximum value).
Set the X and Y margins to zero. This is convenient when you want to draw a
NOSP contour map or explicitly specify the maximum and minimum values to draw
the axes.
NOSX Set the X margin to zero.
NOSY Set the Y margin to zero.
XMIN( xmin ) Explicitly specify the maximum and minimum values for the X and Y axes. If
XMAX( xmax ) this is not specified, it will be automatically determined from the input data.
YMIN( ymin ) Also, if NOSP, NOSX, NOSY is not specified even with this specification, the
YMAX( ymax ) axis will have a margin of 7 % on the outside.
parameter explanation
NSPS Scales [nsec] (nanosec) to [psec] (piko sec).
NSUS Scale [nsec] (nanosec) to [µsec] (microsec).
NSMS Scales [nsec] (nano sec) to [msec] (mili sec).
NSSC Scales [nsec] (nanosec) to [sec].
When scaling [nsec] (nanosec) with the above parameters, if the Y-axis
NSYY
title has /nsec, the Y-axis units will also be scaled.
parameter explanation
CMNM [cm] Scale to [nm] (nano meter).
CMUM Scale [cm] to [µm] (micrometer).
CMMM Scale [cm] to [mm].
CMMT Scale [cm] to [m].
CMKM Scale [cm] to [km].
When scaling [cm] with the above parameters, if the Y-axis title has
CMYY
/cm, the Y-axis units will also be scaled.
parameter explanation
SCSC Scales [sec] to [sec]. (default)
SCMN Scale [sec] to [min].
SCHR Scale [sec] to [hour].
SCDY Scales [sec] to [day].
SCYR Scale [sec] to [year].
In default, the unit for [sec] is scaled to minutes for the case of 10 minutes more and less than 10 hours, to
hours for 10 hours more and less than 10 days, to days for 10 days more and less than 10 years, and to years for 10
years more. If you want to scale the units by users use the parameters above.
parameter explanation
XMUL( x f ac )
YMUL( y f ac ) Scales the X, Y, Z axes by x f ac, y f ac, z f ac.
ZMUL( z f ac )
parameter explanation
CNST Displays user-defined constants.
NOCN Does not display user-defined constants. (default)
CONX( x ) The position of the left end of the constant display is x n the X coordinate.
CONY( y ) The position of the upper end of the constant display is y in the Y coordinate.
CONS( s ) The size of the constant display is s with the default value of 1.
CLCN( c ) The color of the characters in the constant display is c 1 . (D=e)
CBOX( boxname ) Enclose the entire constant display in a box of boxname 2 .
CBCB( cb ) Set the background color of the constant display box be cb. (D=w)
CBCL( cl ) The color of the frame of the constant display box is cl. (D=e)
CBCS( cs ) Set the shadow color of the constant display box be cs. (D=e)
parameter explanation
PARA Displays the function fit coefficient.
NOPA Does not display the function fit coefficient. (default)
PARX( x ) Set the position at the left end of the coefficient display be x in the X coordinate.
PARY( y ) Set the position of the upper end of the coefficient display be y in the Y coordinate.
PARS( s ) The size of the coefficient display is s with the default value of 1.
CLPA( c ) The color of the characters in the coefficient display is c 1 . (D=e)
PBOX( boxname ) Enclose the entire coefficient display in a box of boxname 2 .
PBCB( cb ) Set the background color of the coefficient display box be cb. (D=w)
PBCL( cl ) Set the color of the frame of the coefficient display box be cl. (D=e)
PBCS( cs ) set the shadow color of the coefficient display box be cs. (D=e)
parameter explanation
LEGN Display the legend. (default)
NOLG Does not display the legend.
LEGX( x ) Set the leftmost position of the legend be x in the X coordinate.
LEGY( y ) Set the position of the top of the legend be y in the Y coordinate.
LEGS( s ) Set the legend size be s with a default value of 1.
CLLG( c ) Let the text color of the legend be c 1 . (D=e)
LBOX( boxname ) Enclose the entire legend in a box of boxname 2 .
LBCB( cb ) Set the background color of the legend box be cb. (D=w)
LBCL( cl ) Set the frame color of the legend box be cl. (D=e)
LBCS( cs ) Set the shadow color of the legend box be cs. (D=e)
parameter explanation
LPTL( r ) Set the pattern length be r with a default value of 1.
SYBW( r ) Set the thickness of the line that draws the symbol be r with a default value of 1.
Table 2.60: Parameters for the change of line type pattern length and symbol
92 CHAPTER 2. REFERENCE MANUAL
2.18.18 Contour
paramameter explanation
ICUT( i ) Set the number of contour lines be i. The default is 10.
Specify the height of the contour lines with r1 , r2 , .... The number is free. Also, the
order of the size of r1 , r2 , ... is arbitrary. If not specified, 10 contour lines will be
CUTS( r1 , r2 , r3 , ...., rN )
inserted, which are the intervals between the maximum and minimum heights divided
into 10 equal parts.
COLN( c ) Set the contour color be c 1 .
c1 , c2 , c3 , ...., cN specifies the color and grayscale. The contour lines with these
COLS( c1 , c2 , c3 , ...., cN )
colors corresponds to those specified by CUTS( r1 , r2 , r3 , ...., rN ).
COLS If you specify only COLS, the colors will be sorted automatically.
SMAX( c ) Specifies the maximum and minimum color.
SMIN( c ) The defaults are red (R) and blue (B).
ZLIN Divide the height of the contour lines into equal parts with a linear scalee. (default)
ZLOG Divide the height of the contour lines into equal parts in logarithmic scale.
Specifies the line thickness of the contour lines. The default is id = 4 in the unit of
IWD2( id )
1/300 inch.
Interpolates and smooths contour lines. By default, 4-point interpolation is performed,
IPD2 and to increase the number of interpolation points, use [ ] and specify with n, such
as IPD2[n].
Smooth the mesh data with Gauss smearing. By default, adjacent meshes (n = 1), to
IPDS
increase the number of meshes, use [ ] and n and specify with n, such as IPDS[n].
parameters explanation
Specify the size of the cluster. By default, the maximum value fills the entire rectangle,
and the other values fill the area proportional to the height of the data relative to the
CLUS( f )
maximum value. f = 1 (default) means that the entire rectangle is filled by the cluster,
and the value of f specifies the size of the of the rectangle for the maximal value.
The size of the cluster is determined proportional to the height of the data in linear scale
ZLIN
(default),
The size of the cluster is determined proportional to the height of the data in logarithmic
ZLOG
scale.
DMAX( dmax ) Set dmax as the maximum value, neglect the data which values are greater than dmax.
DMIN( dmin ) Set dmin as the minimum value, neglect the data which values are smaller than dmin.
CMAX( cmax ) Display the data which value is greater than cmax in size of the cmax.
CMIN( cmin ) Display the data which value is saller than cmin in size of the cmin.
CLHD( c ) Set the cluster color to c 1 .
parameters explanation
The color of the cluster is determined proportional to the height of the data in a linear
ZLIN
scale. (default).
The color of the cluster is determined proportional to the height of the data in a logarithmic
ZLOG
scale.
DMAX( dmax ) Set dmax as the maximum value, neglect the data which values are greater than dmax.
DMIN( dmin ) Set dmin as the minimum value, neglect the data which values are smaller than dmin.
CMAX( cmax ) Display the data which value is greater than cmax in color of the cmax.
CMIN( cmin ) Display the data which value is smaller than cmin in color of the cmin.
SMAX( c ) Specify the maximum and minimum color
SMIN( c ) THe default are red(R) and blue(B).
IPDC Automatically interpolate by halving the mesh spacing.
2.18.21 Color
parameter explanation
COLO Enable color (default)
MONO( c ) Makes everything where the color is set black and white.
(c) can be omitted. The default value for c is 1.
You can lighten the grayscale tones by specifying 0 ≤ c ≤ 1.
CLAL( c ) Set all colors be c 1 (D=e)
CLFR( c ) Set the color of frame be c (D=e)
CLMS( c ) Set the color of all messages be c. (D=e)
CLTL( c ) Set the color of the graph title be c. (D=e)
CLTX( c ) Set the color of the XY axis title be c. (D=e)
CLAX( c ) Set the color of the graph frame and scale be c. (D=e)
CLNM( c ) Set the color of the numbers on the XY axis scale be c. (D=e)
CLBG( c ) Set the background color outside the axes be c. (D=w)
CLIN( c ) Set the background color in the axes be c. (D=w)
CLLG( c ) Set the text color of the legend be c. (D=e)
CLCN( c ) Set the color of the characters in the constant display be c. (D=e)
CLPA( c ) Set the color of the text in the coefficient display be c. (D=e)
CLHD( c ) Set the color of the cluster be c. (D=e)
parameter explanation
BBSW The Bounding Box is displayed as a red line.
NOBB Does not display the Bounding Box. (default)
parameter explanation
DEBG Write the comments in the EPS file for debugging.
NODB Compact EPS output. (default)
parameter explanation
BFON( f ) Set the font of the text be f 1 . (D=0)
TFON( f ) Let the font of the scale numbers be f (D=0)
Set the output of \today, \time be in alphanumeric, if ks is written in
DATE( ks ) alphanumeric, while in Japanese characters if ks is written in Japanese
characters. The default is alphanumerical.
parameter explanation
NOTC Does not display XY axis scales and scale numbers.
NOTN Does not display XY axis scales, scale numbers, and titles.
NOTF Does not display XY axis scales, scale numbers, titles, and axis lines.
NOCM Does not show all comments.
SECL Set the scale coordinates for A4 Horizontal graph paper.
SECP Set the scale coordinates for A4 Vertical graph paper.
These parameters are useful when making slides for presentations. Place titles and graphs with SECL, SECP,
and finally use NOTF to turn off the scale. The output of SECL and SECP is shown on the next page.
96 CHAPTER 2. REFERENCE MANUAL
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
16 16
15 15
14 14
13 13
12 12
11 11
10 10
9 9
8 8
7 7
6 6
5 5
4 4
3 3
2 2
1 1
0 0
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
24 24
23 23
22 22
21 21
20 20
19 19
18 18
17 17
16 16
15 15
14 14
13 13
12 12
11 11
10 10
9 9
8 8
7 7
6 6
5 5
4 4
3 3
2 2
1 1
0 0
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
• As a general rule, special commands start with ”\” and end with a space in principle.
• Unlike TEX and LATEX, sequential blanks are regarded as sequential blanks as they are.
• Line breaks in multi-line comments are considered as line breaks, unlike TEX and LaTeX.
• Some symbol characters are special characters that are not output even if they are input as they are.
The meaning of the special character mentioned above and the commands to output it as it is are summarized
below.
{\ff string }
Here, the character string in { } is changed to the typeface defined by the two English characters ff. The ff is as
follows.
{\size string }
Here, the string inside { } is changed to the size defined by the alphabetic character size. Unlike TEX and LATEX,
these effects are based on their current size. You can also insert it over and over again. Therefore, there is no
\normalsize. The size is as follows.
{\color{ c } string }
{\boxname{ c }{ cb }{ cl } string }
Here, the string inside { } is surrounded by a box defined by boxname 1 . Also you can change the color by c 2
for the text color, cb for the background color of box, and cl for the text color. The color definition can be omitted.
\ks{ }ˆ{ }
\ks{ }_{ }
When using ˆ, ruby is placed on the top of the Chinese character. Meanwhile, when _, ruby is placed on the
bottom. An example is shown below.
ÿ ÿÿÿÿ ÿÿÿÿÿÿ
ÿÿ ÿ
\ks{\ \
\ks{\ \ \ \
ÿÿ ÿ
Here, \today, \time, \file, \page can output the date, time, input file name, and number of pages,
respectively. The date and time are alphanumerical in default, and to make this a Chinese character, put at least
one Chinese character in the ks part of DATE(ks) in the parameter section.
2.19.8 Accents
The following commands are available for accents.
ÿÿ ÿÿÿÿÿ ÿÿÿÿÿÿ
1
\quad space of \quad
\qquad 2 times space of \quad
\, 3/18 times space of \quad
\> 4/18 times space of \quad
\; 5/18 times space of \quad
\! -3/18 times space of \quad
1 \quad is to put a 10-point space if you use 10-point characters in the text.
2.20.3 Suffix
The subscript is written after the _ symbol, and the superscript is written after the ˆ symbol. If the subscript is not
a single character, enclose it in { }. You can also use superscripts and subscripts at the same time. Also, it can
be attached in multiple layers.
2.20. MATHEMATIC EQUATION 105
2.20.4 Fraction
The format of the fraction is the same as LATEX, using \frac{ }{ }. Specify the numerator in the first argument
and the denominator in the second argument. This command corresponds to a separate fraction expression of
LATEX.
In the text of LATEX, this fraction is outputed in small letters. Since AN GE L does not make this distinction, the
fractional expression output in small characters is \fracs{ }{ }. The input and output of the example are shown
below.
ÿ ÿÿÿÿ ÿÿÿÿÿÿ
$ y = \frac{1}{x + 1} $ y= − 1
x+1
$ y = \fracs{1}{x + 1} $ y= −1
x+1
ÿ ÿÿÿÿ ÿÿÿÿÿÿ
\sqrt{ ( x + 1 ) / (
y + 3 ) } √(x+1)/(y+3)
\sqrt{ 2x + 5y } √ 2x + 5y
The command to output the uppercase Greek letter is the capitalized English name following \.
If using ˆ, the second argument is placed in the upper center of the first argument. Meanwhile when using _, the
second argument is placed in the lower center of the first argument. An example is shown below.
ÿ ÿÿÿÿ ÿÿÿÿÿÿ
f
\mathop{\to}^{f} →
\mathop{=}_{{\rm def} =
def
2.20.12 Arrows
ÿÿ ÿÿ ÿÿ ÿÿ ÿÿ ÿÿ
\left( ( \big( \Big(
\left\{ { \big\{ \Big\{
\left[ [ \big[ \Big[
\right( ) \big) \Big)
\right\} } \big\} \Big\}
\right] ] \big] \Big]
User manual
3.1.1 Slide 1
First, an example of the title, author, content, etc. on the first page are shown.
SECL and SECP are useful when making slides for presentations. These make it convenient to draw a graph
paper for arranging and write the desired title on it.
List3.1 • Slide 1
1: p: secl notf bfon(5)
2: set: c1[12] c2[16]
3:
4: w:Page \page/ x(-2) ix(1) y[c2] iy(1)
5: w:Nov. 08, 2000, ICANS-XV, Tsukuba/ x(26) ix(3) y[c2] iy(1)
6:
7: wt: x[c1] ix(2) y[c2-2] iy(2) s(1.6) box(ShadowBox) f(2)
8: High Energy Particle Transport Code {\color{r}NMTC/JAM}
9: e:
10:
11: wt: x[c1] ix(2) y[c2-5] iy(3) s(1.2) box(OvalBox) b(1.4)
12: {\hv\bf\color{b}K. Niitaˆ1 H. Takada S. Meigo and Y. Ikeda}
13:
14: Center for Neutron Science, {\color{r}JAERI}
15: ˆ1{\color{r}RIST} (Research Organization for Information Science \& Tecnology)
16: e:
17:
18: wt: x[c1] ix(2) y[c2-11] iy(3) s(1.2) box(OvalBox) b(1.2)
19: contents :
20: &1. Introduction
21: &2. Models in NMTC/JAM
22: &3. Comparison with Experimental Data
23: &4. Summary
24: e:
First, declare SECL on the first line and draw on the grid of graph paper. When finished, use NOTF to erase the
grid of the graph paper. Also, here, the basic font is No. 5, Times-Roman. The second line defines the constant.
112
3.1. HOW TO DRAW A SLIDE 113
For C1, the X axis of SECL is 24 cm long and centered. This is often used to center the titles that should be drawn.
C2 takes the top 16 cm of the Y axis. The Y coordinate of the title etc. will be expressed by the relative distance
from this C2. This allows you to move the entire drawing by moving C1, C2 later up, down, left and right on the
screen.
At the 4th and 5th lines, the pages on the upper left and right of the screen, the meeting information are entered
as comments. \page is used for the page. This will automatically add pages even if the number of pages increases.
Lines 7-9 are the main titles. the second font, Helvetica bold is used. Also, this multi-line comment is enclosed in
ShadowBox.
Lines 11-16 are authors and affiliations. Here, the font is partially changed and the color is changed. Blanks
on line 13 will appear as blanks. Also, here, the line spacing is 1.4 times the default.
Lines 18-24 represent the content. This multi-line comment is centered by ix(2), but the numbers are aligned
by using &.
K. Niita1
ÿ
contents :
1. Introduction
2. Models in NMTC/JAM
3. Comparison with Experimental Data
4. Summary
3.1.2 Slide 2
It is convenient if the slides of one presentation are in one file. You can also make a slide show by turning the pages
when displaying images from your computer and making a presentation. AN GE L uses multi-page. The following
example is on page 2.
114 CHAPTER 3. USER MANUAL
List3.2 • Slide 2
1: newpage:
2: p: secl notf bfon(5)
3: set: c1[12] c2[16]
4:
5: w:Page \page/ x(-2) ix(1) y[c2+1] iy(1)
6: w:Nov. 08, 2000, ICANS-XV, Tsukuba/ x(26) ix(3) y[c2+1] iy(1)
7:
8: wt: x(1) ix(1) y[c2-0.5] iy(2) s(1.2) box(ShadowBox) c(e) f(7)
9: Introduction
10: e:
11:
12: ab: x(10) y[c2-1] ax(10) ay[c2-14] a(1.8) c(e) cb(y)
13:
14: wt: x(8) ix(1) y[c2-0.5] iy(3) s(1.0) box(OvalBox) b(1.2)
15: {\hv\bf\large{\color{b}NMTC/JAERI97} + {\hv\bf\color{b}MCNP4A}}
16: e:
17:
18: wt: x(2) ix(1) y[c2-2.7] iy(3) box(OvalBox) b(1.2)
19: Joint Project of JAERI and KEK, high intensity proton \
20: {\color{r} 600 MeV - 50 GeV}
21: Neutronics optimization study of the high intense Spallation Neutron Source
22: ASTE (AGS Spallation Target Experiment) {\color{r} 1.5 - 24 GeV}
23: e:
24:
25: wt: x(6) ix(1) y[c2-6.5] iy(3) box(OvalBox) b(1.2)
26: High Energy Nuclear Reactions
27: Many kinds of transport particles in additin to the nucleons and pions
28: e:
29:
30: wt: x(8) ix(1) y[c2-9.5] iy(3) s(1.0) box(OvalBox) b(1.2)
31: Limit of Bertini model
32: only nucleon and pion
33: upper limit: {\color{b}3.5 GeV} for nucleons and {\color{b}2.5 GeV} for pions
34: e:
35:
36: wt: x(10) ix(2) y[c2-14] iy(3) box(OvalBox) b(1.2)
37: High Energy Particle Transport Code
38:
39: {\hv\bf\Large{\color{b}NMTC/JAM}}
40: e:
The first line is the declaration of the new page. The yellow hollow arrow is drawn on the 12th line. The shape
is drawn before the comment, so this long arrow is partially hidden by the comment box.
3.1. HOW TO DRAW A SLIDE 115
Introduction
NMTC/JAERI97 + MCNP4A
Joint Project of JAERI and KEK, high intensity proton 600 MeV - 50 GeV
Neutronics optimization study of the high intense Spallation Neutron Source
ASTE (AGS Spallation Target Experiment) 1.5 - 24 GeV
NMTC/JAM
3.1.3 Slide 3
This is the third page.
List3.3 • Slide 3
1: newpage:
2: p: secl notf bfon(5)
3: set: c1[12] c2[16] c3[0.0] c4[14.5]
4:
5: w:Page \page/ x(-2) ix(1) y[c2+1] iy(1)
6: w:Nov. 08, 2000, ICANS-XV, Tsukuba/ x(26) ix(3) y[c2+1] iy(1)
7:
8: h: ny3 x=[y3+c3] ny1 y2=[-y1+c4+0.7],l0tt
9: 4 2
10: 4 0
11: 10 0
12:
13: wt: x[c3+9.0] ix(1) y[c4+0.7] iy(2) s(1.2) box(OvalBox) c(e) f(1)
14: {\color{r}J}et {\color{r}A}A {\color{r}M}icroscopic Transport Model
15: e:
16:
17: wt: x[c3+12] ix(2) y[c4-1.3] iy(3) s(1.3) box(OvalBox) b(1.7)
18: is a &{\SingleBox{e}{w}{r}\hv\it Hadronic Cascade Model} ,
19: \vspace{0.5}\
20: which explicitly treats &{\Singlebox{e}{y}{y}all established hadronic states}
21: including &{\Singlebox{e}{y}{y}resonances} with explicit spin and isospin
22: as well as their &{\Singlebox{e}{y}{y}anti-particles}.
23: e:
24:
116 CHAPTER 3. USER MANUAL
Lines 8-11 draw a line connecting the comments. Comments are drawn in the order written in the input, so
take that into account when stacking. It may seem a little complicated, but it is not difficult to write more sentences
first and then add decorations in sequence.
JAM
is a Hadronic Cascade Model ,
We have parametrized
all Hadron-Hadron Cross Sections
based on the Resonance model and String model
by fitting the available experimental data.
3.1.4 Slide 4
This is the 4th page. Next, the graph will finally be included.
List3.4 • Slide 4
1: newpage:
2: p: secl notf bfon(5)
3: set: c1[12] c2[16]
4:
5: w:Page \page/ x(-2) ix(1) y[c2+1] iy(1)
6: w:Nov. 08, 2000, ICANS-XV, Tsukuba/ x(26) ix(3) y[c2+1] iy(1)
7:
8: wt: x[c1+3] ix(2) y[c2-1] iy(2) s(1.4) box(Shadowbox) c(e) f(1)
9: {\color{r}P}roton-{\color{r}P}roton\
10: {\color{r}I}nelastic Cross Section
11: e:
12:
13: z: xorg(0.33) yorg(0.14)
14:
15: p: xmax(10) ymax(60) ymin(0) xmin(1) nosp
16:
17: x:E_{cm} (GeV)
18: y:\sigma (mb)
19:
20: a: x(-1.5) y(0) ax(2.1) ay(10) t c(b)
21:
22: p: legs(1.0) legx(-4.3) legy(10) lbox(Shadowbox) lbcb(y) lbcl(e)
23:
24: w:total/ x(6.5) y(42) s(1.4)
25: w:inelastic/x(4.3) y(32) s(1.4) c(j)
26: w:String/x(5) y(20) s(1.4) c(r) a(17)
27: w:Resonance/ x(6) y(11) s(1.4) c(b) a(-8)
28:
29: h: ny1 x y2,n4xx ny3 dy2
30: infl: {pp_tot.exp}
31: h: x ny1 y2,l0 n n n n
32: infl: {pptot.dat}
33: h: n x y1,lt0b y2,ltt0j y3,lt0r
34: infl: {ppinel.fit}
35: h: n x y1,i0y ny2,l0 ny3,lt0rrr
36: infl: {ppinel.fit}
37: h: n x y(NN \to N\Delta\(1232\)),d0b
38: infl: {pp-nd.fit}
39: h: n x y(NN \to NNˆ*),d0
40: infl: {pp-nns.fit}
41: h: n x y(NN \to N\Deltaˆ*),u0rr
42: infl: {pp-nds.fit}
43: h: n x y(NN \to RR),m0
44: infl: {pp-rr.fit}
After writing the title of the graph on lines 8-11, it becomes the section of the multigraph on lines 13. Now
move from the SECL graph axis to the next graph axis. The origin of the new axes is defined by xorg(0.33)
yorg(0.17).
In the new graph, lines 29-44 draw experimental points, fitted lines, etc. while reading data from other files.
At that time, a figure legend is written. The display position of the figure legend has been moved from the default
position using the parameters on line 22. At the same time, it is surrounded by a box using lbox.
118 CHAPTER 3. USER MANUAL
The meaning of each line is written on the graph in the comment line on the 24-27th line. On line 27, the
opponent’s line is tilted, so the comments are also tilted a little accordingly.
60
total
40
σ(mb)
inelastic
g
20 Strin
NN → N∆(1232)
Resonanc
e
NN → NN *
NN → N∆* 0
NN → RR 2 4 6 8 10
Ecm (GeV)
3.1.5 Slide 5
This is the 5th page. Next, there are two graphs.
List3.5 • Slide 5
1: newpage:
2: p: secl notf bfon(5)
3: set: c1[12] c2[16]
4:
5: w:Page \page/ x(-2) ix(1) y[c2+1] iy(1)
6: w:Nov. 08, 2000, ICANS-XV, Tsukuba/ x(26) ix(3) y[c2+1] iy(1)
7:
8: wt: x[c1] ix(2) y[c2-1] iy(2) s(1.2) box(ShadowBox) c(e) f(1)
9: {\color{r}N}ucleon-{\color{r}N}ucleus {\color{r}D}ifferential \
10: {\color{r}E}lastic Cross Sections
11: e:
12:
13: z:
14: infl: {pb208ne.ang}
15: p: xorg(0.12) yorg(0.0) scal(0.5)
16:
17: z:
18: infl: {pb208nd.ang}
3.1. HOW TO DRAW A SLIDE 119
Here, two files are read in lines 13-15 and 17-19, and two graphs are drawn. In the file to be read, scal,
xorg, yorg etc. are already defined in order to format it as an input of AN GE L , so redefine the values of these
parameters after reading the file.
106 106
102
102
101
101
100
208
12 Pb (p,p) 1 GeV
C (p,p) 1 GeV 100
−1
10 × 0.01
× 0.1
10−1
10−2
10−3 10−2
10−4 10−3
0 10 20 30 40 0 5 10 15 20
CM-angle (degree) CM-angle (degree)
3.1.6 Slide 6
This is the 6th page. Next, a handwritten figure is written together with the text.
List3.6 • Slide 6
1: newpage:
2: p: secl notf bfon(5)
3: set: c1[12] c2[16]
4:
5: w:Page \page/ x(-2) ix(1) y[c2+1] iy(1)
6: w:Nov. 08, 2000, ICANS-XV, Tsukuba/ x(26) ix(3) y[c2+1] iy(1)
7:
8: wt: x[c1] ix(2) y[c2-2] iy(2) s(1.2) box(ShadowBox) c(e) f(1)
9: Comparison with Experimental Data (3)
10: e:
11: wt: x(3) y[c2-5] f(0) box(ovalBox)
12: (3) & Reaction rate distribution on Mercury target (AGS)
13: & {\rm\it H. Takada, et.al, Proc. of the 14th Mtg. of the Int. Collaboration on}
120 CHAPTER 3. USER MANUAL
Lines 22-35 draw the gray part of Hg Target. Line 23 fills the circle with polg, and the next line 24 uses
self-running variables and column functions to draw the perimeter of the semicircle. Use lines 25-30 to gray the
rectangle and lines 31-35 to outline the perimeter.
Lines 38-49 present the yellow part. After these lines, arrows, lines, and dimensions are described. It is a little
troublesome, but it is not difficult because you can decide the coordinates while looking at the graph paper. I define
constants just in case I need to move the whole thing after I finish writing.
ENERGY
DETECTOR
"
130 cm
Hg Target 20 cm
proton beam
1.6, 12, 24 GeV
samples
JQMD plotted by ANGEL Header JQMD plotted by ANGEL Input Echo and Summary
JQMD
Jaeri Quantum Molecular Dynamics
for Nuclear Reactions
proj
targ
event
tstep
frame
win
bmin
=
=
=
=
=
=
=
40Ca
208Pb
1000
90
cm
800mev
0.0
A
B
τ
Cs
K
L
= -219.39
= 165.31
= 1.3333
=
=
25.00
= 237.69
2.00
(MeV)
(MeV)
(MeV)
(MeV)
(fm2)
Energy (MeV/A)
Potential
Kinetic
Binding
Target
-27.073
19.262
-7.811
Energy Conservation
Projectile
-23.180
14.689
-8.491
−1− −2−
On the first page, the JQMD logo and reaction system, energy, collision coefficient, number of events, time
step, initial value of random number, summary of calculation time, etc. are described. On the second page, input
parameters, interaction parameters, ground state energy, overall energy conservation, includes a summary of the
number of particle collisions, reaction cross section, and statistical decay are shown.
Now let’s see what the input data for the Input Echo part on the second page looks like.
3.2. OUTPUT OF COMPUTATIONAL PROGRAM 123
It contains the AN GE L instruction, but you can still see it as normal output. Let’s take a look at the next four
pages.
JQMD plotted by ANGEL Collision History JQMD plotted by ANGEL Time Evolution of R-Space of 1 th Event 12345
T= 0 T = 50
10 10
x (fm)
60
E/A (MeV)
Epot 60 all
40 mass blocked
pion inelastic
20 40
Etotal elastic T = 10 T = 60
0
10 10
20
−20
x (fm)
x (fm)
0 0 0
0 20 40 60 80 0 20 40 60 80
Time (fm/c) Time (fm/c)
−10 −10
Collisions / Time
6 NN→ND D→N+π
NN→NR 6 R→N+π
x (fm)
x (fm)
NN→DD R→D+π 0 0
4 ND→NN N+π→D
4
NR→NN N+π→R
DD→NN D+π→R
2 2 −10 −10
0 0
0 20 40 60 80 0 20 40 60 80
Time (fm/c) Time (fm/c) T = 30 T = 80
10 10
x (fm)
x (fm)
ND→DD
−10 −10
Collisions / Time
NR→DR
1.0 ND→RD 10 π
NR→RR
∆
DD→ND
N*
DR→NR
0.5 5 T = 40 T = 90
RD→ND 10 10
RR→NR
x (fm)
x (fm)
0.0 0
0 20 40 60 80 0 20 40 60 80 0 0
Time (fm/c) Time (fm/c)
−10 −10
−3− −4−
JQMD plotted by ANGEL Mass Distribution of QMD JQMD plotted by ANGEL 2-Dim. Mass Distribution of QMD
104
Yield (mb)
103
QMD
102
101
100
50 50
Proton Number Z
30
104 28
82
103
Yield (mb)
20 20
50
102 QMD
10
101 20 28
0
100 0 20 40 60 80
Neutron Number N
0 10 20 30 40 50
Zf
−5− −6−
The third page shows a graph of the time evolution of the system and the time evolution of each particle colli-
sion. Page 4 is the time evolution in the spatial coordinates of the system. On the 5th page, the mass distribution and
charge distribution after QMD calculation are shown. And on page 6, the mass distribution and charge distribution
after QMD calculation are shown in a cluster plot.
For numerical calculations such as simulations, it is very important to see the results immediately and visually.
2
y [cm]
−2
−4
−6 −4 −2 0 2 4 6
z [cm]
Figure 3.13: Color cluster plot 1
Lines 4 and 6 define constants, which are denoted to use later. c1, c2, c3 is for the original graph form,
xfac, afac and c4, c5 is for the values of minimal and maximal height. In this graph, the height is displayed
in logarithm. To put a height legend in it:
126 CHAPTER 3. USER MANUAL
4
10−1
2
10−2
Heat [MeV/source]
y [cm]
0 10−3
10−4
−2
10−5
−4
−6 −4 −2 0 2 4 6
z [cm]
Figure 3.14: Color cluster plot 2
Up to the 12th line is the same as before, so you can omit it. Line 14 defines a new graph. Lines 15-18 plot the
color clusters used in the legend evenly divided into 20 from the minimum to the maximum. Increase this number
if you want to smooth out the color changes in the legend. The 14th line xorg(1.03) is the positional relationship
with the original graph. Also, 0.05 on the 15th line is the number that determines the width of the legend. Here, it
is set as 5 % of the length of the original X-axis.
The 20th line further defines the following graph. This graph overlaps the exact previous color cluster plot.
Here, the units of scale and height are written. 0.625 on the 21st line is the value of how many times the size of the
number and title at this time is multiplied by those of the original graph. Here, it gets little smaller.
3.4. PUT THE HEIGHT OF THE CONTOUR LINES IN THE FIGURE 127
3
5
3.
2
3.5
1
0 15.5
5
9.
.5
21
−1 27.5
−2
−3
−3 −2 −1 0 1 2 3
The first line defines the number of contour lines and their height. Write the comments from the 2nd to 7th
lines while looking at the figure. At that time, using a white box and using ix(2) iy(2). THis is a point. I’m
using the rotation of the letters in the comment to match the numbers to the lines.
128 CHAPTER 3. USER MANUAL
5
60
dσ/dΩdE (nb/MeV/sr)
4
Multiplicity
40 3
2
20
1
0 0
0 1 2 3 4 5 0 1 2 3 4 5
E (MeV) E (MeV)
These are two graphs arranged side by side using a multigraph section. To overlap the two, you can use
xorg(0.0) on the 12th line, but the scale and title will overlap. So do the following:
3.5. DISPLAY GRAPHS OF DIFFERENT SCALES AT THE SAME TIME 129
5
60
dσ/dΩdE (nb/MeV/sr)
4
Multiplicity
40 3
2
20
1
0 0
0 1 2 3 4 5
E (MeV)
First, turn off the right scale of the first graph on the second line. Next, on the 14th line, the Y title, Y-axis scale,
and Y-axis scale numbers of the second graph are displayed only on the right side. This completes the simultaneous
display of two axes with different scales.
Index
130
INDEX 131
CB( ), 50, 52, 53, 55, 56, 64, 67, 69, 71–73, 114, 116, colormap, 30
121 COLS, 41, 42, 92
CBCB( ), 19, 90 column function, 36–38, 121
CBCL( ), 19, 90 column parameter, 24, 36, 38, 39
CBCS( ), 19, 90 column parameters, 36
CBOX( ), 19, 90 comment marks, 14
\cdot, 108 comment section, 15, 51, 52, 55, 60
change of line type pattern length, 91 compile, 10
change typeface, 99 \cong, 108
character size, 100 CONS( ), 19, 90
\check{ }, 107 contour, 40–42, 88, 92, 127
\chi, 106 contour plot, 15
chinese character ruby, 102 CONX( ), 19, 90
choice of paper, 76 CONY( ), 19, 90
\circ, 108 \copyright, 103
CL( ), 52, 53, 55, 56, 67, 69, 71, 73, 121 \cos, 110
CLAL( ), 94 \cosh, 110
CLAX( ), 85, 94 \cot, 110
CLBG( ), 94 \coth, 110
CLCN( ), 19, 90, 94 Courier, 98
CLFR( ), 76, 94 \cr, 99
CLHD( ), 44, 93, 94 CS( ), 52, 53, 69, 71, 72
CLIN( ), 94 \csc, 110
\cline{ }, 55, 56, 58, 59 \cup, 108
CLIP:, 49, 50 CUTS( ), 41, 92, 127
clipping, 49
D, 26, 34
CLLG( ), 25, 91, 94
\dag, 103
CLMS( ), 76, 94
\dagger, 108
CLNM( ), 86, 94
DATE( ), 95, 103
CLPA( ), 39, 90, 94
\ddag, 103
CLTL( ), 16, 76, 94
\ddagger, 108
CLTX( ), 20, 84, 94
\ddot{ }, 107
\clubsuit, 109
DEBG, 95
CLUS( ), 44, 93
\deg, 110
cluster plot, 15, 43, 44, 93, 124, 126 \Delta, 106
CMAX( ), 44, 47, 93, 125, 126 \delta, 106
CMIN( ), 44, 47, 93, 125, 126 \det, 110
CMKM, 89 \diamond, 108
CMMM, 89 \diamondsuit, 109
CMMT, 89 \dim, 110
CMNM, 89 \div, 108
CMUM, 89 DMAX( ), 44, 47, 93
CMYY, 89 DMIN( ), 44, 47, 48, 93
CNST, 19, 90 \dot{ }, 107
coefficient variable, 38 doublebox, 69
COLN( ), 41, 92 \Downarrow, 109
COLO, 94 \downarrow, 109
color, 5, 30, 41, 44, 92, 94
\color{ }, 101, 112, 114, 116, 117, 119 E, 29
color cluster, 46, 47, 93, 125, 126 E:, 15, 52–55, 57–59, 112, 114, 116, 117, 119, 121, 123
color cluster plot, 15 \emptyset, 109
color culster, 47, 125 \epsilon, 106
color map, 30 \eq, 108
color name, 33 \equal, 108
132 INDEX
K, 29 \lor, 108
\kappa, 106 lowercase, 14, 75
\ker, 110 LPTL( ), 26, 91
\ks{ }, 102
M, 26
L, 26 macro parameter, 95
\L, 103 macro parameters for axes, 86
\l, 103 makefile, 10, 12
\Lambda, 106 math accent, 107
\lambda, 106 math mode, 104
LAND, 75, 77, 79 math ruby, 107
\land, 108 mathematical expression, 19, 24, 36, 37
Landscape, 9 mathematical function, 110
\langle, 111 mathematical symbols, 109
\LARGE, 100 \mathop, 107
\Large, 100, 114 \max, 110
\large, 100, 114 maximum and minimum, 88
Large math symbol, 110 \mc, 99
memory, 10
\LaTeX, 103
\mid, 108
layout, 75
\min, 110
LBCB( ), 25, 91, 117
Mincho, 98
LBCL( ), 25, 91, 117
\minus, 108
LBCS( ), 25, 91
MONO, 94
LBOX( ), 25, 91, 117
\mp, 108
\lceil, 111
MSDC:, 15, 61, 62
\le, 108
MSDL:, 15, 61, 62
\left, 111
MSDR:, 15, 61, 62
\left<, 111
MSSG, 62, 76
\Leftarrow, 109
MSUC:, 15, 61, 62
\leftarrow, 109
MSUL:, 15, 61, 62
\Leftrightarrow, 109
MSUR:, 15, 61, 62
\leftrightarrow, 109
\mu, 106
legend, 5, 25, 26, 34, 36, 79, 91, 94, 100, 101, 117, 125, multi graph, 117, 128
126 multi-graph, 77
LEGN, 25, 91 multigraph, 21, 22
LEGS( ), 25, 91, 117
LEGX( ), 25, 91, 117 N, 26, 63, 64
LEGY( ), 25, 91, 117 N:, 14, 15, 21
length of pattern, 26 \nabla, 109
\lfloor, 111 \ne, 108
\lg, 110 \neg, 109
\lim, 110 \neq, 108
\liminf, 110 NEWPAGE:, 14, 15, 21, 114, 116, 117, 119, 121
\lims, 110 NOAF, 84, 86
LINE, 50 NOBB, 94
line, 118 NOCLIP, 50
line connecting, 14 NOCM, 95
line parameter, 26, 27, 33 NOCN, 19, 90
line thickness, 27 NODB, 95
line type, 5, 25, 26, 29, 30, 34, 91 NOFR, 18, 76, 125, 128, 129
\ll, 108 NOLG, 25, 91
\ln, 110 NOLINE, 50
\lnot, 109 NOMS, 18, 62, 76, 125, 128, 129
\log, 110 NOPA, 39, 90
134 INDEX
NOSP, 18, 88, 117, 125, 126, 128, 129 \PHITS, 103
NOSX, 88 \Pi, 106
NOSY, 88 pi, 19, 20, 36–38, 54, 121
NOTC, 86, 95 \pi, 106
NOTF, 86, 95, 112, 114, 116, 117, 119, 121 PL( ), 67, 73
\notin, 108 \plus, 108
NOTL, 16, 76 \pm, 108
NOTN, 86, 95, 126 POLG:, 15, 67, 68, 121
NOXN, 86, 126 PORT, 18, 75, 77, 79
NOXT, 18, 20, 84, 86, 126 Portrait, 9
NOYN, 86 position of graph, 77
NOYT, 18, 20, 84, 86, 119 \pounds, 103
NSMS, 88 \Pr, 110
NSPS, 88 \prime, 109
NSSC, 88 \prod, 110
NSUS, 88 \prods, 110
\nu, 106 \propto, 108
NSYY, 88 \Psi, 106
\psi, 106
O, 29
\O, 103 Q, 26
\o, 103 Q:, 14, 15, 21
\OE, 103 QP:, 14, 15, 21
\oe, 103 \qquad, 104
\Omega, 106 \quad, 104
\omega, 106
\oplus, 108 R, 30
\oslash, 108 ran, 19, 36, 38
\otimes, 108 \rangle, 111
ovalbox, 69 \rceil, 111
ovalshadowbox, 69 \Re, 109
\overleftarrow{ }, 107 \register, 103
\overline{ }, 107 relational operator, 108
\overrightarrow{ }, 107 \rfloor, 111
RGB, 50
P, 26 \rho, 106
P:, 15, 18–20, 22, 25, 26, 28, 39, 41, 42, 44, 47, 75, RIBN:, 15, 71, 72
112, 114, 116, 117, 119, 121, 125–129 \right, 111
\P, 103 \right>, 111
\page, 103 \Rightarrow, 109
PALL( ), 94 \rightarrow, 109
PARA, 39, 90 \rm, 99, 121
parentheses and delimiters, 111 run angel, 6
PARS( ), 39, 90
\partial, 109 S, 27
PARX( ), 39, 90 S( ), 17, 18, 22, 51, 52, 55, 56, 60, 67, 69, 71–73, 112,
PARY( ), 39, 90 114, 116, 117, 119, 121, 123
PATH:, 49, 50 S[ ], 27
PBCB( ), 39, 90 \S, 103
PBCL( ), 39, 90 Saturation, 30
PBCS( ), 39, 90 \sb, 99
PBOX( ), 39, 90 SCAL( ), 22, 79, 119, 128, 129
\perp, 108 scale, 79
\Phi, 106 SCDY, 89
\phi, 106 SCHR, 89
INDEX 135
X, 29
X( ), 4, 5, 17, 18, 51–55, 57–61, 63–74, 112, 114, 116,
117, 119, 121, 123, 127
X:, 4, 5, 15, 20, 117, 125, 128, 129
XDEC, 84
XDTC( ), 18, 85
XEXP, 84
XFAC( ), 79, 125, 126
\Xi, 106
\xi, 106
XLIN, 84
XLOG, 84
XLTD( ), 85
XLTV( ), 85
XMAX( ), 18, 88, 117, 125, 126, 128, 129
XMIN( ), 18, 88, 117, 125, 126, 128, 129
XNUM( ), 86
XORG( ), 21, 22, 77, 117, 119, 126, 128, 129
XSTD( ), 85
XSTV( ), 85
XTDC( ), 86
XTIC( ), 85, 126
XTXP( ), 20, 84
XTXT( ), 20, 84
Y, 30
Y( ), 4, 5, 17, 18, 51–55, 57–61, 63–74, 117, 123, 127
Y:, 4, 5, 15, 20, 117, 125, 126, 128, 129
YDEC, 84
YDTC( ), 18, 85
\yen, 103
YEXP, 84
YLIN, 84
YLOG, 84, 126
YLTD( ), 85
YLTV( ), 85
YMAX( ), 18, 88, 117, 125, 126, 128, 129
YMIN( ), 18, 88, 117, 125, 126, 128, 129
YNUM( ), 86, 126, 129
YORG( ), 21, 22, 77, 117, 119
YSTD( ), 85
For inquiries regarding this software and this manual, please contact niita@rist.or.jp by e-mail or RIST Koji
Niita by normal letter.
If you request a site license for the software included in the AN GE L package that is copyrighted by the author,
please contact the above address.