Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

gnuplot

From Wikipedia, the free encyclopedia
Command-line and GUI plotting program
Not to be confused withplotutils.
This articleneeds additional citations forverification. Please helpimprove this article byadding citations to reliable sources. Unsourced material may be challenged and removed.
Find sources: "Gnuplot" – news ·newspapers ·books ·scholar ·JSTOR
(March 2012) (Learn how and when to remove this message)
gnuplot
3D rendering of anellipsoid by gnuplot
Initial release1986; 39 years ago (1986)
Stable release6.0.1 (May 29, 2024; 10 months ago (2024-05-29)) [±]
Preview release6.1 [±]
Repositorysf.net/p/gnuplot/gnuplot-main/
Written inC
TypePlotting
Licensegnuplot[1][2]
Websitewww.gnuplot.info Edit this on Wikidata

gnuplot is acommand-line andGUI program that can generate two- and three-dimensionalplots offunctions,data, anddata fits. The program runs on all majorcomputers andoperating 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 theGNU Project.

Features

[edit]

gnuplot can produce output directly on screen, or in many formats of graphics files, includingPortable Network Graphics (PNG),Encapsulated PostScript (EPS),Scalable Vector Graphics (SVG),JPEG and many others. It is also capable of producingLaTeX 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 as the ability to perform non-linear multi-dimensional multi-set weighted data fitting (seeCurve fitting andLevenberg–Marquardt algorithm).

The gnuplot core code is programmed inC. Modular subsystems for output viaQt,wxWidgets, and LaTeX/TikZ/ConTeXt are written inC++ andLua.

gnuplot in interactive use

The code below creates the graph to the right.

settitle"Some Math Functions"setxrange[-10:10]setyrange[-2:2]setzeroaxisplot(x/4)**2,sin(x),1/x
Sample video
  • A scatter plot of samples from a text file
    Ascatter plot of samples from a text file
  • Thousands of dots plotted, forming a pattern
    A logarithmic spiral

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

[edit]
gnuplot License
AuthorThomas Williams, Colin Kelley
Published1986 – 1993, 1998, 2004
SPDX identifiergnuplot[1]
Debian FSG compatibleYes
FSFapprovedYes
OSIapprovedYes
GPL compatibleNo[8]
CopyleftNo
Websitehttps://sourceforge.net/p/gnuplot/gnuplot-main/ci/master/tree/Copyright

Despite gnuplot's name, it is not named after, part of or related to theGNU Project, nor does it use theGNU General Public License. It was named as part of a compromise by the original authors, punning ongnu (the animal) andnewplot (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 fortechnical 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 manyGNU packages and is widely included inLinux distributions including the stricter ones such asDebian andFedora. TheOSI Open Source Definition and theDebian 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

[edit]

Several third-party programs havegraphical user interfaces that can be used to generate graphs using gnuplot as the plotting engine. These include:

Other programs that use gnuplot include:

Programming and application interfaces

[edit]

gnuplot can be used from various programming languages to graph data, includingC++ (viaG3P),Perl (viaPDL and otherCPAN packages),Python (viagnuplotlib,Gnuplot-py andSageMath),R via (Rgnuplot),Julia (viaGaston.jl),Java (viaJavaGnuplotHybrid andjgnuplot),Ruby (viaRuby Gnuplot),Ch (viaCh Gnuplot),Haskell (viaHaskell gnuplot),Fortran 95,[21]Smalltalk (Squeak andGNU Smalltalk) andRust (viaRustGnuplot).

gnuplot also supportspiping, which is typical of scripts.[22] For script-driven graphics, gnuplot is one of the most popular programs.[citation needed]

Gnuplot output formats

[edit]

Gnuplot allows the user to display or store plots in several ways:[23][24]

  • On the console, such asdumb,sixel.
  • In a desktop window, such asQt, wxt, X11, aquaterm, win.
  • Embedded in a web page, such as SVG, HTML5, PNG, JPEG, animated GIF.
  • File formats designed for document processing, such as PostScript, PDF, cgm, emf, LaTeX variants.

See also

[edit]

References

[edit]
  1. ^ab"gnuplot License".Spdx.org.
  2. ^ab"gnuplot : gnuplot-main : [bcc809] : Copyright".Sourceforge.net. Retrieved27 June 2022.
  3. ^Gnuplot 5.0 Reference Manual, 2015,ISBN 9881443644
  4. ^"gnuplot FAQ".Gnuplot.info. Retrieved29 August 2022.
  5. ^"How to generate graphs with gnuplot".Blogs.oucs.ox.ac.uk. Retrieved2012-07-19.
  6. ^"gnuplot FAQ".Gnuplot.info. Retrieved20 June 2024.
  7. ^"Gnuplot Version 5.4.2 Release Notes".Archived from the original on 2021-06-08. Retrieved2021-06-08.
  8. ^"License:Gnuplot". Free Software Foundation. Retrieved2018-11-19.
  9. ^"1.2 How did it come about and why is it called gnuplot?".Gnuplot.info. Retrieved2015-02-21.
  10. ^"JGNUplot homepage".Jgp.sourceforge.net. Retrieved27 June 2022.
  11. ^"Kayali".Sourceforge.net. 19 April 2013. Retrieved27 June 2022.
  12. ^"Xldlas - A basic statistical package for X windows". Archived fromthe original on 2014-10-31. Retrieved2014-10-30.
  13. ^"Home · uwe-schneider/Gnuplotxyz Wiki".Uni-hamburg.
  14. ^Steingrube, Daniel S."Steingrube".www.steingrube-home.de. Archived fromthe original on 2015-10-26. Retrieved2015-08-21.
  15. ^"Wald: Statist: Project Home".Wald.intevation.org.
  16. ^"GPlot".Gplot.sourceforge.net. Retrieved27 June 2022.
  17. ^"Elchemea Analytical".Elchemea.com. Retrieved27 June 2022.
  18. ^"DTU Energy".Energy.dtu.dk. Archived fromthe original on 2021-04-14. Retrieved2016-05-24.
  19. ^"GnuPlot Add-in for Excel".Sourceforge.net. 2 January 2018. Retrieved27 June 2022.
  20. ^Gillespie, Dave."The GNU Emacs Calculator".www.gnu.org. Free Software Foundation, Inc. p. Graphics. Retrieved13 November 2020.
  21. ^Singh, Madhusudan."gnuplotfortran - the Fortran 95 interface to gnuplot".gnuplotfortran.sourceforge.net. Retrieved10 May 2016.
  22. ^"2-cent Tip: Piping to GNU Plot from C".Linuxgazette.net. Retrieved27 June 2022.
  23. ^"gnuplot homepage".Gnuplot.info. Retrieved27 June 2022.
  24. ^"Manual Rápido de Gnuplot"(PDF). Archived fromthe original(PDF) on 2020-06-16. Retrieved2020-03-30.

Further reading and external links

[edit]
Wikimedia Commons has media related toGnuplot.
Wikibooks has a book on the topic of:gnuplot
International
National
Other
Retrieved from "https://en.wikipedia.org/w/index.php?title=Gnuplot&oldid=1276921226"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp