ARCHIVED: Plot a graph in Unix

This content has been archived, and is no longer maintained by Indiana University. Information here may no longer be accurate, and links may no longer be available or reliable.

Many Unix systems have Gnuplot installed. With Gnuplot, you can:

  • Plot two-dimensional functions and data points in many different styles, including points, lines, and error bars.
  • Plot three-dimensional data points and surfaces in many different styles, including contour plot and mesh.

Gnuplot features include:

  • Support for complex arithmetic and user-defined functions
  • Support for a large number of operating systems, graphics file formats, and devices
  • Labels for title, axes, and data points
  • Command-line editing and history on most platforms

To start Gnuplot, at the Unix prompt, enter:

gnuplot

At the Gnuplot prompt (gnuplot>) enter the following commands to display a graph of the sin function in a standard terminal window:

gnuplot> set term dumb
gnuplot> plot [-6:6] sin (x)

This is document adoc in the Knowledge Base.
Last modified on 2023-10-05 13:58:17.