Software:gnuplot
File:Gnuplot ellipsoid.svg 3D rendering of an ellipsoid by gnuplot | |
Initial release | 1986 |
---|---|
Stable release | 5.4.10 (October 20, 2023[±] | )
Written in | C |
Type | Plotting |
License | gnuplot[1][2] |
gnuplot is a command-line and GUI program that can generate two- and three-dimensional plots of functions, data, and data fits. The program runs on all major computers and operating systems (Linux, Unix, Microsoft Windows, macOS, FreeDOS, and many others).[3] Originally released in 1986, its listed authors are Thomas Williams, Colin Kelley, Russell Lang, Dave Kotz, John Campbell, Gershon Elber, Alexander Woo "and many others."[4] Despite its name, this software is not part of the GNU Project.
Features
gnuplot can produce output directly on screen, or in many formats of graphics files, including Portable Network Graphics (PNG), Encapsulated PostScript (EPS), Scalable Vector Graphics (SVG), JPEG and many others. It is also capable of producing LaTeX code that can be included directly in LaTeX documents, making use of LaTeX's fonts and powerful formula notation abilities. The program can be used both interactively and in batch mode using scripts.[5]
gnuplot can read data in multiple formats, including ability to read data on the fly generated by other programs (piping), create multiple plots on one image, do 2D, 3D, contour plots, parametric equations, supports various linear and non-linear coordinate systems, projections, geographic and time data reading and presentation, box plots of various forms, histograms, labels, and other custom elements on the plot, including shapes, text and images, that can be set manually, computed by script or automatically from input data.
gnuplot also provides scripting capabilities, looping, functions, text processing, variables, macros, arbitrary pre-processing of input data (usually across columns), as well ability to perform non-linear multi-dimensional multi-set weighted data fitting (see Curve fitting and Levenberg–Marquardt algorithm).
The gnuplot core code is programmed in C. Modular subsystems for output via Qt, wxWidgets, and LaTeX/TikZ/ConTeXt are written in C++ and Lua.
The code below creates the graph to the right.
set title "Some Math Functions" set xrange [-10:10] set yrange [-2:2] set zeroaxis plot (x/4)**2, sin(x), 1/x
A scatter plot of samples from a text file.
The name of this program was originally chosen to avoid conflicts with a program called "newplot", and was originally a compromise between "llamaplot" and "nplot".[6]
Support of Epidemic daily and weekly formats in Version 5.4.2 is a result of pandemic coronavirus data needs.[7]
Distribution terms
Author | Thomas Williams, Colin Kelley |
---|---|
Published | 1986 – 1993, 1998, 2004 |
DFSG compatible | Yes |
FSF approved | Yes |
OSI approved | Yes |
GPL compatible | No[8] |
Copyleft | No |
Website | https://sourceforge.net/p/gnuplot/gnuplot-main/ci/master/tree/Copyright |
Despite gnuplot's name, it is not named after, part of or related to the GNU Project, nor does it use the GNU General Public License. It was named as part of a compromise by the original authors, punning on gnu (the animal) and newplot (a planned name that was discarded due to already being used).[9]
Official source code to gnuplot is freely redistributable, but modified versions thereof are not. The gnuplot license allows instead distribution of patches against official releases, optionally accompanied by officially released source code. Binaries may be distributed along with the unmodified source code and any patches applied thereto. Contact information must be supplied with derived works for technical support for the modified software.[2]
Permission to modify the software is granted, but not the right to distribute the complete modified source code. Modifications are to be distributed as patches to the released version.
Despite this restriction, gnuplot is accepted and used by many GNU packages and is widely included in Linux distributions including the stricter ones such as Debian and Fedora. The OSI Open Source Definition and the Debian Free Software Guidelines specifically allow for restrictions on distribution of modified source code, given explicit permission to distribute both patches and source code.
Newer gnuplot modules (e.g. Qt, wxWidgets, and cairo drivers) have been contributed under dual-licensing terms, e.g. gnuplot + BSD or gnuplot + GPL.
GUIs and programs that use gnuplot
Several third-party programs have graphical user interfaces that can be used to generate graphs using gnuplot as the plotting engine. These include:
- gretl, a statistics package for econometrics
- JGNUPlot, a java-based GUI[10]
- Kayali[11] a computer algebra system
- xldlas, an old X11 statistics package[12]
- gnuplotxyz, an old Windows program[13]
- wxPinter, a graphical plot manager for gnuplot[14]
- Maxima is a text-based computer algebra system which itself has several third-party GUIs.
Other programs that use gnuplot include:
- GNU Octave, a mathematical programming language
- statist, a terminal-based program[15]
- gplot.pl provides a simpler command-line interface.[16]
- feedgnuplot provides a plotting of stored and realtime data from a pipe
- ElchemeaAnalytical,[17] an impedance spectroscopy plotting and fitting program developed by DTU Energy[18]
- Gnuplot add-in for Microsoft Excel[19]
- Calc, the GNU Emacs calculator[20]
Programming and application interfaces
gnuplot can be used from various programming languages to graph data, including C++ (via g3p), Perl (via PDL and other CPAN packages), Python (via gnuplotlib, Gnuplot-py and SageMath), R via (Rgnuplot), Julia (via Gaston.jl), Java (via JavaGnuplotHybrid and jgnuplot), Ruby (via Ruby Gnuplot), Ch (via Ch Gnuplot), Haskell (via Haskell gnuplot), Fortran 95,[21] Smalltalk (Squeak and GNU Smalltalk) and Rust (via RustGnuplot).
gnuplot also supports piping, which is typical of scripts.[22] For script-driven graphics, gnuplot is one of the most popular programs.[citation needed]
Gnuplot output formats
Gnuplot allows the user to display or store plots in several ways:[23][24]
- On the console (output modes dumb, sixel)
- In a desktop window (output modes Qt, wxt, X11, aquaterm, win, ...)
- Embedded in a web page (output modes SVG, HTML5, PNG, JPEG, animated GIF, ...)
- File formats designed for document processing (output modes PostScript, PDF, cgm, emf, LaTeX variants, ...)
See also
- List of graphing software
References
- ↑ Cite error: Invalid
<ref>
tag; no text was provided for refs namedspdx
- ↑ 2.0 2.1 "gnuplot : gnuplot-main : [bcc809 : Copyright"]. https://sourceforge.net/p/gnuplot/gnuplot-main/ci/master/tree/Copyright.
- ↑ Gnuplot 5.0 Reference Manual, 2015, ISBN:9881443644
- ↑ "gnuplot FAQ". http://www.gnuplot.info/faq/index.html#x1-70001.2.
- ↑ "How to generate graphs with gnuplot". http://blogs.oucs.ox.ac.uk/networks/2011/09/02/how-to-generate-graphs-with-gnuplot/.
- ↑ "gnuplot FAQ". http://www.gnuplot.info/faq/faq.html#SECTION00032000000000000000.
- ↑ "Gnuplot Version 5.4.2 Release Notes". http://gnuplot.sourceforge.net/ReleaseNotes_5_4_2.html.
- ↑ "License:Gnuplot". Free Software Foundation. https://directory.fsf.org/wiki/License:Gnuplot.
- ↑ "1.2 How did it come about and why is it called gnuplot?". http://www.gnuplot.info/faq/faq.html#x1-70001.2.
- ↑ "JGNUplot homepage". http://jgp.sourceforge.net/.
- ↑ "Kayali". 19 April 2013. https://sourceforge.net/projects/kayali/.
- ↑ "Xldlas - A basic statistical package for X windows". http://linux.maruhn.com/sec/xldlas.html.
- ↑ "Home · uwe-schneider/Gnuplotxyz Wiki". http://www.uni-hamburg.de/Wiss/FB/15/Sustainability/schneider/gnuplot/.
- ↑ Steingrube, Daniel S.. "Steingrube". http://www.steingrube-home.de/software_wxPinter.html.
- ↑ "Wald: Statist: Project Home". http://wald.intevation.org/projects/statist/.
- ↑ "GPlot". http://gplot.sourceforge.net/.
- ↑ "Elchemea Analytical". https://www.elchemea.com/.
- ↑ "DTU Energy". http://www.energy.dtu.dk/english.
- ↑ "GnuPlot Add-in for Excel". 2 January 2018. https://sourceforge.net/projects/gnuplot-add-in-for-excel/.
- ↑ Gillespie, Dave. "The GNU Emacs Calculator". Free Software Foundation, Inc.. p. Graphics. https://www.gnu.org/software/emacs/manual/html_node/calc/Graphics.html#Graphics.
- ↑ Singh, Madhusudan. "gnuplotfortran - the Fortran 95 interface to gnuplot". http://gnuplotfortran.sourceforge.net.
- ↑ "2-cent Tip: Piping to GNU Plot from C". https://linuxgazette.net/168/misc/lg/2_cent_tip__piping_to_gnu_plot_from_c.html.
- ↑ "gnuplot homepage". http://www.gnuplot.info/.
- ↑ "Manual Rápido de Gnuplot". http://fm137.ugr.es/imnf/descargas/archivos/manual-gnuplot.pdf.
Further reading and external links
- Gnuplot on SourceForge.net
- Gnuplot 5: an interactive ebook about gnuplot v.5.
- gnuplotting: a blog of gnuplot examples and tips
- spplotters: a blog of gnuplot examples and tips
- gnuplot surprising: a blog of gnuplot examples and tips
- Gnuplot at Curlie
- Philipp K. Janert (2009). Gnuplot in Action. Manning Publications. ISBN 978-1933988399.
- Lee Phillips (2012). gnuplot Cookbook. Packt Publishing. ISBN 978-1849517249.
- Williams, Thomas; Kelley, Colin (2015). Gnuplot 5.0. Samurai Media Limited. ISBN 978-988-14436-4-9.
- Visualize your data with gnuplot: an IBM tutorial
Original source: https://en.wikipedia.org/wiki/Gnuplot.
Read more |