*(spmin + i), *(spmax + i));
out_p = *(out + i);
+ /* Translate to proper position for current graph within current activity */
+ printf("<g transform=\"translate(%d,%d)\">\n",
+ SVG_M_XSIZE, SVG_M_YSIZE + SVG_G_YSIZE + i * SVG_T_YSIZE);
+
+ /* Grid */
if (*(spmax + i) == 0) {
/* If all values are zero then set current max value to 1 */
lmax = 1.0;
else {
lmax = *(spmax + i);
}
- /* Translate to proper position for current graph within current activity */
- printf("<g transform=\"translate(%d,%d)\">\n",
- SVG_M_XSIZE, SVG_M_YSIZE + SVG_G_YSIZE + i * SVG_T_YSIZE);
-
- /* Grid */
ypos = ygrid(*(spmax + i), &dp);
yfactor = (double) -SVG_G_YSIZE / lmax;
j = 1;
ypos * j, SVG_G_XSIZE, ypos * j, yfactor);
j++;
}
- while (ypos * j <= *(spmax + i));
+ while (ypos * j <= lmax);
j = 0;
do {
printf("<text x=\"0\" y=\"%ld\" style=\"fill: white; stroke: none; font-size: 12px; "
(long) (ypos * j * yfactor), dp, ypos * j);
j++;
}
- while (ypos * j <= *(spmax + i));
+ while (ypos * j <= lmax);
k = xgrid(svg_p->record_hdr->ust_time, record_hdr->ust_time);
xfactor = (double) SVG_G_XSIZE / (record_hdr->ust_time - svg_p->record_hdr->ust_time);