60 #include "graphique.h" 61 #include "evolution.h" 68 const char* title,
int ngraph,
const char* device,
69 bool closeit,
bool show_time,
const char* nomx) {
71 int jmin = uu.
j_min() ;
72 int jmax = uu.
j_max() ;
74 des_evol(uu, jmin, jmax, nomy, title, ngraph, device, closeit,
83 const char* nomy,
const char* title,
int ngraph,
const char* device,
84 bool closeit,
bool show_time,
const char* nomx) {
88 if ((device[0] ==
'/') && (device[1] ==
'n')) return ;
91 int npt = j_max - j_min + 1 ;
93 float* uutab =
new float[npt] ;
94 float* xtab =
new float[npt] ;
96 for (
int j=j_min; j<=j_max; j++) {
97 uutab[j-j_min] = float(uu[j]) ;
101 for (
int j=j_min; j<=j_max; j++) {
102 xtab[j-j_min] = float(uu.
get_time(j)) ;
106 for (
int j=j_min; j<=j_max; j++) {
107 xtab[j-j_min] = float(j) ;
111 if (nomx == 0x0) nomx = (show_time) ?
"t" :
"j" ;
113 if (nomy == 0x0) nomy =
"" ;
115 if (title == 0x0) title =
"" ;
int j_min() const
Returns the smaller time step j stored in *this.
double get_time(int j) const
Returns the time t at time step j.
void des_evol(const Evolution< double > &uu, const char *nomy, const char *title, int ngraph, const char *device, bool closeit, bool show_time, const char *nomx)
Plots the variation of some quantity against time.
void des_profile_mult(const float *uutab, int nprof, int nx, float xmin, float xmax, const char *nomx, const char *nomy, const char *title, const int *line_style, int ngraph, bool closeit, const char *device=0x0, int nbound=0, float *xbound=0x0, bool logscale=false)
Basic routine for drawing multiple profiles with uniform x sampling.
int j_max() const
Returns the larger time step j stored in *this.