Utility Functions : List of Utility Functions : stm_plot

stm_plot

Function type: INTEGER

Description
Generates a plot file with the indicated parameters, such as plot size, output device, and so on. The plot parameters are the same for all the different plot types (statecharts, activity charts, or module charts).
The output is designated for a particular device (one of the output devices defined in Statemate). The destination of the plot output is specified by one of the parameters. If its destination is not specified, the plot is included as part of the output segment file.
Syntax
stm_plot (id, plot_file, width, height, with_labels, with_names, with_notes, device, date_position, title_position, title, do_rotate, with_file_header, actual_height)
Example
Consider a template that contains the following statements:

VARIABLE
 CHART ch_id;
INTEGER status;
FLOAT real_ht;
.
ch_id:= stm_r_ch (’XL25’, status);
stm_plot (ch_id, ’/sam/p_xl25’, 5.0, 7.0, true, true,
false,         ’POSTSCRIPT’, stm_plt_top,
’SystemXL25’, true, true         , real_ht);
.