Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
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
1. Plotting Curves, Boxes, Points, and more 2. Annotating with Labels and Legends 3. Applying Colors and Styles 4. Controlling your Tics 5. Combining Multiple Plots 6. Including Plots in Documents 7. Programming gnuplot and Dealing with Data 8. The Third Dimension 9. Using and Making Graphical User Interfaces 10. Surveying Special Topics Finding Help and Information
Index

Applying transparency [new]


As of version 4.4, gnuplot supports transparency, which allows us to create attractive and sophisticated effects by setting the opacity of colors in various contexts. This technique is most useful when drawing with styles such as filledcurves using areas of solid color:

How to do it…

The following script will produce the previous figure:

set term svg
set out 'file.svg'
set style fill transparent solid 0.3
plot [0:pi] sin(x)**2 with filledcurves above y1=0 lc rgb  '#00ffff',\0.75*cos(2*x)**2 with filledcurves above y1=0 lc rgb '#aa00aa'

How it works…

We have included an explicit set term command in this recipe because transparency effects are only supported so far by a limited number of terminals. The SVG terminal is a recent addition to the gnuplot repertoire and is the new standard for resolution independent graphics on the Web; it has full support for transparency and produces high quality renderings that scale to any size without pixelation. Also, an SVG graph is...

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}