Robotran C Documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Functions | Variables
set_plot.c File Reference
#include "set_plot.h"
#include "auto_plot.h"

Functions

void reset_flag_plot ()
 reset the flag_plot to 0. Useful when running several simulation in a row with different save2file settings. More...
 
AutoPlotinit_set_plot (int max_nb_curves)
 initialize the static auto_plot structure More...
 
void free_set_plot ()
 release memory of auto_plot More...
 
void set_plot (double value, char *label)
 function called by the user to plot a curve More...
 

Variables

static AutoPlotauto_plot
 
int flag_plot = 0
 1 if init_set_plot was called, 0 otherwise More...
 

Function Documentation

◆ free_set_plot()

void free_set_plot ( )

release memory of auto_plot

◆ init_set_plot()

AutoPlot* init_set_plot ( int  max_nb_curves)

initialize the static auto_plot structure

Parameters
[in]max_nb_curvesmaximum number of curves to display

◆ reset_flag_plot()

void reset_flag_plot ( )

reset the flag_plot to 0. Useful when running several simulation in a row with different save2file settings.

◆ set_plot()

void set_plot ( double  value,
char *  label 
)

function called by the user to plot a curve

Parameters
[in]valuecurrent value of the curve
[in]labellabel of the curve

Variable Documentation

◆ auto_plot

AutoPlot* auto_plot
static

◆ flag_plot

int flag_plot = 0

1 if init_set_plot was called, 0 otherwise