I have some data series I want to plot on my linux systems and so I am pointed at gnuplot and eplot. Here are my notes, …

Here are some links,

From the FAQ, “How do I compile gnuplot on my system?”

Read the release notes and files README and INSTALL. You will need C and C++ compilers and installed versions of various support libraries depending on what configuration options you choose and what terminal types you want your executable to support.

  • To build from a release version on linux, use ./configure (or ./configure –prefix=$HOME/usr for an installation for a single user), make and finally make install. Pay close attention to the output from the configure script (yes there is a lot of it). There you will find hints as to what additional support libraries may be needed and what additional options may be desirable. In general you will need to have installed the “development” package for each of the support libraries.
  • To build from the development source on linux you must run a separate script ./prepare prior to running ./configure .
  • On Windows, makefiles can be found in config/mingw, config/msvc, config/watcom, and config/cygwin. Update the options in the makefile’s header and run the appropriate make tool in the same directory as the makefile. Additional instructions can be found in the makefiles.
  • For other platforms, copy the relevant makefile (e.g. makefile.os2 for OS/2) from config/ to src/, optionally update options in the makefile’s header, then change directory to src and run make.

I shall also be installing eplot, easy plot.

Making it do a job of work

I get a set terminal error, this is generated by gnuplot. This error is well documented it requires a “set terminal” statement in the program. Can this be set as a CLI argument or as an environment variable? Anyway, I need a better understanding of how to make it work. The error is being generated by gnuplot, I am trying to draw an output from vmstat.

  1. The GNU Plot FAQ
  2. A getting started page, with no example, and another with some examples.
  3. First let’s deal with the set terminal error, a page on terminal unknown.from askubuntu, and a another from stackoverflow.
  4. Running eplot generates a error 256, if I put the set command into the file, this page attempts to help, so I need to create a file that works through gnuplot i.e. make sure my datafile works through gnuplot.
  5. A google query, “how to make a line chart from a data file using gnuplot“, lots of advice
  6. The demos page, which as a script, which leads me to 'gnuplot -e "set terminal dumb" ./gnuplot/demo/simple.dem < /bin/yes' which delivers the charts to the screen in an ascii format. Next let’s deliver a graphic output, on the basis of a sar or vmstat output. simple.dem shows how to include a data file into a gnuplot command file.

The image is from the site and part of the documentation and so they require the following notice,

    Copyright (C) 1986 - 1993, 1998, 2004, 2007  Thomas Williams, Colin Kelley

One Comment

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.