Gnuplot

De NachE
Saltar a: navegación, buscar

Gnuplot es una utilidad de la línea de comandos capaz de generar gráficas 2D y 3D a partir de funciones y datos. Fue originalmente creado (desde 1986) para proporcionar a científicos y estudiantes una forma de visualizar funciones y datos de forma interactiva. Esta herramienta puede dibujar líneas, puntos, cajas, contornos, campos vectoriales, superficies y mucho más. Es capaz de generar resultados en los formatos eps, emf, fig, jpeg, LaTeX, pdf, png, postscript, etc.


Instalación

La instalación de gnuplot puede realizarse desde el sistema de paquetería de las distribuciones Linux más habituales:

Instalación en Ubuntu:

$ sudo apt-get install gnuplot

Instalación en Debian GNU/Linux:

# apt-get install gnuplot

Instalación en CentOS: Válido para Fedora y Red Hat

# yum install gnuplot

Instalación en Arch Linux:

# pacman -S gnuplot

Nota: Se utiliza almohadilla (#) para indicar una terminal de administrador y el símbolo de dolar ($) para indicar una terminal de usuario.

Uso básico de Gnuplot

Gnuplot permite la introducción de comandos directamente desde la terminal de GNU/Linux. Abriendo una terminal e introduciendo el siguiente comando, gnuplot nos mostrará la función seno:

$ gnuplot -persist -e "set title 'Funcion Seno'; plot sin(x)"
  • -persist mantiene la ventana de la gráfica abierta (de lo contrario se cerraría y no veríamos nada)
  • -e tras esta opción se introducen la serie de comandos a interpretar por gnuplot. Cada comando se separa por punto y coma (;) y todos los comandos se han de entrecomillar.

Licencia de Gnuplot

Gnuplot utiliza diferentes licencias compatibles con la licencia GPL.

Licencia de Gnuplot extraida de una instalación binaria en Debian GNU/Linux

Accesible en el directorio /usr/share/doc/gnuplot/copyright

Author:
 Thomas Williams
 Colin Kelley
Download: http://gnuplot.sourceforge.net/

Files: *
Copyright: Copyright 1986-1993, 1998, 2004 Thomas Williams, Colin Kelley
License: other
 Permission to use, copy, and distribute this software and its
 documentation for any purpose with or without fee is hereby granted,
 .
 provided that the above copyright notice appear in all copies and that
 both that copyright notice and this permission notice appear in supporting
 documentation.
 .
 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.  Permission to distribute
 binaries produced by compiling modified sources is granted, provided you
   1. distribute the corresponding source modifications from the released
      version in the form of a patch file along with the binaries,
   2. add special version identification to distinguish your version in
      addition to the base release version number,
   3. provide your name and address as the primary contact for the support
      of your modified version, and
   4. retain our contact information in regard to use of the base software.
 Permission to distribute the released version of the source code along
 with corresponding source modifications in the form of a patch file is
 granted with same provisions 2 through 4 for binary distributions.
 .
 This software is provided "as is" without express or implied warranty to
 the extent permitted by applicable law.

Files: src/wxterminal/*
Copyright: Copyright 2005,2006   Timothee Lecomte
License: other
 Permission to use, copy, and distribute this software and its
 documentation for any purpose with or without fee is hereby granted,
 .
 provided that the above copyright notice appear in all copies and that
 both that copyright notice and this permission notice appear in supporting
 documentation.
 .
 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.  Permission to distribute
 binaries produced by compiling modified sources is granted, provided you
   1. distribute the corresponding source modifications from the released
      version in the form of a patch file along with the binaries,
   2. add special version identification to distinguish your version in
      addition to the base release version number,
   3. provide your name and address as the primary contact for the support
      of your modified version, and
   4. retain our contact information in regard to use of the base software.
 Permission to distribute the released version of the source code along
 with corresponding source modifications in the form of a patch file is
 granted with same provisions 2 through 4 for binary distributions.
 .
 This software is provided "as is" without express or implied warranty to
 the extent permitted by applicable law.
 .
 Alternatively, the contents of this file may be used under the terms of
 the GNU General Public License Version 2 or later (the "GPL"), in which
 case the provisions of GPL are applicable instead of those above. If you
 wish to allow use of your version of this file only under the terms of the
 GPL and not to allow others to use your version of this file under the
 above gnuplot license, indicate your decision by deleting the provisions
 above and replace them with the notice and other provisions required by
 the GPL. If you do not delete the provisions above, a recipient may use
 your version of this file under either the GPL or the gnuplot license. 

Files: lisp/*
Copyright:
 gnuplot.el: (C) 1998 Phil Type and Bruce Ravel, 1999-2002 Bruce Ravel
 gnuplot-gui.el: (C) 1998-2000 Bruce Ravel
 info-look.20.2.el: (C) 1995,1996,1997 Ralph Schleicher.
 info-look.20.3.el: (C) 1995,1996,1997, 1998 Free Software Foundation, Inc.
License: GPL-2+.
 This program is free software; you can redistribute it and/or modify it
 under the terms of the GNU General Public License as published by the Free
 Software Foundation; either version 2 of the License, or (at your option)
 any later version.
 .
 This program is distributed in the hope that it will be useful, but
 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 for more details.

Files: debian/*
Copyright: (C) 2008 Bradley Smith <brad@brad-smith.co.uk>
License: MIT
 Permission is hereby granted, free of charge, to any person obtaining a
 copy of this software and associated documentation files (the "Software"),
 to deal in the Software without restriction, including without limitation
 the rights to use, copy, modify, merge, publish, distribute, sublicense,
 and/or sell copies of the Software, and to permit persons to whom the
 Software is furnished to do so, subject to the following conditions:
 .
 The above copyright notice and this permission notice shall be included in
 all copies or substantial portions of the Software.
 .
 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
 THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
 DEALINGS IN THE SOFTWARE.

On Debian systems, the complete text of the GNU General Public License
can be found in `/usr/share/common-licenses/GPL-2'.

Referencias

Thomas Williams & Colin Kelley (2012) gnuplot 4.6 An Interactive Plotting Program gnuplot documentation. Obtenido 17 Marzo 2013.