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

Avoiding overlapping labels


We devote our first recipe in this chapter to demonstrating several ways to avoid a common problem with gnuplot. As mentioned in previous chapters, gnuplot does not really try to account for the horizontal space occupied by tic labels, simply placing them at the tic positions and printing them in the selected tic font, whether that is the default or the one specified by the user.

This works acceptably well most of the time, but can fail spectacularly if our labels are long or we've chosen a big font. In these cases, the tic labels on the x-axis are in danger of overlapping. This is a particularly common problem when gnuplot is used to generate graphs automatically, where the user has no opportunity to tune each graph by hand.

In this recipe, we'll explore two ways to deal with long x-axis labels that don't require the use of tiny fonts to squeeze them in. The following figure shows the use of some very long numerical labels that are rotated to get them to fit, in...

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}