Free Sample
+ Collection

gnuplot Cookbook

Cookbook
Lee Phillips

Over 80 recipes to visually explore the full range of features of the world's preeminent open source graphing system with this book and ebook
$23.99
$39.99
RRP $23.99
RRP $39.99
eBook
Print + eBook

Want this title & more?

$21.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781849517249
Paperback220 pages

About This Book

  • See a picture of the graph you want to make and find a ready-to-run script to produce it
  • Working examples of using gnuplot in your own programming language... C, Python, and more
  • Find a problem-solution approach with practical examples enriched with good pictorial illustrations and code

Who This Book Is For

Whether you are an old hand at gnuplot or new to it, this book is a convenient visual reference that covers the full range of gnuplot's capabilities, including its latest features. Some basic knowledge of plotting graphs is necessary.

Table of Contents

Chapter 1: Plotting Curves, Boxes, Points, and more
Introduction
Plotting a function
Plotting multiple curves
Using two different y-axes
Making a scatterplot
Plotting boxes
Plotting circles
Drawing filled curves
Handling financial data
Making a basic histogram plot
Stacking histograms
Plotting multiple histograms
Dealing with errors
Making a statistical whisker plot
Making an impulse plot
Graphing parametric curves
Plotting with polar coordinates
Chapter 2: Annotating with Labels and Legends
Introduction
Labeling the axes
Setting the label size
Adding a legend
Putting a box around the legend
Adding a label with an arrow
Using Unicode characters [new]
Putting equations in your labels
Chapter 3: Applying Colors and Styles
Introduction
Coloring your curves
Styling your curves
Applying transparency [new]
Plotting points with curves
Changing the point style
Changing the plot size
Positioning graphs on the page [new]
Plotting with objects [new]
Chapter 4: Controlling your Tics
Introduction
Adding minor tics
Placing tics on the second y-axis
Adjusting the tic size
Removing all tics
Defining the tic values
Making the tics stick out
Setting manual tics
Plotting with dates and times
Changing the language used for labels [new]
Using European-style decimals [new]
Formatting tic labels
Chapter 5: Combining Multiple Plots
Introduction
Arranging an array of plots
Positioning plots manually
Creating an inset plot
Multiplotting with labels and arrows
Chapter 6: Including Plots in Documents
Introduction
Introducing gnuplot's high-quality graphics formats [new]
Adding a plot to a paper using LaTeX
Assembling a document using TikZ and LaTeX [new]
Assembling a document using epslatex
Using gnuplot within LaTeX
Creating presentation slides with incrementally displayed graphs
Including a plot in a web page
Making an interactive plot for the Web [new]
Chapter 7: Programming gnuplot and Dealing with Data
Introduction
Scripting gnuplot with its own language
Plotting on subintervals
Smoothing your data
Fitting functions to your data
Using kdensity smoothing to improve on histograms [new]
Creating a cumulative distribution [new]
Talking to gnuplot with C
Scripting gnuplot with Python
Plotting with Clojure
Handling volatile data [new]
Chapter 8: The Third Dimension
Introduction
Making a surface plot
Using coordinate mappings
Coloring the surface
Making a contour plot
Making a vector plot
Making an image plot or heat map
Combining contours and images
Combining surfaces with images
Plotting a path in 3D
Drawing parametric surfaces
Chapter 9: Using and Making Graphical User Interfaces
Introduction
Using the Java gnuplot GUI JGP
Using the Emacs GUI
Sharing with Plotshare
Writing a web GUI for gnuplot
Chapter 10: Surveying Special Topics
Introduction
Avoiding overlapping labels
Plotting labels from files
Mapping the Earth
Making a labeled contour plot
Softening the axes
Putting arrows on the axes
Plotting with pictures
Breaking an axis
Fitting the grid to the data
Coloring the axes

What You Will Learn

  • Control the exact appearance of your graph
  • Create illustrations out of multiple plots
  • Rearrange your data before plotting
  • Create professional quality technical documents with beautiful illustrations
  • Add graphical output to your computer programs, in any language
  • Make web pages with interactive graphs

In Detail

gnuplot is the world's finest technical plotting software, used by scientists, engineers, and others for many years. It is in constant development and runs on practically every operating system, and can produce output in almost any format. The quality of its 3d plots is unmatched and its ability to be incorporated into computer programs and document preparation systems is excellent.

gnuplot Cookbook – it will help you master gnuplot. Start using gnuplot immediately to solve your problems in data analysis and presentation. Quickly find a visual example of the graph you want to make and see a complete, working script for producing it. Learn how to use the new features in gnuplot 4.4. Find clearly explained, working examples of using gnuplot with LaTeX and with your own computer programming language.

You will master all the ins and outs of gnuplot through gnuplot Cookbook.

You will learn to plot basic 2d to complex 3d plots, annotate from simple labels to equations, integrate from simple scripts to full documents and computer progams. You will be taught to annotate graphs with equations and symbols that match the style of the rest of your text, thus creating a seamless, professional document. You will be guided to create a web page with an interactive graph, and add graphical output to your simulation or numerical analysis program.

Start using all of gnuplot's simple to complex features to suit your needs, without studying its 200 page manual through this Cookbook.

Authors

Read More

Recommended for You