DEFINE PLOT
- Last UpdatedFeb 01, 2023
- 4 minute read
Purpose
Define options to be used in producing plots.
Syntax
|
DEFINE ( PLOT ) ( /BORDER ) < $N > < /ON > |
Description
Graphical output can be directed to a plot file instead of the graphics screen. The DEFINE PLOT command allows the user some flexibility in the layout of the drawing that is produced.
DEFINE PLOT /BORDER $N or /OFF
A border is drawn around the drawing at the given distance.
Examples
|
DEFINE PLOT /BORDER /ON |
DEFINE PLOT /BOX /ON or /OFF
Turns on/off the drawing of the view/window border. If BOX is set to OFF, then no grid or grid marks will be drawn either.
Examples
|
DEFINE PLOT /BOX /ON |
DEFINE PLOT /DEFAULT
Set all the plotting PLOT parameters back to their default values.
DEFINE PLOT /FOB or /FOS
Side regions. These curves are truncated at the intersection of the FOB and FOS. This only works for orthogonal curves in their associated view.
|
/ON |
indicates that this feature is turned on that means, the curves are truncated. |
|
/OFF |
indicates that this feature is turned off that means, the curves are not truncated. This is the default. Note this is purely for drawing purposes only and does not affect the curves themselves. |
DEFINE PLOT /FRAMES
Details of the frame table are included on the drawing. The Frame Table must exist within the design.
DEFINE PLOT /GRID
Set the type of grid and marks that means, numbering on axis, that appears on a plot.
Command Qualifiers
|
/STANDARD |
Select default system defined grid. |
|
/STORED |
Grid based on stored curves which are currently SWITCHed on. |
|
/FILE=$F |
User defined grid defined in a file. |
|
/TICKS |
Show only the grid's tick marks NOT the grid lines. |
|
/MARKS |
Show the scale numbering on the axis. |
Examples
|
DEFINE PLOT /GRID /STORED /TICKS |
DEFINE PLOT /ORIGIN $N $N
This command sets the origin of any subsequent view / window being plotted. The numbers supplied are used as an offset for all subsequent drawing operations. Thus, several views can be created in the same plot file by redefining the origin before selecting views.
Examples
|
DEFINE PLOT /ORIGIN 0 -10 |
DEFINE PLOT /PARTICULARS
The General Particulars of the ship are included on the drawing.
DEFINE PLOT /PEN $N
Set the pen number to be used in subsequent drawing operations.
Note that different plotters will have different pen number/colour conventions therefore NO automatic pen numbering is assumed.
Examples
|
DEFINE PLOT/PEN 2 |
DEFINE PLOT /PROPERTIES $W
The hydrostatic properties of the hull form are included on the drawing. The specified Sectional Area Curve ( See GET SAC ) must exist.
DEFINE PLOT /REFLECTION
Reflect the next selected view/window in the X, Y, or Z axes.
Examples
|
DEFINE PLOT /REFLECTION /X /ON |
DEFINE PLOT /ROTATION
Rotate the next selected view/window through 90 degrees in a clockwise direction.
Examples
|
DEFINE PLOT /ROTATION /ON |
DEFINE PLOT /SCALE $N < $N >
This command sets the scale of drawings. If a single value is supplied then this is treated as the scale. If two numbers are supplied then the first number is divided by the second to obtain the scale.
Examples
|
DEFINE PLOT /SCALE 0.01 |
DEFINE PLOT /SHOW
Show the current settings of the plotting parameters.
DEFINE PLOT /TITLE
The user can define the contents of the plot title box by specifying, via a file, the content of each line.
The file consists of an unspecified number of lines of pairs of character strings. The first string of each pair will be placed on the left of the title box, and the second string on the right. The next pair of strings will be placed on the next line in the title box and so forth.
If a string is to contain spaces then it must be enclosed in quotes.
There are a number of key words which, if used, will not appear in the plot title but will be replaced by associated values.
These key words are as follows:
|
$SHIPNAME |
Ship name |
|
$DATA STORE |
Design name |
|
$TITLE |
Plot title from DEFINE PLOT/TITLE $W |
|
$CUSTOMER |
Customer name from DEFINE HEADER/CUSTOMER |
|
$PROJECT |
Project name from DEFINE HEADER/PROJECT |
|
$USER |
User name as from DEFINE HEADER/USER |
|
$DATE |
Today's date in the format DD-MM-YY |
|
$TIME |
Current time in the format HH-MM-SS |
|
$SCALE1 |
Scale factor of plot as defined by DEFINE PLOT/SCALE in the format m/n. for example, 1/100 for a scale of 0.01 |
|
$SCALE2 |
Scale line as in the default plot title. |
The defined plot title box is stored when the design is saved.
Command Qualifiers
|
/SHOW |
Displays the layout of the title box on the graphics screen. |
|
/STANDARD |
Sets plot title box layout to default values. |
Examples
|
DEFINE PLOT /TITLE linesplan |
DEFINE PLOT /TOL=$N
Curves are drawn as connected series of straight line segments. This command sets the tolerance used when breaking down the curve into these segments, the lower the tolerance the more segments that are generated that means, the better the approximation to the actual curve.
A tolerance of 0.0001 is sufficient to obtain a good plot for normal purposes, but the scale of the plot should also be taken into consideration. Large tolerances will result in the plotted curves exhibiting straight line segments instead of curves.
Examples
|
DEFINE PLOT /TOL= 0.0001 |