12.07.2015 Views

COPYRIGHT 2008, PRINCETON UNIVERSITY PRESS

COPYRIGHT 2008, PRINCETON UNIVERSITY PRESS

COPYRIGHT 2008, PRINCETON UNIVERSITY PRESS

SHOW MORE
SHOW LESS
  • No tags were found...

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

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

industrial-strength data visualization 579Figure C.9 The visual program Simple_linear_plot.net on the left imports a simple linear datafile and produces the simple x + y plot shown on the right.C.5 Sample Visual ProgramsWe have included on the CD a number of DX programs we have found useful forsome of the problems in this book and which produce the visualizations we areabout to show. Because color is such an important part of these visualizations, wesuggest that you look at these visualizations on the CD as well. Although you arefree to try these programs, please note that you will first have to edit them so thatthe file paths point to your directory, for example, /home/userid/DXdata, ratherthan the named directories in the files.C DC.5.1 Sample 1: Linear PlotThe visual program simple_linear_plot.net (Figure C.9 left) reads data from the filesimple_linear_data.dat and produces the simple linear plot shown on the right.These data are the sums of four sine functions,f(t)=1.8 sin(25t)+0.22 sin(38t)+0.5 sin(47t)+0.95 sin(66t), (3.1)stored at regular values of t.−101<strong>COPYRIGHT</strong> <strong>2008</strong>, PRINCET O N UNIVE R S I T Y P R E S SEVALUATION COPY ONLY. NOT FOR USE IN COURSES.ALLpup_06.04 — <strong>2008</strong>/2/15 — Page 579

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

Saved successfully!

Ooh no, something went wrong!