graph
Original authorsDouglas McIlroy
(AT&T Bell Laboratories)
DevelopersVarious open-source and commercial developers
Operating systemUnix, Unix-like
PlatformCross-platform
TypeCommand

In Unix, graph is a command-line utility used to draw plots from tabular data.

History

edit

The graph utility, written by Douglas McIlroy, was present in the first version of Unix, and every later version, for instance:

Its output is a sequence of commands for the plot utility, which creates plots using ASCII graphics.

This design demonstrates the Unix philosophy: defining the plot (graph) and drawing it (plot) are separate tools, so they can be recombined with other tools. For instance, plot can be substituted with a different utility, that accepts the same plot commands, but creates the plot in a graphics file format, or sends it to a plotter.

Unix v7 also provided device drivers for plotting the results to various graphics devices; [3] this was announced as now standard.[4]

The GNU plotutils package provides a free non-exact reimplementation, available for Linux and many other systems. It can create plots in various graphics formats.

Usage

edit

In its simplest use, the graph utility takes a textfile containing pairs of numbers, indicating the points of a line plot.

It outputs the line plot. Several options can be supplied to modify its behavior.

Example (Unix)

edit

These screenshots demonstrate basic operation on SunOS 5.10, on which graph and plot come preinstalled. The example input is from the first example in the GNU plotutils manual.

Example (GNU plotutils)

edit

These screenshots demonstrate the GNU plotutils version of graph when run in an xterm, exploiting xterm's ability to emulate a Tektronix 4010 plotter.

This demo was run on Ubuntu, which makes GNU plotutils available as an optional package; many other Linux distributions and other Unix-like systems do the same.

References

edit
  1. ^ "graph". Unix v7 manual pages. Bell Labs. 1979. Retrieved Nov 24, 2018.
  2. ^ "graph". SunOS 5.10 manual pages. Sun Microsystems. 2005. Retrieved Nov 24, 2018.
  3. ^ Herrmann, Robert B., ed. (2004). Computer programs in Seismology: CALPLOT graphics (PDF). 3.30. p. vi. Retrieved Nov 24, 2018.
  4. ^ "7th Edition UNIX — Summary" (PDF). Murray Hill, New Jersey 07974: Bell Laboratories. September 6, 1978. p. 1. Archived from the original (PDF) on November 24, 2018. Retrieved Nov 24, 2018.{{cite news}}: CS1 maint: location (link)
edit

📚 Artikel Terkait di Wikipedia

Plotutils

GNU plotutils is a set of free software command-line tools and software libraries for generating 2D plot graphics based on data sets. It is used in projects

GIF

associated with GIF GIFBuilder, early animated GIF creation program GNU plotutils (supports pseudo-GIF, which uses run-length encoding rather than LZW)

List of GNU packages

packages than being in any of the further down sections. Inclusions (such as plotutils) and exclusions (such as the C standard library) are of course debatable

Printer Command Language

PostScript Foomatic Hewlett-Packard Raster Transfer Language (HP RTL) GNU Plotutils PostScript Printer Description Ghostscript PCL 5 Printer Language Technical

List of data science software

OpenScientist Origin ParaView PathVisio Perl Data Language PGPLOT ploticus Plotly plotutils Poimapper PolyAnalyst PowerLab Psychometric software Pyramid Analytics

GNU Oleo

using the device-independent library libplot, the centerpiece of the GNU plotutils. Oleo offers spreadsheet access to the GNU Scientific Library, a large

List of information graphics software

web-sharing and exporting, drag-and-drop data import, Python command line plotutils command line, C/C++ GPL Yes 1989 September 27, 2009 / 2.6 Linux, Mac,

Lorinda Cherry

same way they were spoken. Her work on libplot inspired the later GNU plotutils package. Cherry built tools for creating and editing text. She made revisions