59 if (! aid && (rid ==
RIN ||rid ==
CHA))
61 i = cid / ((this_proj -> nspec+1) * 4);
62 this_curve -> axmax[aid] = (rid ==
RIN) ? this_proj -> rsparam[i][1]: this_proj -> csparam[5];
63 this_curve -> axmax[aid] += 1.0;
64 this_curve -> axmin[aid] = (rid ==
RIN) ? 2 : 1;
68 n = (rid ==
SPH && aid == 1) ? 1 : 0;
69 this_curve -> axmax[aid] = this_curve -> data[aid][n];
70 this_curve -> axmin[aid] = this_curve -> data[aid][n];
71 for ( i=n ; i < this_curve -> ndata ; i++ )
73 this_curve -> axmax[aid] =
max(this_curve -> axmax[aid], this_curve -> data[aid][i]);
74 this_curve -> axmin[aid] =
min(this_curve -> axmin[aid], this_curve -> data[aid][i]);
76 if (this_curve -> extrac)
78 CurveExtra * ctmp = this_curve -> extrac -> first;
80 for ( j=0 ; j < this_curve -> extrac -> extras ; j++ )
86 for ( i=n ; i < that_proj -> analysis[k] -> curves[l] -> ndata ; i++ )
88 this_curve -> axmax[aid] =
max(this_curve -> axmax[aid], that_proj -> analysis[k] -> curves[l] -> data[aid][i]);
89 this_curve -> axmin[aid] =
min(this_curve -> axmin[aid], that_proj -> analysis[k] -> curves[l] -> data[aid][i]);
91 if (ctmp -> next != NULL) ctmp = ctmp -> next;
98 this_curve -> cmin[aid] = this_curve -> axmin[aid];
99 this_curve -> cmax[aid] = this_curve -> axmax[aid];
100 this_curve -> axmin[aid] = this_curve -> cmin[aid] - fabs(this_curve -> cmin[aid]) / 10.0;
101 this_curve -> axmax[aid] = this_curve -> cmax[aid] + fabs(this_curve -> cmax[aid]) / 10.0;
103 if (rid >
GDK && rid <
MSD)
105 this_curve -> axmin[aid] = 0.0;
183 cairo_set_line_width (cr,
GRIDSIZE);
188 prep_frame (cr, this_curve -> frame_dash, this_curve -> frame_thickness, this_curve -> frame_color);
190 if (fmod(u+v,
mticks) != 0.0)
254 if (
cxy[1] >= pow(10, i))
267 for ( l = 0 ; l <
ylog ; l ++ )
269 v = pow (10, l-
dylog);
273 cairo_set_line_width (cr,
GRIDSIZE);
278 prep_frame (cr, this_curve -> frame_dash, this_curve -> frame_thickness, this_curve -> frame_color);
318 for ( k = 2 ; k < 10 ; k ++ )
323 cairo_set_line_width (cr,
GRIDSIZE);
328 prep_frame (cr, this_curve -> frame_dash, this_curve -> frame_thickness, this_curve -> frame_color);