28char des_evolution_C[] =
"$Header: /cvsroot/Lorene/C++/Source/Non_class_members/Graphics/des_evolution.C,v 1.5 2014/10/13 08:53:22 j_novak Exp $" ;
64void des_evol(
const Evolution<double>& uu,
const char* nomy,
65 const char* title,
int ngraph,
const char* device,
66 bool closeit,
bool show_time,
const char* nomx) {
68 int jmin = uu.j_min() ;
69 int jmax = uu.j_max() ;
71 des_evol(uu, jmin, jmax, nomy, title, ngraph, device, closeit,
79void des_evol(
const Evolution<double>& uu,
int j_min,
int j_max,
80 const char* nomy,
const char* title,
int ngraph,
const char* device,
81 bool closeit,
bool show_time,
const char* nomx) {
85 if ((device[0] ==
'/') && (device[1] ==
'n')) return ;
88 int npt = j_max - j_min + 1 ;
90 float* uutab =
new float[npt] ;
91 float* xtab =
new float[npt] ;
93 for (
int j=j_min; j<=j_max; j++) {
94 uutab[j-j_min] = float(uu[j]) ;
98 for (
int j=j_min; j<=j_max; j++) {
99 xtab[j-j_min] = float(uu.get_time(j)) ;
103 for (
int j=j_min; j<=j_max; j++) {
104 xtab[j-j_min] = float(j) ;
108 if (nomx == 0x0) nomx = (show_time) ?
"t" :
"j" ;
110 if (nomy == 0x0) nomy =
"" ;
112 if (title == 0x0) title =
"" ;
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)
Basic routine for drawing multiple profiles with uniform x sampling.
void des_evol(const Evolution< double > &uu, const char *nomy=0x0, const char *title=0x0, int ngraph=0, const char *device=0x0, bool closeit=false, bool show_time=true, const char *nomx=0x0)
Plots the variation of some quantity against time.