next up previous contents
Next: set_plot2d Up: Graphics Previous: Constructor   Contents

Subsections

graph

Syntax

short graph(const string & title_graph, const string & label, const short x,
            const short y, const short x_start, const short y_start,
            const short y_end);

Description

Create a graphic from a data file (specified by constructor). title_graph and label are used to provide the graphic title and label names in the legend. x refers to the index in the ``vector$<$Matrix$>$ & data'' (in class IO_Matrix_file) corresponding to the x axis (ex: time), while y refers to the index in the ``vector$<$Matrix$>$ & data'' corresponding to the y axis (ex: joints positions). x_start, y_start and y_end specify which rows of data to use.

Return Value

Status, as a short int.
0 successful
X_Y_DATA_NO_MATCH
PROBLEM_FILE_READING



Richard Gourdeau 2004-07-06