Installing gnuplot is optional, unless you have data in gnuplot format or you wish to create some.
zlib (see CPPFLAGS and LDFLAGS)
Gnuplot can be built with all sorts of options, but we really only need the Postscript/EPS output. Thus you should not worry about png, gif, or pdf libraries and their license entanglements.
First apply following patch (which has been submitted to the gnuplot team)
--- datafile.c.orig 2005-01-20 04:28:09.051477624 -0500
+++ datafile.c 2005-01-20 04:32:09.821874960 -0500
@@ -570,6 +569,7 @@
/* now allocated dynamically */
int i;
int name_token;
+ static long inline_tell; /* remember file position from '-' to '=' 20050119 sampo@iki.fi */
TBOOLEAN duplication = FALSE;
TBOOLEAN set_index = FALSE, set_every = FALSE, set_thru = FALSE;
@@ -729,6 +729,14 @@
data_fp = lf_top();
if (!data_fp)
data_fp = stdin;
+ inline_tell = ftell(data_fp); /* remember position for '=' 20050119 sampo@iki.fi */
+ mixed_data_fp = TRUE; /* don't close command file */
+ } else if (*df_filename == '=' && strlen(df_filename) == 1) {
+ plotted_data_from_stdin = TRUE;
+ data_fp = lf_top();
+ if (!data_fp)
+ data_fp = stdin;
+ fseek(data_fp, inline_tell, SEEK_SET); /* back to pos seen by '-' 20050119 sampo@iki.fi */
mixed_data_fp = TRUE; /* don't close command file */
} else {
#ifdef HAVE_SYS_STAT_H
This patch is request id 1105717, submitted on 20.1.2005, into gnuplot patch tracking, https://sourceforge.net/tracker/index.php.
Optimization must be turned off due to bug in gnuplot mxtics feature when using time series data.
CPPFLAGS=-I/apps/include LDFLAGS=-L/apps/lib ./configure --prefix=/apps/gnuplot/4.0.0 ./prepare # does autoreconf && aclocal && autoconf && automake CPPFLAGS=-I/apps/include CFLAGS=-g LDFLAGS=-L/apps/lib ./configure --prefix=/apps/gnuplot/4.1.0 make make install
you need to add -lpng -z as last options on the linking line (cd src and cut and paste the failed command, adding the flag).