logo资料库

Gnuplot_Cookbook.pdf

第1页 / 共220页
第2页 / 共220页
第3页 / 共220页
第4页 / 共220页
第5页 / 共220页
第6页 / 共220页
第7页 / 共220页
第8页 / 共220页
资料共220页,剩余部分请下载后查看
Cover
Copyright
Credits
About the Author
About the Reviewers
www.PacktPub.com
Table of Contents
Preface
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
Appendix: Finding Help and Information
Index
gnuplot Cookbook Over 80 recipes to visually explore the full range of features of the world's preeminent open source graphing system Lee Phillips BIRMINGHAM - MUMBAI
gnuplot Cookbook Copyright © 2012 Packt Publishing All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews. Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book. Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information. First published: February 2012 Production Reference: 1170212 Published by Packt Publishing Ltd. Livery Place 35 Livery Street Birmingham B3 2PB, UK.. ISBN 978-1-84951-724-9 www.packtpub.com Cover Image by Aaron Grove (aaron@blowfishstudios.com)
Credits Author Lee Phillips Reviewers Andreas Bernauer David Millán Escrivá Acquisition Editor Usha Iyer Project Coordinator Kushal Bhardwaj Proofreader Joanna McMahon Indexers Tejal Daruwale Hemangini Bari Lead Technical Editor Dayan Hyames Production Coordinator Melwyn D'sa Cover Work Melwyn D'sa Technical Editors Sonali Tharwani Vishal D’souza Copy Editor Laxmi Subramanian
About the Author Lee Phillips grew up on the 17th floor of a public housing project on the Lower East Side of Manhattan. He attended Stuyvesant High School and Hampshire College, where he studied Physics, Mathematics, and Music. He received a Ph.D. in 1987 from Dartmouth in theoretical and computational physics for research in fluid dynamics. After completing postdoctoral work in plasma physics, Dr. Phillips was hired by the Naval Research Laboratory in Washington, DC, where he worked on various problems, including the NIKE laser fusion project. Dr. Phillips is now the Chief Scientist of the Alogus Research Corporation, which conducts research in the physical sciences and provides technology assessment for investors. I am grateful to the users of my gnuplot web pages for their interest, questions, and suggestions over the years, and to my family for their patience and support.
About the Reviewers Andreas Bernauer is a Software Engineer at Active Group in Germany. He graduated at Eberhard Karls Universität Tübingen, Germany, with a Degree in Bioinformatics and received a Master of Science degree in Genetics from the University of Connecticut, USA. In 2011, he earned a doctorate in Computer Engineering from Eberhard Karls Universität Tübingen. Andreas has more than 10 years of professional experience in software engineering. He implemented the server-side scripting engine in the scheme-based SUnet web server, hosted the Learning-Classifier-System workshops in Tübingen. He has been the reviewer for numerous scientific articles, research proposals, and books, and has been a judge in the German Federal Competition in Computer Science on several occasions. His main interests are functional programming and machine-learning algorithms. David Millán Escrivá was 8 years old when he wrote his first program on 8086 PC with Basic language. He has more than 10 years of experience in IT. He has worked on computer vision, computer graphics, and pattern recognition. Currently he is working on different projects about computer vision and AR. I would like to thank Izanskun and my daughter Eider.
www.PacktPub.com Support files, eBooks, discount offers, and more You might want to visit www.PacktPub.com for support files and downloads related to your book. Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at service@packtpub.com for more details. At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks. http://PacktLib.PacktPub.com Do you need instant solutions to your IT questions? PacktLib is Packt’s online digital book library. Here, you can access, read and search across Packt’s entire library of books. Why Subscribe? f Fully searchable across every book published by Packt f Copy and paste, print and bookmark content f On demand and accessible via web browser Free Access for Packt account holders If you have an account with Packt at www.PacktPub.com, you can use this to access PacktLib today and view nine entirely free books. Simply use your login credentials for immediate access.
Table of Contents Preface 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 1 7 8 8 10 11 13 14 16 17 20 21 22 24 25 27 29 31 32 35 35 36 38 40 43 44 46 47
分享到:
收藏