gnuplot Cookbook

Book description

Visual guide to every kind of graph you can make with this plotting software with 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

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.

Table of contents

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

      7. Creating a cumulative distribution [new]
        1. Getting ready
        2. How to do it…
        3. How it works…
      8. Talking to gnuplot with C
        1. Getting ready
        2. How to do it…
        3. How it works…
      9. Scripting gnuplot with Python
        1. Getting ready
        2. How to do it…
        3. How it works…
        4. There's more…
      10. Plotting with Clojure
        1. Getting ready
        2. How to do it…
        3. How it works…
      11. Handling volatile data [new]
        1. How to do it…
          1. The volatile data source
          2. Handling the data with gnuplot
        2. How it works…
    15. 8. The Third Dimension
      1. Introduction
      2. Making a surface plot
        1. How to do it…
        2. How it works…
        3. There's more…
      3. Using coordinate mappings
        1. How to do it…
        2. How it works…
          1. The set mapping command
          2. The ++ pseudofile
          3. Coordinate ranges
          4. Completing the picture
      4. Coloring the surface
        1. How to do it…
        2. How it works…
        3. There's more…
      5. Making a contour plot
        1. How to do it…
        2. How it works…
        3. There's more…
      6. Making a vector plot
        1. How to do it…
        2. How it works…
        3. There's more…
      7. Making an image plot or heat map
        1. How to do it…
        2. How it works…
        3. There's more…
      8. Combining contours and images
        1. How to do it…
        2. How it works…
      9. Combining surfaces with images
        1. How to do it…
        2. How it works…
        3. There's more…
      10. Plotting a path in 3D
        1. How to do it…
        2. How it works…
      11. Drawing parametric surfaces
        1. How to do it…
        2. How it works…
        3. There's more…
    16. 9. Using and Making Graphical User Interfaces
      1. Introduction
      2. Using the Java gnuplot GUI JGP
        1. Getting ready
        2. How to do it…
          1. 1. Installing and starting up
          2. 2. Doing more with JGP
      3. Using the Emacs GUI
        1. Getting ready
        2. How to do it…
          1. 1. Running a gnuplot script
          2. 2. Help and menus
      4. Sharing with Plotshare
        1. How to do it…
        2. How it works…
      5. Writing a web GUI for gnuplot
        1. Getting ready
        2. How to do it…
          1. 1. The program
          2. 2. The auxiliary files
          3. 3. Running
        3. How it works…
    17. 10. Surveying Special Topics
      1. Introduction
      2. Avoiding overlapping labels
        1. How to do it…
        2. How it works…
        3. There's more…
      3. Plotting labels from files
        1. Getting ready
        2. How to do it…
        3. How it works…
      4. Mapping the Earth
        1. Getting ready
        2. How to do it…
        3. How it works…
        4. There's more…
      5. Making a labeled contour plot
        1. How to do it…
        2. How it works…
      6. Softening the axes
        1. How to do it…
        2. How it works…
      7. Putting arrows on the axes
        1. How to do it…
        2. How it works…
      8. Plotting with pictures
        1. Getting ready
        2. How to do it…
        3. How it works…
      9. Breaking an axis
        1. How to do it…
        2. How it works…
          1. Setting up the axes
          2. Defining the functions
          3. Setting up the tics
          4. Indicating the break
          5. And finally...
      10. Fitting the grid to the data
        1. How to do it…
        2. How it works…
      11. Coloring the axes
        1. How to do it…
        2. How it works…
    18. A. Finding Help and Information
    19. Index

Product information

  • Title: gnuplot Cookbook
  • Author(s): Lee Phillips
  • Release date: February 2012
  • Publisher(s): Packt Publishing
  • ISBN: 9781849517249