Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
gnuplot Cookbook

You're reading from  gnuplot Cookbook

Product type Book
Published in Feb 2012
Publisher Packt
ISBN-13 9781849517249
Pages 220 pages
Edition 1st Edition
Languages
Author (1):
Lee Phillips Lee Phillips
Profile icon Lee Phillips

Table of Contents (18) Chapters

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

Plotting labels from files


In Chapter 2, Annotating with Labels and Legends, we learned how to place a text label anywhere on the graph with the set label command. It is also possible to plot a set of labels whose text, positions, and possibly other attributes are derived from the information in a datafile. In this way, we can create visualizations such as the following:

The previous figure shows a collection of names of countries printed with a text size that is proportional to each country's population (aside from the practical requirement to impose a maximum and minimum font size). The labels are positioned to indicate each country's school intake rate in the first grade as a percentage of official school-age population versus the literacy rate for people in the age group 15-24. The data comes from the World Bank and can be found at http://data.worldbank.org/data-catalog/world-development-indicators. The numbers reported for 2009 are used, and all countries with data for that year are...

lock icon The rest of the chapter is locked
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 $15.99/month. Cancel anytime}