Table of Contents
gnuplot Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why Subscribe?
Free Access for Packt account holders
Preface
Why gnuplot?
Why this book?
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Plotting Curves, Boxes, Points, and more
Introduction
Plotting a function
Getting ready
How to do it…
There's more…
Plotting multiple curves
Getting ready
How to do it…
How it works…
Using two different y-axes
How to do it…
How it works…
There's more…
Making a scatterplot
Getting ready
How to do it…
There's more…
Plotting boxes
How to do it…
How it works…
There's more…
Plotting circles
Getting ready
How to do it…
How it works…
Drawing filled curves
Getting ready
How to do it…
How it works…
There's more…
Handling financial data
Getting ready
How to do it…
How it works…
Making a basic histogram plot
Getting ready
How to do it…
How it works…
Stacking histograms
Getting ready
How to do it…
How it works…
Plotting multiple histograms
Getting ready
How to do it…
How it works…
Dealing with errors
Getting ready
How to do it…
How it works…
There's more…
Making a statistical whisker plot
Getting ready
How to do it…
How it works…
There's more…
Making an impulse plot
How to do it…
How it works…
There's more…
Graphing parametric curves
How to do it…
How it works…
There's more…
Plotting with polar coordinates
How to do it…
How it works…
2. Annotating with Labels and Legends
Introduction
Labeling the axes
Getting ready
How to do it…
How it works…
There's more…
Setting the label size
How to do it…
How it works…
There's more…
Adding a legend
How to do it…
How it works…
There's more…
Putting a box around the legend
How to do it…
How it works…
Adding a label with an arrow
How to do it…
How it works…
Using Unicode characters [new]
Getting ready
How to do it…
How it works…
Putting equations in your labels
How to do it…
How it works…
3. Applying Colors and Styles
Introduction
Coloring your curves
How to do it…
How it works…
There's more…
Styling your curves
How to do it…
How it works…
There's more…
Applying transparency [new]
How to do it…
How it works…
There's more…
Plotting points with curves
How to do it…
How it works…
Changing the point style
How to do it…
How it works…
Changing the plot size
How to do it…
How it works…
Positioning graphs on the page [new]
How to do it…
How it works…
Plotting with objects [new]
How to do it…
How it works…
4. Controlling your Tics
Introduction
Adding minor tics
How to do it…
How it works…
Placing tics on the second y-axis
How to do it…
How it works…
Adjusting the tic size
How to do it…
How it works…
There's more…
Removing all tics
How to do it…
How it works…
Defining the tic values
How to do it…
How it works…
Making the tics stick out
How to do it…
How it works…
Setting manual tics
How to do it…
How it works…
There's more…
Plotting with dates and times
Getting ready
How to do it…
How it works…
Changing the language used for labels [new]
How to do it…
How it works…
Using European-style decimals [new]
How to do it…
How it works…
Formatting tic labels
How to do it…
How it works…
There's more...
5. Combining Multiple Plots
Introduction
Arranging an array of plots
How to do it…
How it works…
Positioning plots manually
How to do it…
How it works…
There's more…
Creating an inset plot
How to do it…
How it works…
Multiplotting with labels and arrows
How to do it…
How it works…
6. Including Plots in Documents
Introduction
Introducing gnuplot's high-quality graphics formats [new]
Getting ready
How to do it…
How it works…
There's more…
The wxt terminal
The pdfcairo terminal
The svg terminal
Adding a plot to a paper using LaTeX
Getting ready
How to do it…
Creating the figure
The TeX document
Running LaTeX
How it works…
Assembling a document using TikZ and LaTeX [new]
Getting ready
How to do it…
Making the plot
The LaTeX document
How it works…
Assembling a document using epslatex
How to do it…
Making the plot
The LaTeX document
Producing the PDF
How it works…
Using gnuplot within LaTeX
Getting ready
How to do it…
How it works…
Creating presentation slides with incrementally displayed graphs
Getting ready
How to do it…
Making the plots
The LaTeX document
How it works…
The gnuplot script
The LaTeX document
Including a plot in a web page
How to do it…
The gnuplot script
The HTML source
How it works…
There's more…
Making an interactive plot for the Web [new]
Getting ready
How to do it…
How it works…
There's more…
7. Programming gnuplot and Dealing with Data
Introduction
Scripting gnuplot with its own language
How to do it…
How it works…
There's more…
Plotting on subintervals
How to do it…
How it works…
Smoothing your data
Getting ready
How to do it…
How it works…
Fitting functions to your data
Getting ready
How to do it…
How it works…
Using kdensity smoothing to improve on histograms [new]
Getting ready
How to ...