Options:
Options:
Options:
read(ioinp,*)NX,NY
do i = 1, NX
read(ioinp,*) (array(i,j),j=1,NY)
end do
This array can then be plotted using DPLOT command. The array(1,1) element will appear at the coordinate system origin, in the lower left corner of the coordinate system. When formatted input is used (DPLOT_FORMAT=ON), a text file contains any number of lines in the form:
I, J, number_1 number_2, ..., number_DPLOT_COLUMN, ...
These lines are read and the Density array is filled in on the fly as specified by the I and J indices and the value in column DPLOT_COLUMN. All other numbers in a line are ignored. The elements of the Density array not assigned explicitly are set to DPLOT_FILL.
With the formatted input, when DPLOT_SYMMETRIZE = ON, the array is also symmetrized, array(j,i)=array(i,j) for each line that is read in.
If the DPLOT_ORIENTATION is YX, instead of XY, the X and Y axes are swapped during reading in the data.
Options:
read(ioinp,*)NX,NY
do i = 1, NX
read(ioinp,*) (array(i,j),j=1,NY)
end do
When formatted output is used (DPLOT_FORMAT=ON), the text file will contain a number of lines in the form:
I, J, ARRAY
If the DPLOT_ORIENTATION is YX, instead of XY, the X and Y axes are swapped during writing out the data.
Options:
When plotting a PDB structure, the PERSPECTIVE, EYE_TO_SCR, and SCR_TO_TOP have to be set up at the time of drawing with the BALL_STICK command to properly scale the plot.
PAPER_WINDOW defines the position and orientation of a window on the paper. The format is (XMIN YMIN XMAX YMAX ORIENTATION). The origin for rotation is the origin of the Base PostScript coordinate system which is in the lower left corner of a paper. Units are cm and degrees. This window on the paper will contain the data from WORLD_WINDOW. Any data points outside this area will be clipped. If orientation of the window is 90 then the plot will be printed in the landscape mode.
In POSITION, if the first element is different from 0 then the PAPER_WINDOW is defined automatically using the position codes (1-37) irrespective of the value of PAPER_WINDOW. The following convention is used:
If the second element is 0, the aspect ratio between X and Y is set to 1.3333 (horizontal rectangle), if it is 1 the aspect ratio is 1.0 (square), if it is 2 the aspect ratio is 3.9 (very extended horizontal rectangle).
WORLD_WINDOW defines the coordinate axes in the World of the data to be plotted. These ranges will correspond to the PAPER_WINDOW window. However, if any of the four values is -999 (by default this is the case), the program will try to calculate that value from the data read in by the last data input command (READ_TABLE, READ_DPLOT, or READ_PDB).
WORLD_FRACTION defines the fraction of the number of the central points that are used to get the WORLD_WINDOW when calculated automatically. By default, this is 1. This is useful when there are a small number of outliers that you do not want to plot because the large scale would observe the relationship between the remaining points.
NO_XY_SCOLUMNS defines the numbers of selected columns in the Table array that are to be examined for the maximal and minimal values of X and Y, respectively, when calculating the real World extent of the graph. If any of the numbers is 0 then NO_XY_SCOLUMNS and XY_SCOLUMNS are set to reflect the values in XY_COLUMNS. Use this variable when automatic boundaries are required for multi-line plots and it is not clear which data vector should be used for bounds setup.
In multi-plot plots, do not forget that undefined NO_XY_SCOLUMNS
and
XY_SCOLUMNS are set automatically in the first WORLD
command and will stay defined until reset with SET or RESET
commands.
XY_SCOLUMNS defines the columns for the range searching (see also above). The first NO_XY_SCOLUMNS(1) integers define the X-columns in the Plotting array for X range and the last NO_XY_SCOLUMNS(2) integers are the Y columns for the Y range.
If A4_WINDOW_MARGIN is ON a line around the Bounding Box of the Base PostScript coordinate system is drawn, A4 paper is bounded.
Options:
TICK_FONT sets the font size for labeling the ticks.
X_LABEL_STYLE and Y_LABEL_STYLE select the labelling regime:
X_TICK and Y_TICK define, in World coordinates, the position of the first tick on the X,Y-axes, the spacing between the ticks, and the rightmost tick position.
X_LABEL_SHIFT and Y_LABEL_SHIFT shift the X/Y-axes labels. Shifts are specified in the Plot coordinates.
X_TICK_LABEL and Y_TICK_LABEL set the index of the X/Y-axes ticks that are numbered first, and also every which tick from the first one on is numbered.
X_TICK_DECIMALS and Y_TICK_DECIMALS set the number of decimal places used in the automatic calculation of the X/Y-axes tick labels. If 0, only a dot will appear after an integer. If only an integer will appear.
If Y_SCALE is RIGHT it will plot the Y-axis ticks and their numbers on the right side of the plot. Default is LEFT.
CAPTION_XLEFT and CAPTION_XRIGHT are returned by AXIS2D for later use by the CAPTION command in placing the captions next to the Y-axis. If these automatic values are not good you can correct them manually (rarely needed).
X_AXIS_FACTOR is used to scale the X-label ticks before the label is written out. If EXPONENT is ON then `En' is added to the tick label where . If EXPONENT is OFF then `En' is not added and could be included in the axis label with the CAPTION CAPTION_POSITION = 4 or 5 command.
Options:
PLOT2D_SYMBOL_TYPE defines the symbol to be plotted for every point. If 0 nothing is plotted. If set to , then the centered integer indices are plotted for each point.
PLOT2D_LINE_TYPE defines a line type to be plotted between successive points in the Table array. If 0 no line is plotted -- used for scatter plots.
XY_COLUMNS selects X and Y columns in the Table array. If any of the two columns is not defined, it is substituted by a vector .
POINT_FONT selects the font for the point symbol in the case where
PLOT2D_SYMBOL_TYPE = .
If LABEL_COLUMN is a string column, then the labels in that column are drawn for each point. If LABEL_LOCATION is 1, the label is centered on the point, if 2 the label is to the right of the point. LABEL_FONT is the font type for the labels.
If COLOR_COLUMN is defined, it is used to color the symbols from red, yellow, green to blue in the range from COLOR_RANGE[1] to [2]. The HSB color convention is used (hue from 0.0 to 0.5). If COLOR_STYLE is GRAY, gradual coloring is done; if BLACK, the values within the range are of color 0 (red), and those outside the range are color 0.5 (blue).
Options:
PLOT2D_LINE_TYPE defines the line type to be used for horizontal energy levels.
XY_COLUMNS selects the Y column in the Table array that specifies energy levels. Note that Y column is plotted, not X column. This is to be consistent with the WORLD command.
BAR_XSHIFT specifies the starting X of the energy levels in the World coordinates.
BAR_WIDTH defines a relative width of the bars in the World coordinates.
Options:
BAR_GRAYNESS defines the grayness of the bar on the scale from 0.0 (black) to 1.0 (white).
BAR_WIDTH defines a relative width of the bars where 1.0 would make two neighbouring bars touch each other. If less than 1 there is empty space between bars.
BAR_LINE_TYPE defines a linetype used to border the bar in the shaped way. If linetype is 0 bordering is not done.
In NO_XY_SCOLUMNS, the first element has to be 1 because there can only be one X-column. The second element is the number of Y-columns. It is 1 for normal histograms and more than 1 for a histogram where bars are stacked on top of each other to get a stacked bar at a single X value.
XY_SCOLUMNS specifies X-column and Y-columns in the Table array for the histogram. The dimension of XY_SCOLUMNS has to be NO_XY_SCOLUMNS(1) + NO_XY_SCOLUMNS(2). The default values for NO_XY_SCOLUMNS and XY_SCOLUMNS (when the inputs are 0) are obtained from XY_COLUMNS. If the X-column is not defined, it is substituted by a vector 1,2,...,N. The X coordinate of the bar specifies its mid-point (not the left edge, for example). X-interval corresponding to one bar is always calculated automatically as the difference between the first and last X divided by the number of bars less 1. This works well when you have equal spacing between the points on X axis. If not you can always correct the bar width using BAR_WIDTH.
XY_COLUMNS is used only when default values for XY_SCOLUMNS are required.
BAR_XSHIFT shifts the bars for this amount along the X-axis. This is to allow the plotting of several bars at the same X without modifying the data files.
Options:
If BAR_LEGEND is ON it will plot a gray scale code to the right of the plot.
BAR_LEGEND_PLACES sets the number of pre- and post-decimal point places for the labelling of the bar legend.
DPLOT_GRAYNESS defines the grayness of the smallest and largest value to be plotted, respectively. If you want small to be white, set the first element larger than the second one.
DPLOT_LINE_TYPE defines the line type for the mesh plotted on the density plot.
DPLOT_PART selects the part of the Density array to be plotted.
DPLOT_BOUNDS sets the real World bounds on the values of the Density array corresponding to the DPLOT_GRAYNESS interval.
DPLOT_STYLE selects whether the DPLOT_BOUNDS range is to be colored with various degrees of gray (GRAY), or every cell within the range is to be coloured by the first bound of DPLOT_GRAYNESS and all other cells by the second bound of DPLOT_GRAYNESS.
If NUMBER_DENSITY_PLOT is set to ON the number is plotted for each cell instead of the gray rectangle. This number shows the height of the function. You can use the same mechanism as for GRAY to show only numbers in certain range.
NUMBER_PLACES sets the number of spaces before and after the decimal point when NUMBER_DENSITY_PLOT = ON.
POINT_FONT sets the font type for the numbers when NUMBER_DENSITY_PLOT = ON.
PRINT_FONT sets the font type for the numbers for the bar legend.
PRINT_DXY will offset the X and Y of the number printed in each cell (in World coordinates).
Options:
The sequence of CAPTION commands for the same type of a caption is important. The captions will be placed around the graph starting with the position closest to the graph. Therefore, a subtitle should be done before the title, but the X-title should be done before the X-subtitle. CAPTION_XLEFT is the X-position in the Plot coordinates of the leftmost part of the Y-captions (by default -0.15). AXES2D returns the precise values for CAPTION_XLEFT, so use CAPTION after AXES2D without specifying CAPTION_XLEFT. CAPTION_XRIGHT is a similar variable that is used when Y_SCALE = RIGHT.
The following positions with respect to the graph are available:
Options:
Options:
This command is useful in combination with the SELECT_DATA command in order to produce many different captions in one set of plots, from one data file.
Options:
For all text printing, including the one submitted to the CAPTION command, the following conventions hold:
Multi-level embedding is allowed.
Special characters can be printed by using the PostScript character codes.
For example, to print the character, use `
305'.
ARROW_POSITION = | X1 Y1 X2 Y2 |
ARROW_SHAPE = | tail thickness, arrow width, arrow length |
Options:
TRF_PARAMETERS sets any parameters that may be required for the transformation.
TRF_TYPE selects the type of transformation:
YMIN is the smallest value in all selected columns of the Table array or the smallest value in the Density array, as appropriate. CUMULATIVE is not available for transformation of the Density array.
Any transformation that is undefined (for example, a logarithm of a non-positive argument, or a division by zero) is assigned a value TRF_UNDEFINED.
Options:
XY_COLUMNS selects the X and Y columns. If Y column exists before the call, this routine also calculates the average and standard deviaton of the Y-values in each bin. These are returned in the two columns after the currently existing columns.
Options:
Options:
Options:
Options:
Options:
Options:
In the spline method, NO_SPLINE_POINTS is the number of points to be calculated by spline smoothing. It is returned in PLOT_POINTS. Columns X and Y are selected by XY_COLUMNS; note the difference with the running average method.
In the running average method, the weight of point is proportional to where is the central point and HALF_WINDOW is the number of points left and right of point that are in the window. Only the columns specified by NO_XY_SCOLUMNS and XY_SCOLUMNS are smoothed; note the difference with the spline method. PLOT_POINTS is not changed.
Options:
BOND_COLOR sets the color of the current bonds. The coloring scheme is from PostScript: 0 for black and 1 for white; intermediate values select various shades of gray.
COVALENT_BOND defines the distance cuttoff between which the atom pair is recognized as bonded to each other. If any of the two values is undefined (i.e. -999), then the covalent bond exists when a distance between the two atoms is less than 0.55 times the sum of the two van der Waals radii and more than half of that value. The radii are obtained from the PDB atom names by first recognizing an extended atom type in the residue, and then looking into the radii library file for all atom types in all residue types. Hydrogen atoms are treated separetely -- they are just recognized as such directly and their radii assigned accordingly.
BOND_LINE sets the line type for drawing the current bonds. If the line type is negative than only the line of the type -BOND_LINE is drawn, not the polygon with caps.
BOND_WIDTH_FACTOR sets the bond width. If too large (approx 1), bond coordinates may be undefined.
BOND_TAPER is a factor that is multiplied by the delta Z of the bond and its width to increase the width of the nearer end, and decrease the width of the further end. It should be 0 or larger than 0.
Options:
Options:
The SEARCH_STRING specifies SEGMENT or SPHERE search; this determines the other possible arguments.
The SEGMENT search scanns only a single segment specified by the beginning and ending residue number (as found in the input atom file), SEGMENT_RANGE. The value of the residue number can be X, which implies the first or last residue, as appropriate. SELECTION_STEP is a step in the residue index used in scanning for the atoms. This is useful in labelling only every 5-th CA atom, for example.
The SPHERE search scanns only over those atoms that are closer than SPHERE_RADIUS to the SPHERE_CENTER atom, after the center atom was translated by (xtrans, ytrans, ztrans) specified in SLAB. If the first element of SPHERE_CENTER is INDEX then the second element is an atom index of the center atom; otherwise, the first and second element are the residue number (as in the input atom file) and the atom type, respectively. SLAB specifies the interval on Z-axis relative to Z of the translated central atom that imposes another condition on the selected atoms: . This is useful to make less crowded plots. Larger Z is on front, so dz1 specifes the plane that is further away than the dz2 plane. To get any atoms, .
The radii of the currently selected display set of atoms is set to RADIUS * RADIUS_FACTOR. If the final atom radii is 0, the atom is not drawn. If RADIUS is undefined (-999) then the van der Waals radius of that atom type is used.
ATOM_COLOR sets the color of the currently selected display set of atoms. The coloring scheme is from PostScript: 0 for black and 1 for white; intermediate values select various shades of gray.
ATOM_LINE sets the line type for drawing the currently selected display set of atoms.
Options: