Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
gnuplot Cookbook

You're reading from   gnuplot Cookbook Visual guide to every kind of graph you can make with this plotting software with this book and ebook

Arrow left icon
Product type Paperback
Published in Feb 2012
Publisher Packt
ISBN-13 9781849517249
Length 220 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Lee Phillips Lee Phillips
Author Profile Icon Lee Phillips
Lee Phillips
Arrow right icon
View More author details
Toc

Table of Contents (18) Chapters Close

gnuplot Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. Plotting Curves, Boxes, Points, and more FREE CHAPTER 2. Annotating with Labels and Legends 3. Applying Colors and Styles 4. Controlling your Tics 5. Combining Multiple Plots 6. Including Plots in Documents 7. Programming gnuplot and Dealing with Data 8. The Third Dimension 9. Using and Making Graphical User Interfaces 10. Surveying Special Topics Finding Help and Information
Index

Index

A

  • Aquaterm terminal
    • about / There's more…,
  • array of plots
    • arranging /
  • arrow
    • labels, adding with / Adding a label with an arrow, How to do it…, How it works…
  • arrows
    • multiplotting with / Multiplotting with labels and arrows, How to do it…, How it works…
    • putting, on axes / Putting arrows on the axes, How it works…
  • arrowstyle / How it works…
  • aspect ratio
    • about /
  • auxiliary files
    • about / 2. The auxiliary files
  • axes
    • labeling / Labeling the axes, How it works…
    • softening / Softening the axes, How it works…
    • arrows, putting / Putting arrows on the axes, How it works…
    • setting up / Setting up the axes
    • functions, defining / Defining the functions
    • tics, setting up / Setting up the tics
    • break, indicating / Indicating the break
    • coloring / Coloring the axes, How it works…
  • axis
    • breaking / Breaking an axis, How to do it…

B

  • beamer package
    • about / Creating presentation slides with incrementally displayed graphs
  • Bessel functions
    • about / Plotting a function,
  • bezier smoothed approximation / Getting ready
  • bomb.png
    • about / Getting ready
  • box
    • placing, around legend / Putting a box around the legend, How it works…
  • boxes
    • plotting / Plotting boxes, How to do it…, There's more…
  • breaking_an_axis.gnuplot
    • about / How to do it…

C

  • C
    • about / There's more…
    • used, for talking to gnuplot / Talking to gnuplot with C, How it works…
  • cairo graphics library
    • about / Introducing gnuplot's high-quality graphics formats [new]
  • canvas terminal
    • about / Making an interactive plot for the Web [new]
  • character coordinate system
    • about / There's more…
  • circles
    • plotting / Plotting circles, Getting ready, How it works…
  • Clojure
    • about / Plotting with Clojure
    • URL / Plotting with Clojure
    • plotting with / Getting ready
  • cntrparam value / How it works…
  • color output device
    • using / There's more…
  • complex graphs
    • about / Adding a label with an arrow
  • contour, and surface grid plots
    • combining / There's more…
  • contour plot
    • about / Making a contour plot
    • creating / How to do it…, How it works…
  • contours, and images
    • combining / Combining contours and images, How to do it…, How it works…
  • coordinate mappings
    • about / Using coordinate mappings
    • using / How to do it…, Coordinate ranges
  • CountryName function / How it works…
  • cumulative distribution
    • creating / Creating a cumulative distribution [new], Getting ready, How it works…
  • curves
    • coloring /
    • styling /
    • points, plotting with /

D

  • 1D graph
    • about / Introduction
  • 2D Gaussian surface / There's more…
  • 3D
    • path, plotting / Plotting a path in 3D, How to do it…, How it works…
  • 3D Lissajous figure / Plotting a path in 3D
  • data
    • smoothing / Smoothing your data, How to do it…, How it works…
    • functions, fitting to / Fitting functions to your data, How to do it…, How it works…
    • handling, with gnuplot / Handling the data with gnuplot, How it works…
  • data versus time
    • plotting /
  • division
    • about / How it works…
  • Django framework
    • URL / Getting ready
  • document
    • assembling, TikZ used / Assembling a document using TikZ and LaTeX [new], Making the plot, How it works…
    • assembling, LaTeX used / Assembling a document using TikZ and LaTeX [new], Making the plot, How it works…
    • assembling, epslatex terminal used / Assembling a document using epslatex, The LaTeX document, Producing the PDF
  • draw function / How it works…

E

  • earth
    • mapping / Mapping the Earth, Getting ready, How it works…, There's more…
  • earthquakes.dat file / Getting ready
  • Emacs
    • about / Using the Emacs GUI
    • installing / Getting ready
    • using / How to do it…
    • gnuplot script, running / 1. Running a gnuplot script
    • help and menus / 2. Help and menus
  • empty string
    • about / There's more…
  • enhanced text
    • about / Putting equations in your labels
  • epslatex terminal
    • used, for assembling document / Assembling a document using epslatex, The LaTeX document, Producing the PDF
    • about / Assembling a document using epslatex
  • equations
    • placing, in labels / Putting equations in your labels, How to do it…, How it works…
  • error bar
    • about / Dealing with errors, How it works…
    • combining, with other plot styles / There's more…
  • errors
    • dealing with / Dealing with errors, How it works…
  • European-style decimals
    • using /

F

  • figure
    • creating, with gnuplot / Creating the figure
  • filled curves
    • drawing / Drawing filled curves, Getting ready, How to do it…
  • financial data
    • handling / Handling financial data, Getting ready
  • fit command / Fitting functions to your data
  • for keyword / How it works…
  • for loop
    • about / There's more…
  • Fortran
    • about / There's more…
  • frames
    • about / The LaTeX document
  • front command / How it works…
  • function
    • about / Plotting a function
    • plotting / Getting ready
  • function keyword / How it works…
  • functions
    • fitting, to data / Fitting functions to your data, How to do it…, How it works…

G

  • Ghostscript
    • about / Getting ready
  • gird
    • fitting, to data / Fitting the grid to the data, How it works…
  • github home
    • URL / Getting ready
  • global hidden3d setting / How it works…
  • gnuplot
    • high-quality graphics formats / Introducing gnuplot's high-quality graphics formats [new], Getting ready
    • figure, creating with / Creating the figure
    • using, within LaTeX / Using gnuplot within LaTeX, How to do it…, How it works…
    • scripting, with own language / Scripting gnuplot with its own language, How to do it…, How it works…
    • kdensity smoothing, used for improving histograms / Using kdensity smoothing to improve on histograms [new], Getting ready, How it works…

    • cumulative distribution, creating / Creating a cumulative distribution [new], Getting ready, How it works…
    • C, used for talking to / Talking to gnuplot with C, How it works…
    • scripting, with Python / Getting ready, How it works…
    • plotting, with Clojure / Getting ready
    • volatile data, handling / Handling volatile data [new], The volatile data source
    • data, handling with / Handling the data with gnuplot, How it works…
    • surface plot, creating / Making a surface plot, How it works…
    • coordinate mappings, using / How to do it…, Coordinate ranges
    • surface, coloring / Coloring the surface, How it works…, There's more…
    • contour plot, creating / How to do it…, How it works…
    • vector plot, creating / How to do it…, How it works…
    • image plot, creating / Making an image plot or heat map, How it works…
    • heat map, creating / Making an image plot or heat map, How it works…
    • contours, combining with images / Combining contours and images, How to do it…, How it works…
    • surfaces, combining with images / Combining surfaces with images, How it works…, There's more…
    • path, plotting in 3D / Plotting a path in 3D, How to do it…, How it works…
    • parametric surfaces, drawing / Drawing parametric surfaces, How it works…, There's more…
    • JGP, using / 2. Doing more with JGP
    • Emacs, using / How to do it…
    • sharing, with PlotShare / How to do it…, How it works…
    • webGUI, writing for / Writing a web GUI for gnuplot, 1. The program, How it works…
    • WebGUI, writing for / How it works…
  • Gnuplot
    • about / Introduction
    • function, plotting / Getting ready
    • URL, for info / There's more…
    • multiple curves, plotting / Plotting multiple curves, Getting ready, How it works…
    • two different Y axes, using / Using two different y-axes, How to do it…, How it works…
    • scatterplot, making / Getting ready, How to do it…
    • boxes, plotting / Plotting boxes, How to do it…, There's more…
    • circles, plotting / Plotting circles, Getting ready, How it works…
    • filled curves, drawing / Drawing filled curves, Getting ready, How to do it…
    • financial data, handling / Handling financial data, Getting ready
    • basic histogram plot, making / Making a basic histogram plot, Getting ready, How it works…
    • histograms, stacking / Stacking histograms, How it works…
    • multiple histograms, plotting / Plotting multiple histograms, How it works…
    • dealing, with errors / Dealing with errors, How it works…
    • error bar / Dealing with errors, How it works…
    • statistical whisker plot, making / Making a statistical whisker plot, How it works…
    • impulse plot, making / How to do it…
    • parametric curves, graphing / Graphing parametric curves, How it works…
    • polar coordinates / Plotting with polar coordinates, How to do it…, How it works…
    • axes, labeling / Labeling the axes, How it works…
    • label size, setting / Setting the label size, How to do it…, How it works…, There's more…
    • legend, adding / Adding a legend, How to do it…, How it works…
    • box, placing around legend / Putting a box around the legend, How it works…
    • labels, adding with arrow / Adding a label with an arrow, How to do it…, How it works…
    • Unicode characters, using / Getting ready
    • equations, placing in labels / Putting equations in your labels, How to do it…, How it works…
    • curves, coloring /
    • curves, styling /
    • transparency, applying /
    • points, plotting with curves /
    • point style, modifying /
    • plot size, modifying /
    • graphs, positioning on page /
    • pie chart, plotting with objects /
    • manual tics, setting /
    • data versus time, plotting /
    • European-style decimals, using /
    • tic labels, formatting /
    • array of plots, arranging /
    • plots, positioning manually / Positioning plots manually, How it works…
    • inset plot, creating / How to do it…, How it works…
    • multiplotting, with labels and arrows / Multiplotting with labels and arrows, How to do it…, How it works…
    • plotting, on subintervals / Plotting on subintervals, How it works…
    • data, smoothing / Smoothing your data, How to do it…, How it works…
    • functions, fitting to data / Fitting functions to your data, How to do it…, How it works…
  • gnuplot, output devices collection
    • wxt terminal / The wxt terminal
    • pdfcairo terminal / The pdfcairo terminal
    • svg terminal / The svg terminal
  • gnuplot-lua-tikz package / How it works…
  • gnuplot-mode / Using the Emacs GUI
  • gnuplot script
    • about / The gnuplot script
    • running / 1. Running a gnuplot script
  • graph coordinates
    • about / How it works…
  • graphs
    • positioning, on page /

H

  • heat map
    • about / Making an image plot or heat map
    • creating / Making an image plot or heat map, How it works…
  • help arrowstyle / How it works…
  • help set mapping / Using coordinate mappings
  • hexadecimal format /
  • hidden line removal technique
    • about / There's more…
  • high-quality graphics formats, gnuplot / Introducing gnuplot's high-quality graphics formats [new], Getting ready
  • histogram plot
    • making / Making a basic histogram plot, Getting ready, How it works…
  • histograms
    • stacking / Stacking histograms, How it works…
    • improving, kdensity smoothing used / Using kdensity smoothing to improve on histograms [new], Getting ready, How it works…


I

  • if-then-else statement / Scripting gnuplot with its own language
  • image plot
    • about / Making an image plot or heat map
    • creating / Making an image plot or heat map, How it works…
  • images
    • surfaces, combining with / Combining surfaces with images, How it works…, There's more…
  • images, and contours
    • combining / Combining contours and images, How to do it…, How it works…
  • impulse plot
    • about / Making an impulse plot
    • making / How to do it…
  • incrementally displayed graphs
    • presentation slides, creating with / Creating presentation slides with incrementally displayed graphs, Getting ready, How to do it…, How it works…
  • inputenc package / How it works…
  • inset plot
    • about / Creating an inset plot
    • creating / How to do it…, How it works…
  • interactive plot
    • creating, for Web / Making an interactive plot for the Web [new], How to do it…, How it works…
  • internationalization features /
  • isoline density
    • about / How it works…
  • isosamples / Completing the picture

J

  • JGP
    • about / Getting ready
    • URL, for home page / Getting ready
    • installing / 1. Installing and starting up
    • using / 2. Doing more with JGP

K

  • kdensity smoothing
    • used, for improving on histograms / Using kdensity smoothing to improve on histograms [new], Getting ready, How it works…

  • kernel density estimate
    • about / Using kdensity smoothing to improve on histograms [new]
  • key
    • about / Adding a legend

L

  • labeled contour plot
    • making / Making a labeled contour plot, How to do it…, How it works…
  • labels
    • size, setting / Setting the label size, How to do it…, How it works…, There's more…
    • adding, with arrow / Adding a label with an arrow, How to do it…, How it works…
    • equations, placing in / Putting equations in your labels, How to do it…, How it works…
    • language, modifying /
    • multiplotting with / Multiplotting with labels and arrows, How to do it…, How it works…
    • plotting, from files / Plotting labels from files, How it works…
  • label size
    • setting / Setting the label size, How to do it…, How it works…, There's more…
  • language
    • modifying, for labels /
    • gnuplot, scripting with / Scripting gnuplot with its own language, How to do it…, How it works…
  • LaTeX
    • used, for adding plot to paper / Adding a plot to a paper using LaTeX, Getting ready, How it works…
    • running / Running LaTeX
    • used, for assembling documents / Assembling a document using TikZ and LaTeX [new], Making the plot, How it works…
    • gnuplot, using within / Using gnuplot within LaTeX, How to do it…, How it works…
  • legend
    • about / Adding a legend
    • adding / Adding a legend, How to do it…, How it works…
    • box, placing around / Putting a box around the legend, How it works…
  • linecolor
    • about /
  • linestyle
    • about /
  • linestyles /
  • linetype
    • about / How it works…
  • linetypes /
  • linewidth
    • about / How it works…,

M

  • manual tics
    • setting /
  • multiple curves
    • plotting / Plotting multiple curves, Getting ready, How it works…
  • multiple histograms
    • plotting / Plotting multiple histograms, How it works…
  • multiplot mode
    • about /
    / How it works…

N

  • NaN
    • about / How it works…
  • notitle keyword
    • about / How it works…
  • numpy / Getting ready

O

  • objects
    • plotting with /
    • about /
  • opacity
    • about /
  • overlapping labels
    • avoiding / Avoiding overlapping labels, How it works…

P

  • ++ pseudofile
    • about / The ++ pseudofile
  • --persist flag /
  • page
    • graphs, positioning on /
  • palette / How it works…
  • parameter
    • about / Graphing parametric curves
  • parametric curves
    • graphing / Graphing parametric curves, How it works…
  • parametric surfaces
    • drawing / Drawing parametric surfaces, How it works…, There's more…
  • path
    • plotting, in 3D / Plotting a path in 3D, How to do it…, How it works…
  • pdfcairo terminal / The pdfcairo terminal
  • pdflatex command / Getting ready
  • pdf terminal driver / Introducing gnuplot's high-quality graphics formats [new]
  • PGF
    • about / Getting ready
  • picture
    • completing / Completing the picture
  • pictures
    • plotting with / Plotting with pictures, How it works…
  • pie chart
    • plotting, with objects /
  • plot
    • size, modifying /
    • adding, to paper with LaTeX / Adding a plot to a paper using LaTeX, Getting ready, How it works…
    • including, in web page / Including a plot in a web page, The HTML source, There's more…
  • plot besj0(x) function
    • about / Plotting a function
    • plotting / Getting ready
  • plot command / There's more…, How it works…, Smoothing your data, How it works…
    • about / How it works…, How it works…
  • plots
    • positioning, manually / Positioning plots manually, How it works…
  • Plotshare
    • about / Sharing with Plotshare
    • URL / How to do it…
    • sharing with / How it works…
  • plot size
    • modifying /
  • pm3d mode / How it works…
  • pngcairo version
    • about / Using Unicode characters [new]
  • png terminal driver / Introducing gnuplot's high-quality graphics formats [new]
  • pointinterval /
  • points
    • plotting, with curves /
  • pointsize /
  • point style
    • modifying /
  • point type
    • about / How it works…
  • pointtype
    • about / There's more…
    /
  • polar coordinates
    • plotting with / Plotting with polar coordinates, How to do it…, How it works…
  • polygon object
    • about / Indicating the break
  • popen function / How it works…
  • POST method / How it works…
  • presentation slides
    • creating, with incrementally displayed graphs / Creating presentation slides with incrementally displayed graphs, Getting ready, How to do it…, How it works…
  • pseudofiles / The set mapping command
  • Python
    • gnuplot, scripting with / Getting ready, How it works…

R

  • refresh command / How it works…
  • replot / How it works…
  • replot command / How it works…, How it works…
  • reread keyword / There's more…
  • rgb keyword /

S

  • /Symbol tags / How it works…
  • scale function / How it works…
  • scatterplot
    • about / Making a scatterplot
    • making / Getting ready, How to do it…
  • set arrow command / How it works…
  • set bmargin command / There's more…
  • set border 2 command
    • about / Setting up the axes
  • set border 3 command / How it works…
  • set border command / How it works…
  • set cbrange command
    • about / How it works…
  • set cntrparam command / How it works…
  • set decimalsign command /
  • set grid command / How it works…
  • set hidden3d / There's more…
  • set hidden3d command / How it works…
  • set hidden front command / How it works…
  • set isosamples command
    • about / How it works…
  • set key command / There's more…, How to do it…
    • about / How it works…
  • set lmargin command / There's more…
  • set Mapping command / There's more…
  • set mapping command / How it works…
    • about / The set mapping command
  • set multiplot command / How it works…
  • set origin command / How it works…
  • set output command / How it works…
  • set parametric command / How it works…, There's more…
  • set pm3d at base / How it works…
  • set pm3d command / There's more…
  • set rmargin command
    • about / How it works…
  • set samples command
    • about / How it works…
  • set size command / How it works…
  • set style line / How it works…
  • set term command
    • about / Getting ready
    / How it works…, How it works…
  • set terminal command / How to do it…
  • set title command / How it works…, How it works…
  • set urange command / How it works…
  • set view command
    • about / How it works…
  • set view map command / How it works…
  • set ytics nomirror command / How it works…
  • show colors command /
  • size option /
  • smooth plotstyle / Smoothing your data
  • special filenames
    • about / There's more…
  • splot command
    • about / How it works…
    / How it works…, There's more…
  • sprintf function / How it works…
  • standalone mode
    • about / How it works…
  • statistical whisker plot
    • making / Making a statistical whisker plot, How it works…
  • stem plot
    • about / There's more…
  • string catenation operator
    • about / How it works…
  • stringcolumn function / How it works…
  • subintervals
    • plotting on / Plotting on subintervals, How it works…
  • surface
    • coloring / Coloring the surface, How it works…, There's more…
  • surface grid plots, and contours
    • combining / There's more…
  • surface plot
    • about / Making a surface plot
    • creating / Making a surface plot, How it works…
    • with one setting changed / There's more…
  • surfaces
    • combining, with images / Combining surfaces with images, How it works…, There's more…
  • svg terminal / The svg terminal

T

  • test command /
  • TeX document / The TeX document
  • tic labels
    • formatting /
  • tics
    • manual tics, setting /
  • tics commands
    • about / Using two different y-axes
  • TikZ
    • used, for assembling documents / Assembling a document using TikZ and LaTeX [new], Making the plot, How it works…
  • title phrase
    • about / How it works…
  • trange
    • about / How it works…
  • transparency
    • applying /
  • two different Y axes
    • using / Using two different y-axes, How to do it…, How it works…
  • two dimensional (2D) plots / Introduction
  • two X axes
    • using / There's more…
  • typecast
    • about / How it works…

U

  • Unicode characters
    • about / Using Unicode characters [new], How it works…
    • using / Getting ready
  • unset key / How it works…
  • unset multiplot command /
  • unset surface command / How it works…
  • userstyles
    • about /
  • using keyword
    • about / There's more…

V

  • vector plot
    • about / Making a vector plot
    • creating / How to do it…, How it works…
  • view
    • about / How it works…
  • Vim
    • about / Using the Emacs GUI
  • volatile data
    • handling / Handling volatile data [new], The volatile data source
  • Volatile Data Source
    • about / The volatile data source
  • volatile keyword
    • about / Handling the data with gnuplot

W

  • Web
    • interactive plot, creating for / Making an interactive plot for the Web [new], How to do it…, How it works…
  • webGUI
    • writing, fot gnuplot / Writing a web GUI for gnuplot, 1. The program, How it works…
  • WebGUI
    • writing, fot gnuplot / How it works…
  • web page
    • plot, including in / Including a plot in a web page, The HTML source, There's more…
  • whiskerbars
    • about / How it works…
  • world.dat datafile / Getting ready
  • wxt terminal / The wxt terminal

X

  • xlabel command / How it works…
  • xrange / How it works…

Y

  • ylabel command / How it works…

Z

  • ztics value / How it works…
lock icon The rest of the chapter is locked
arrow left Previous Section
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime