Difference between revisions of "Applications/Gnuplot"

From HPC
Jump to: navigation , search
(Created page with " == Application Details == * Description : Gnuplot is a portable command-line driven graphing utility for Viper (Linux), and is available on other platforms. * Versions : 5.0...")
 
m (Batch Script)
 
(28 intermediate revisions by 2 users not shown)
Line 2: Line 2:
 
== Application Details ==
 
== Application Details ==
  
* Description : Gnuplot is a portable command-line driven graphing utility for Viper (Linux), and is available on other platforms.
+
* Description: Gnuplot is a portable command-line driven graphing utility for Viper (Linux), and is available on other platforms.
* Versions : 5.0.3
+
* Versions : 5.0.3, 5.0.5
* Module names : gnuplot/5.0.3
+
* Module names : gnuplot/5.0.3, gnuplot/5.0.5
 
* License:  Free/Open Source under the GNU license
 
* License:  Free/Open Source under the GNU license
 
  
 
== Modules Available ==
 
== Modules Available ==
  
* module load gnuplot/5.0.3
+
* gnuplot/5.0.3
 +
* gnuplot/5.0.5
  
 +
{| class="wikitable"  style="background-color:#f5f5dc;"
 +
! Terminal
 +
! Description
 +
! gnuplot 5.0.3
 +
! gnuplot 5.0.5
 +
|-
 +
| canvas
 +
| HTML Canvas object
 +
| x
 +
| x
 +
|-
 +
| cairolatex
 +
| LaTeX picture environment using graphicx package and Cairo backend
 +
|
 +
| x
 +
|-
 +
| cgm
 +
| Computer Graphics Metafile
 +
| x
 +
| x
 +
|-
 +
| context
 +
| ConTeXt with MetaFun (for PDF documents)
 +
| x
 +
| x
 +
|-
 +
| corel
 +
| EPS format for CorelDRAW
 +
| x
 +
| x
 +
|-
 +
| dumb
 +
| ASCII art for anything that prints text
 +
| x
 +
| x
 +
|-
 +
| dxf
 +
| dxf-file for AutoCad (default size 120x80)
 +
| x
 +
| x
 +
|-
 +
| eepic
 +
| EEPIC -- extended LaTeX picture environment
 +
| x
 +
| x
 +
|-
 +
| emf
 +
| Enhanced Metafile format
 +
| x
 +
| x
 +
|-
 +
| emtex
 +
| LaTeX picture environment with emTeX specials
 +
| x
 +
| x
 +
|-
 +
| epscairo
 +
| eps terminal based on cairo
 +
|
 +
| x
 +
|-
 +
| epslatex
 +
| LaTeX picture environment using graphicx package
 +
| x
 +
| x
 +
|-
 +
| fig
 +
| FIG graphics language for XFIG graphics editor
 +
| x
 +
| x
 +
|-
 +
| gif
 +
| GIF images using libgd and TrueType fonts
 +
|
 +
| x
 +
|-
 +
| jpeg
 +
| JPEG images using libgd and TrueType fonts
 +
|
 +
| x
 +
|-
 +
| hpgl
 +
| HP7475 and relatives [number of pens] [eject]
 +
| x
 +
| x
 +
|-
 +
| latex
 +
| LaTeX picture environment
 +
| x
 +
| x
 +
|-
 +
| mf
 +
| Metafont plotting standard
 +
| x
 +
| x
 +
|-
 +
| mp
 +
| MetaPost plotting standard
 +
| x
 +
| x
 +
|-
 +
| pcl5
 +
| HP Designjet 750C, HP Laserjet III/IV, etc. (many options)
 +
| x
 +
| x
 +
|-
 +
| pdfcairo
 +
| pdf terminal based on cairo
 +
|
 +
| x
 +
|-
 +
| png
 +
| PNG images using libgd and TrueType fonts
 +
|
 +
| x
 +
|-
 +
| pngcairo
 +
| png terminal based on cairo
 +
|
 +
| x
 +
|-
 +
| postscript
 +
| PostScript graphics, including EPSF embedded files (*.eps)
 +
| x
 +
| x
 +
|-
 +
| pslatex
 +
| LaTeX picture environment with PostScript \specials
 +
| x
 +
| x
 +
|-
 +
| pstex
 +
| plain TeX with PostScript \specials
 +
| x
 +
| x
 +
|-
 +
| pstricks
 +
| LaTeX picture environment with PSTricks macros
 +
| x
 +
| x
 +
|-
 +
| qms
 +
| QMS/QUIC Laser printer (also Talaris 1200 and others)
 +
| x
 +
| x
 +
|-
 +
| qt
 +
| Qt terminal
 +
| x
 +
| x
 +
|-
 +
| svg
 +
| W3C Scalable Vector Graphics
 +
| x
 +
| x
 +
|-
 +
| tek40xx
 +
| Tektronix 4010 and others; most TEK emulators
 +
| x
 +
| x
 +
|-
 +
| tek410x
 +
| Tektronix 4106, 4107, 4109 and 420X terminals
 +
| x
 +
| x
 +
|-
 +
| texdraw
 +
| LaTeX texdraw environment
 +
| x
 +
| x
 +
|-
 +
| tgif
 +
| TGIF X11 [mode] [x,y] [dashed] ["font" [fontsize]]
 +
| x
 +
| x
 +
|-
 +
| tkcanvas
 +
| Tk canvas widget
 +
| x
 +
| x
 +
|-
 +
| tpic
 +
| TPIC -- LaTeX picture environment with tpic \specials
 +
| x
 +
| x
 +
|-
 +
| unknown
 +
| Unknown terminal type - not a plotting device
 +
| x
 +
| x
 +
|-
 +
| vttek
 +
| VT-like tek40xx terminal emulator
 +
| x
 +
| x
 +
|-
 +
| xterm
 +
| Xterm Tektronix 4014 Mode
 +
| x
 +
| x
 +
|}
  
 
== Usage Examples ==
 
== Usage Examples ==
  
=== Non Batch usage ===
+
=== Interactive usage ===
  
<pre style="background-color: #C8C8C8; color: black; border: 2px solid blue; font-family: monospace, sans-serif;">
+
<pre style="background-color: #f5f5dc; color: black; font-family: monospace, sans-serif;">
  
set terminal pngcairo  transparent enhanced font "arial,10" fontscale 1.0 size 600, 400
+
[pysdlb@login01 ~]$ interactive
# set output 'simple.2.png'
+
 
set bar 1.000000 front
+
[pysdlb@login01 ~]$ interactive
set style circle radius graph 0.02, first 0.00000, 0.00000
+
salloc: Granted job allocation 3619663
set style ellipse size graph 0.05, 0.03, first 0.00000 angle 0 units xy
+
Job ID 3619663 connecting to c025, please wait...
set style textbox transparent margins  1.0,  1.0 border
+
c025.vc-main
unset logscale
+
[pysdlb@c025 ~]$ module load gnuplot/5.0.5
unset paxis 1 tics
+
[pysdlb@c025 ~]$ gnuplot
unset paxis 2 tics
+
 
unset paxis 3 tics
+
        G N U P L O T
unset paxis 4 tics
+
        Version 5.0 patchlevel 5   last modified 2016-10-02
unset paxis 5 tics
+
 
unset paxis 6 tics
+
        Copyright (C) 1986-1993, 1998, 2004, 2007-2016
unset paxis 7 tics
+
        Thomas Williams, Colin Kelley and many others
set title "Simple Plots"
+
 
set title  font ",20" norotate
+
        gnuplot home:     http://www.gnuplot.info
set paxis 1 range [ * : * ] noreverse nowriteback
+
        faq, bugs, etc:   type "help FAQ"
set paxis 2 range [ * : * ] noreverse nowriteback
+
        immediate help:   type "help"  (plot window: hit 'h')
set paxis 3 range [ * : * ] noreverse nowriteback
+
 
set paxis 4 range [ * : * ] noreverse nowriteback
+
Terminal type set to 'qt'
set paxis 5 range [ * : * ] noreverse nowriteback
+
gnuplot> plot 4col.csv
set paxis 6 range [ * : * ] noreverse nowriteback
 
set paxis 7 range [ * : * ] noreverse nowriteback
 
set colorbox vertical origin screen 0.9, 0.2, 0 size screen 0.05, 0.6, 0 front  noinvert bdefault
 
plot [-pi/2:pi] cos(x),-(sin(x) > sin(x+1) ? sin(x) : sin(x+1))
 
  
 
</pre>
 
</pre>
  
 +
=== Graphical Output ===
 +
 +
[[File:gnuplot02.jpg]]
 +
 +
===Batch Script===
  
 +
Does not apply to visual outputs - only suitable for interactive sessions.
  
== Further Information ==
+
==Next Steps==
  
 
* [http://www.gnuplot.info/ http://www.gnuplot.info/]
 
* [http://www.gnuplot.info/ http://www.gnuplot.info/]
  
 
+
{{Modulepagenav}}
[[Category:Applications]]
 

Latest revision as of 15:33, 16 November 2022

Application Details

  • Description: Gnuplot is a portable command-line driven graphing utility for Viper (Linux), and is available on other platforms.
  • Versions : 5.0.3, 5.0.5
  • Module names : gnuplot/5.0.3, gnuplot/5.0.5
  • License: Free/Open Source under the GNU license

Modules Available

  • gnuplot/5.0.3
  • gnuplot/5.0.5
Terminal Description gnuplot 5.0.3 gnuplot 5.0.5
canvas HTML Canvas object x x
cairolatex LaTeX picture environment using graphicx package and Cairo backend x
cgm Computer Graphics Metafile x x
context ConTeXt with MetaFun (for PDF documents) x x
corel EPS format for CorelDRAW x x
dumb ASCII art for anything that prints text x x
dxf dxf-file for AutoCad (default size 120x80) x x
eepic EEPIC -- extended LaTeX picture environment x x
emf Enhanced Metafile format x x
emtex LaTeX picture environment with emTeX specials x x
epscairo eps terminal based on cairo x
epslatex LaTeX picture environment using graphicx package x x
fig FIG graphics language for XFIG graphics editor x x
gif GIF images using libgd and TrueType fonts x
jpeg JPEG images using libgd and TrueType fonts x
hpgl HP7475 and relatives [number of pens] [eject] x x
latex LaTeX picture environment x x
mf Metafont plotting standard x x
mp MetaPost plotting standard x x
pcl5 HP Designjet 750C, HP Laserjet III/IV, etc. (many options) x x
pdfcairo pdf terminal based on cairo x
png PNG images using libgd and TrueType fonts x
pngcairo png terminal based on cairo x
postscript PostScript graphics, including EPSF embedded files (*.eps) x x
pslatex LaTeX picture environment with PostScript \specials x x
pstex plain TeX with PostScript \specials x x
pstricks LaTeX picture environment with PSTricks macros x x
qms QMS/QUIC Laser printer (also Talaris 1200 and others) x x
qt Qt terminal x x
svg W3C Scalable Vector Graphics x x
tek40xx Tektronix 4010 and others; most TEK emulators x x
tek410x Tektronix 4106, 4107, 4109 and 420X terminals x x
texdraw LaTeX texdraw environment x x
tgif TGIF X11 [mode] [x,y] [dashed] ["font" [fontsize]] x x
tkcanvas Tk canvas widget x x
tpic TPIC -- LaTeX picture environment with tpic \specials x x
unknown Unknown terminal type - not a plotting device x x
vttek VT-like tek40xx terminal emulator x x
xterm Xterm Tektronix 4014 Mode x x

Usage Examples

Interactive usage


[pysdlb@login01 ~]$ interactive

[pysdlb@login01 ~]$ interactive
salloc: Granted job allocation 3619663
Job ID 3619663 connecting to c025, please wait...
c025.vc-main
[pysdlb@c025 ~]$ module load gnuplot/5.0.5
[pysdlb@c025 ~]$ gnuplot

        G N U P L O T
        Version 5.0 patchlevel 5    last modified 2016-10-02

        Copyright (C) 1986-1993, 1998, 2004, 2007-2016
        Thomas Williams, Colin Kelley and many others

        gnuplot home:     http://www.gnuplot.info
        faq, bugs, etc:   type "help FAQ"
        immediate help:   type "help"  (plot window: hit 'h')

Terminal type set to 'qt'
gnuplot> plot 4col.csv

Graphical Output

Gnuplot02.jpg

Batch Script

Does not apply to visual outputs - only suitable for interactive sessions.

Next Steps





Modules | Main Page | Further Topics