2 GNU Plotutils is the recommended tool for generating postscript
3 and image output from gwave.
5 Unfortunately, plotutils-2.4.1 (and eariler) has a few bugs that can
6 cause problems with any input, not just data exported from gwave. An
7 unitialized data-structure bug can cause garbage datapoint output.
8 Depending on malloc differences, it sometimes only shows up on any
9 input with more than 1024 points. The postscript driver bug likely
10 affects any postscript output.
12 The following patch can be applied to plotutils-2.4.1 to fix both bugs.
16 *** plotutils-2.4.1/graph/plotter.c.orig Thu Mar 2 22:05:24 2000
17 --- plotutils-2.4.1/graph/plotter.c Tue Apr 29 01:48:09 2003
20 multigrapher->x_trans.output_min = 0.0;
21 multigrapher->x_trans.output_max = (double)PLOT_SIZE;
22 multigrapher->x_trans.output_range = multigrapher->x_trans.output_max - multigrapher->x_trans.output_min;
23 ! multigrapher->x_trans.output_min = 0.0;
24 multigrapher->y_trans.output_max = (double)PLOT_SIZE;
25 multigrapher->y_trans.output_range = multigrapher->y_trans.output_max - multigrapher->y_trans.output_min;
28 multigrapher->x_trans.output_min = 0.0;
29 multigrapher->x_trans.output_max = (double)PLOT_SIZE;
30 multigrapher->x_trans.output_range = multigrapher->x_trans.output_max - multigrapher->x_trans.output_min;
31 ! multigrapher->y_trans.output_min = 0.0;
32 multigrapher->y_trans.output_max = (double)PLOT_SIZE;
33 multigrapher->y_trans.output_range = multigrapher->y_trans.output_max - multigrapher->y_trans.output_min;
35 *** plotutils-2.4.1/libplot/p_header.h.orig Mon Sep 6 01:08:46 1999
36 --- plotutils-2.4.1/libplot/p_header.h Tue Apr 29 00:40:46 2003
40 fgred fggreen fgblue setrgbcolor\n\
41 /fontDict printFont findfont printSize scalefont dup setfont def\n\
42 ! /descender fontDict begin 0 [FontBBox] 1 get FontMatrix end\n\
43 transform exch pop def\n\
44 /vertoffset 1 printSize sub descender sub def {\n\
45 0 vertoffset moveto show\n\
48 fgred fggreen fgblue setrgbcolor\n\
49 /fontDict printFont findfont printSize scalefont dup setfont def\n\
50 ! /descender fontDict begin 0 FontBBox 1 get FontMatrix end\n\
51 transform exch pop def\n\
52 /vertoffset 1 printSize sub descender sub def {\n\
53 0 vertoffset moveto show\n\