Sample Program : Program Description : Drawing the Names of the Elements

Drawing the Names of the Elements
void draw_string (s, color, x1, y1)

This function draws the element’s name.

char *s;

 

This is the name of the activity.

stm_color color;
 

This is the color to be used for the activity name.

stm_coordinate x1, y1;

 

This is the coordinate location for placing the activity name.

{
printf("\n string %s at %f, %f in color %d\n",
s, x1, y1, color);
}

 

The information is printed in a textual report. However, you can write a program routine to use this information in a plot.