O'Reilly logo

gnuplot Cookbook by Lee Phillips

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adding a label with an arrow

Complex graphs can often benefit from information in addition to what can be provided in a title, in the axis labels, and a legend. Sometimes we need to explain the meaning of a particular feature on the graph. This can be done with labels and arrows.

Adding a label with an arrow

How to do it…

Following is the complete script that you can feed to gnuplot to create the graph:

set term postscript landscape set out 'fourier.ps' set yrange [-1.5:1.5] set xrange [0:6.3] set ytics nomirror set y2tics 0,.1 set y2range [0:1.2] set style fill pattern 5 set key at graph .9, .9 spacing 3 font "Helvetica, 14" set xlabel "Time (sec.)" font "Courier, 12" set ylabel ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required