/GRAPHICS_PRIMITIVES |
---|
Call HIGZ drawing primitives
/GRAPHICS/PRIMITIVES/PLINE n x y |
---|
N | I | Number of points |
X | C | Vector name for X coordinates |
Y | C | Vector name for Y coordinates |
Draw a polyline of N points X,Y in the current Normalisation transformation. The PLINE attributes can be changed with the command SET.
Example:
This command doesn't take into account OPTIONS LOGY or LOGX, use GRAPH instead.
/GRAPHICS/PRIMITIVES/3DPLINE n x y z |
---|
N | I | Number of points |
X | C | Vector name for X coordinates |
Y | C | Vector name for Y coordinates |
Z | C | Vector name for Z coordinates |
Draw a polyline of N points X,Y,Z in the current Normalisation transformation. The 3DPLINE attributes can be changed with the command SET.
Example:
/GRAPHICS/PRIMITIVES/LINE x1 y1 x2 y2 |
---|
X1 | R | X first coordinate |
Y1 | R | Y first coordinate |
X2 | R | X second coordinate |
Y2 | R | Y second coordinate |
Draw a line connecting points (X1,Y1) and (X2,Y2) in the current Normalisation transformation. This command is kept for backward compatibility. It has a reverse calling sequence compare to BOX or ARROW and it doesn't take LOG scales into account. It is recommended to use DLINE instead. The LINE attributes can be changed with the command SET.
Example:
/GRAPHICS/PRIMITIVES/DLINE x1 x2 y1 y2 |
---|
X1 | R | X first coordinate |
X2 | R | X second coordinate |
Y1 | R | Y first coordinate |
Y2 | R | Y second coordinate |
Draw a line connecting points (X1,Y1) and (X2,Y2) in the current Normalisation transformation taking care of logarithmic scales. The DLINE attributes can be changed with the command SET.
Example:
/GRAPHICS/PRIMITIVES/FAREA n x y |
---|
N | I | Number of points |
X | C | Vector name for X coordinates |
Y | C | Vector name for Y coordinates |
Fill the area defined by the N points X,Y in the current Normalisation transformation. The FAREA attributes can be changed with the command SET.
Example:
This command doesn't take into account OPTIONS LOGY or LOGX, use GRAPH instead.
/GRAPHICS/PRIMITIVES/PMARKER n x y |
---|
N | I | Number of points |
X | C | Vector name for X coordinates |
Y | C | Vector name for Y coordinates |
Draw polymarkers at the N points X,Y in the current Normalisation transformation. The PMARKER attributes can be changed with the command SET.
Example:
This command doesn't take into account OPTIONS LOGY or LOGX, use GRAPH instead.
/GRAPHICS/PRIMITIVES/3DPMARKER n x y z |
---|
N | I | Number of points |
X | C | Vector name for X coordinates |
Y | C | Vector name for Y coordinates |
Z | C | Vector name for Z coordinates |
Draw a polymarker at the N points X,Y,Z in the current Normalisation transformation. The 3DPMARKER attributes can be changed with the command SET.
Example:
/GRAPHICS/PRIMITIVES/BOX x1 x2 y1 y2 |
---|
X1 | R | X coordinate of first corner |
X2 | R | X coordinate of second corner |
Y1 | R | Y coordinate of first corner |
Y2 | R | Y coordinate of second corner |
Draw and fill a box with the current fill area and line attributes. Use the current Normalisation transformation. This command it doesn't LOG scales. It is recommended to use DBOX instead. The BOX attributes can be changed with the command SET.
Example:
/GRAPHICS/PRIMITIVES/DBOX x1 x2 y1 y2 |
---|
X1 | R | X first coordinate |
X2 | R | X second coordinate |
Y1 | R | Y first coordinate |
Y2 | R | Y second coordinate |
Draw and fill a box with the current fill area and line attributes. Use the current Normalisation transformation taking care of logarithmic scales. The BOX attributes can be changed with the command SET.
Example:
/GRAPHICS/PRIMITIVES/FBOX x1 x2 y1 y2 x3 x4 y3 y4 |
---|
X1 | R | X coord of first corner of ext box |
X2 | R | X coord of second corner of ext box |
Y1 | R | Y coord of first corner of ext box |
Y2 | R | Y coord of second corner of ext box |
X3 | R | X coord of first corner of int box |
X4 | R | X coord of second corner of int box |
Y3 | R | Y coord of first corner of int box |
Y4 | R | Y coord of second corner of int box |
Draw and fill a frame (2 nested boxes) with the current fill area and line attributes. Use the current Normalisation transformation. The FBOX attributes can be changed with the command SET.
Example:
/GRAPHICS/PRIMITIVES/ARROW x1 x2 y1 y2 [ size ] |
---|
X1 | R | X coordinate of start point |
X2 | R | X coordinate of end point |
Y1 | R | Y coordinate of start point |
Y2 | R | Y coordinate of end point |
SIZE | R | Arrow size D=0.4 |
Draw an arrow Use the current Normalisation transformation. The ARROW
attributes can be changed with the command SET. ARROW and LINE attributes
are the same.
Example:
/GRAPHICS/PRIMITIVES/HELIX [ x1 y1 x2 y2 r wi phi ] |
---|
X1 | R | X coordinate of the begin of helix D=0. |
Y1 | R | Y coordinate of the begin of helix D=0. |
X2 | R | X coordinate of the end of helix D=10. |
Y2 | R | Y coordinate of the end of helix D=10. |
R | R | Radius of helix D=.3 |
WI | R | Number of turns D=1. |
PHI | R | Projection angle D=15. |
Draw an helix with the current line attributes. Use the current Normalisation transformation. Feynman graph: gluon phi = 30, photon phi = 0.
Example:
/GRAPHICS/PRIMITIVES/ARCHELIX [ x1 y1 x2 y2 r wi phi rl ] |
---|
X1 | R | X coordinate of the begin of helix D=0. |
Y1 | R | Y coordinate of the begin of helix D=0. |
X2 | R | X coordinate of the end of helix D=10. |
Y2 | R | Y coordinate of the end of helix D=10. |
R | R | Radius of helix D=.3 |
WI | R | Number of turns D=1. |
PHI | R | Projection angle D=30. |
RL | R | Radius of loop D=15. |
Draw an archelix with the current line attributes. Use the current Normalisation transformation. Feynman graph: gluon phi = 30, photon phi = 0.
Example:
/GRAPHICS/PRIMITIVES/ARLINE [ x1 y1 x2 y2 h ] |
---|
X1 | R | X coordinate of the begin D=0. |
Y1 | R | Y coordinate of the begin D=0. |
X2 | R | X coordinate of the end D=10. |
Y2 | R | Y coordinate of the end D=10. |
H | R | arrow size D=.5 |
Draw a line with arrow in middle (fermion line) with the current line and fill area attributes. Use the current Normalisation transformation.
Example:
/GRAPHICS/PRIMITIVES/FPOINT [ x y r ] |
---|
X | R | X D=0. |
Y | R | Y D=0. |
R | R | Radius D=.5 |
Draw a filled point (vertex) with the current fill area attributes. Use the current Normalisation transformation.
Example:
/GRAPHICS/PRIMITIVES/AXIS x0 x1 y0 y1 wmin wmax ndiv [ chopt ] |
---|
X0 | R | X axis origin in WC |
X1 | R | X end axis in WC |
Y0 | R | Y axis origin in WC |
Y1 | R | Y end axis in WC |
WMIN | R | Lowest value for labels |
WMAX | R | Highest value for labels |
NDIV | I | Number of divisions D=510 |
CHOPT | C | Options D=' ' Minus |
CHOPT:
'' '' | Draw an axis with default values. |
'G' | Logarithmic scale, default is linear. |
'B' | Blank axis. Useful to superpose axis. |
'U' | Unlabeled axis, default is labeled. |
'+' | Tick marks are drawn on Positive side. (default) |
'-' | Tick marks are drawn on the negative side. |
'=' | Tick marks are drawn on Equal side |
'P' | Labels are drawn Parallel to the axis |
'O' | Labels are drawn Orthogonal to the axis (Top to Down). |
'0' | Labels are drawn Orthogonal to the axis (Down to Top). |
'R' | labels are Right adjusted on tick mark. |
'L' | labels are Left adjusted on tick mark. |
'C' | labels are Centered on tick mark. |
'M' | In the Middle of the divisions. |
'Y' | Direction of labels DOWN . Default is RIGHT |
'.' | Dot obligatory |
'T' | Alphanumeric labels . |
'S' | Tick marks Size |
'H' | Labels Height |
'D' | Distance labels-axis |
'N' | No bining optimisation |
'I' | Integer labeling |
Draw an axis in the current Normalisation transformation.
N1, N2, N3 = Number of 1st, 2nd, 3rd divisions respectively, eg:.
Orientation of tick marks on axis: Tick marks are normally drawn on the
positive side of the axis.However, if X0=X1, then Negative .
Position of labels on axis: Labels are normally drawn on side opposite to
tick marks.However:
Orientation of labels on axis: Labels are normally drawn parallel to the
axis. However:
Position of labels on tick marks: Labels are centered on tick marks.
However , if X0=X1, then they are right adjusted.
Direction of labels: Default is RIGHT
Format of labels: Blank characters are stripped, and then the label is
correctly aligned. The dot,if last character of the string, is also
stripped, unless
In the following, we have some parameters, like tick marks length and
characters height (in percentage of the length of the axis).The default
values are as follows:
Type of labels: Labels are normally numeric . However, alphanumeric labels
can be drawn (see command LABEL).
Intrinsic parameters: These values can be changed with the command SET. The
default value is used unless the corresponding option is selected by CHOPT:
Axis bining optimisation: By default the axis bining is optimized .
Example:
Note that the command TIC provides a simpler interface to redraw axis on the current plot. Moreover it use the NDVX, NDVY etc .. attributes.
/GRAPHICS/PRIMITIVES/ARC x1 y1 r1 [ r2 phimin phimax ] |
---|
X1 | R | X coordinate of centre |
Y1 | R | Y coordinate of centre |
R1 | R | Inner radius |
R2 | R | Outer radius D=-1. |
PHIMIN | R | Minimum angle D=0. |
PHIMAX | R | Maximum angle D=360. |
Draw an arc of circle with the current fill area and line attributes. Use the current Normalisation transformation. If R1 is not equal to R2 the area between the two arcs of radius R1 and R2 is filled according to the current fill area attributes. The border is never drawn unless the interior style is hollow or the command SET BORD 1 has been called. If R1 is equal to R2 a polyline is drawn.
Example:
/GRAPHICS/PRIMITIVES/ELLIPSE xc yc rx [ ry phimin phimax theta ] |
---|
XC | R | X coord of centre |
YC | R | Y coord of centre |
RX | R | X radius of ellipse |
RY | R | Y radius of ellipse D=0. |
PHIMIN | R | Minimum angle (degrees) D=0. |
PHIMAX | R | Maximum angle (degrees) D=360. |
THETA | R | Rotation of axes of (degrees) D=0. |
Draws an ellipse in the current normalization transformation. The parameter THETA rotates the ellipse major and minor axes (RX and RY) relative to the coordinates by the given angle. The a filled area is used, so the ellipse may be filled by changing the appropriate SET parameters.
Example:
/GRAPHICS/PRIMITIVES/PIE x0 y0 radius n values [ chopt iao ias iac ] |
---|
X0 | R | X coordinate of centre of the pie |
Y0 | R | Y coordinate of centre of the pie |
RADIUS | R | Radius of the pie chart |
N | I | Number of values |
VALUES | C | Vector name for N values |
CHOPT | C | Options D=' ' |
IAO | C | Name of vector with offsets D=' ' |
IAS | C | Name of vector with styles D=' ' |
IAC | C | Name of vector with colors D=' ' |
CHOPT:
'' '' | Draw a Pie Chart with default values. |
'C' | Colours array is present. |
'L' | Alphanumeric labels are required. |
'O' | Offset array is present. |
'N' | The label of each slice will be the corresponding numeric value in array VALUES. |
'P' | The label of each slice will be in expressed in percentage. |
'S' | Style array is present. |
'H' | Force the labels size to be the current character height. Without this option the labels size is computed automatically. |
'R' | Draw the labels aligned on the radius of each slice. |
Draw a pie chart in the current Normalisation transformation.
Example:
/GRAPHICS/PRIMITIVES/TEXT x y text size [ angle chopt ] |
---|
X | R | X coordinate |
Y | R | Y coordinate |
TEXT | C | Text to be drawn |
SIZE | R | Text size D=0.3 |
ANGLE | R | Comment angle D=0 |
CHOPT | C | Justification option D='L' |
CHOPT:
'L' | Text is Left justified. |
'C' | Text is Centered. |
'R' | Text is Right justified. |
Draw text at position X,Y in the current normalisation transformation using the software font IGTEXT. SIZE is always given in centimeters. A boldface effect can be obtained using the parameters PASS and CSHI of the command SET. The text color can be changed by SET TXCI.
Example:
/GRAPHICS/PRIMITIVES/ITX x y text |
---|
X | R | X coordinate |
Y | R | Y coordinate |
TEXT | C | Text to be drawn |
Draw text at position X,Y in the current Normalisation transformation, using the current font parameters. The font and the precision can be changed by SET TXFP. The character size can be changed by SET CHHE. The text color can be changed by SET TXCI. The text orientation can be changed with SET TXAL. The text angle can be changed by SET TANG.
Example:
/GRAPHICS/PRIMITIVES/LABELS labnum nlabs chlabs |
---|
LABNUM | I | Label identifier D=1 R=1:9 |
NLABS | I | Number of labels D=0 R=0:50 |
CHLABS | C | List of labels D=' ' Vararg |
Define a list of alphanumeric labels to be used by subsequent commands such as PIE and AXIS. The position of the labels on the axis may be changed with SET NDVX (NDVY).
Example:
A full description of the possible alignments is given in the PAW manual (see NDVX in the index).
/GRAPHICS/PRIMITIVES/PAVE x1 x2 y1 y2 [ dz isbox isfram chopt ] |
---|
X1 | R | X bottom left corner of box |
X2 | R | X top right corner of box |
Y1 | R | Y bottom left corner of box |
Y2 | R | Y top right corner of box |
DZ | R | Box width D=0.4 |
ISBOX | I | Box style D=0 |
ISFRAM | I | Frame style D=5 |
CHOPT | C | Option D='TR' |
CHOPT:
'TR' | Top and Right frame are drawn |
'TL' | Top and Left frame |
'BR' | Bottom and Right frame |
'BL' | Bottom and Left frame |
'L' | Left frame only |
'R' | Right frame only |
'T-' | Top frame only pointing left |
'B-' | Bottom frame only pointing left |
'S' | Shadow mode |
'K' | Key mode |
Draw a paving-block (box with 3D effect). ISBOX (ISFRAM) may be 1000+ICOLOR where ICOLOR is the color index of the box (frame), otherwise the style index. If ISBOX (ISFRAM) = 0, only the box contour is drawn with the current polyline attributes.
Example:
/GRAPHICS/PRIMITIVES/HIST n x y [ chopt ] |
---|
N | I | Number of values |
X | C | Vector name for X coordinates |
Y | C | Vector name for Y coordinates |
CHOPT | C | Options D='AHW' |
CHOPT:
'A' | X and Y axes are drawn (default). |
'H' | An histogram is drawn as a contour (default). |
'W' | The Window/Viewport parameters are automatically computed from the X and Y values (default). |
'R' | The histogram is Rotated, i.e. the values in X are used for the ordinate and the values in Y for the abscissa (default is the contrary). If option R is selected (and option 'N' is not selected), the user must give: 2 values for Y (Y(1)=YMIN and Y(2)=YMAX) N values for X, one for each bin. Otherwise the user must give: N values for Y, one for each bin. 2 values for X (X(1)=XMIN and X(2)=XMAX) If option 'N' is selected see below. |
'N' | Non equidistant bins (default is equidistant). The arrays X and Y must be dimensioned as follows: If option R is not selected (default) then give: (N+1) values for X (limits of bins). N values for Y, one for each bin. Otherwise give: (N+1) values for Y (limits of bins). N values for X, one for each bin. |
'F' | The area delimited by the histogram is filled according to the fill area interior style and the fill area style index or colour index. Contour is not drawn unless CHOPT='H' is also selected. |
'C' | A Smooth curve is drawn across points at the centre of each bin of the histogram. |
'L' | A straight Line is drawn across points at the centre of each bin of the histogram. |
'*' | A star is plotted at the center of each bin of the histogram. |
'P' | Idem as '*' but with the current marker. |
'B' | A Bar chart with equidistant bins is drawn as fill areas. (Contours are drawn). The bar origin and the bar width can be controlled by the routine SET using the options BARO and BARW respectively. |
Draw an histogram defined by arrays X and Y. The number of components needed in vectors X and/or in Y may be dependent upon the value of CHOPT (see options 'R' and 'N'). By default if the option 'N' is not given, X(1) contains the X minimum value and X(2) the X maximum value (the others are ignored as the example show it). To set Log scales in X and/or Y, use OPT LOGX/LOGY. Note that when an option is specified, it is also necessary to specify the options 'W' or 'HW' in order to start a new zone or/and draw the axes.
Example
/GRAPHICS/PRIMITIVES/GRAPH n x y [ chopt ] |
---|
N | I | Number of values |
X | C | Vector name for X coordinates |
Y | C | Vector name for Y coordinates |
CHOPT | C | Options D='ALW' |
CHOPT:
'A' | X and Y axes are drawn (default). |
'L' | Every point is connected with a straight line. (default) |
'W' | The Window/Viewport parameters are automatically computed from the X and Y values (default). |
'C' | The values in Y are plotted in the form of a smooth curve. A Spline approximation algorithm is used. |
'F' | A fill area is drawn. If the option 'CF' is used the contour of the fill area is smooth. The border of the fill area is drawn if the command SET BORD 1 has been typed. The fill area type may be changed via the SET parameters FASI and FASI |
'R' | The graph is Rotated, i.e. the values in X are used for the ordinate and the values in Y for the abscissa (default is the contrary). |
'B' | A Bar chart with equidistant bins is drawn as fill areas. (Contours are drawn). The bar origin and the bar width can be controlled by the routine SET using the options BARO and BARW respectively. |
'*' | A star is plotted at every point. |
'P' | A marker is plotted at every point, according to current marker type and polymarker colour index. |
Draw a curve through a set of points. X and Y are real vectors. To set Log scales in X and/or Y, use OPT LOGX/LOGY. Note that when an option is specified, it is also necessary to specify the options 'AW' or 'ALW' in order to start a new zone or/and draw the axes.
Example