21.07.2015 Views

Linux Journal | January 2013 | Issue 225 - ACM Digital Library

Linux Journal | January 2013 | Issue 225 - ACM Digital Library

Linux Journal | January 2013 | Issue 225 - ACM Digital Library

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

[ UPFRONT ]Figure 4. Gnuplot even can handle 3-D plots.splot functions. As an example,say you have a data file that hasthe temperature and pressurefor each day. You can plot thetemperature with:plot "weather.dat" using 1:2 title "Temperature"If you want to get the pressuregraph, you would use:plot "weather.dat" using 1:3 title "Pressure"If you want to plot all threecolumns, you can use:splot "weather.dat"There are two ways ofcustomizing your plots when usinggnuplot. The first is to use optionsto the plot and splot commands.In this case, you define things likethe title of the plot, the axes orthe style. The styles available can28 / JANUARY <strong>2013</strong> / WWW.LINUXJOURNAL.COM

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!