Robotran C Documentation
auto_plot.h
Go to the documentation of this file.
1 
7 #ifdef SDL
8 
9 #ifndef _AUTO_PLOT_H_
10 #define _AUTO_PLOT_H_
11 
14 typedef struct AutoPlot
15 {
16  int nb;
17  int max_nb;
18 
19  char **label_curves;
20 
21  double *y_curves;
22 
23  int nb_new_curves;
24 
25 } AutoPlot;
26 
27 // functions prototypes
28 AutoPlot* init_auto_plot(int max_nb);
29 void free_auto_plot(AutoPlot *auto_plot);
30 void update_auto_plot(AutoPlot *auto_plot, double value, const char* label);
31 int index_plot_string(AutoPlot *auto_plot, const char* label);
32 
33 #endif
34 #endif
auto_plot.h
functions used to automatically update the user curves plotted
useful_functions.h
free_char_tab
void free_char_tab(char **mat)
release memory for a matrix of chars
Definition: useful_functions.c:217
get_char_tab
char ** get_char_tab(int nb_r, int nb_c)
create (with memory allocation) a [nb_r times nb_c] matrix of chars WARNING: only the first dimension...
Definition: useful_functions.c:170