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.

52 chapter 3TABLE 3.1Text Files Grace.dat and Grace2.dat ∗Grace.datGrace2.datx y x y z1 2 1 2 502 4 2 4 293 5 3 5 234 7 4 7 205 10 5 10 116 11 6 11 107 20 7 20 78 23 8 23 59 29 9 29 410 50 10 50 2∗ The text file Grace.dat (on the CD underCodes/JavaCodes/Data) contains one x valueand one y value per line. The file Grace2.datcontains one x value and two y values per line.In any case, make sure that your command brings up the user-friendlygraphical interface shown on the left in Figure 3.3 and not the pure-textcommand one.2. Plot a single data set by starting from the menu bar on top. Thena. Select progressively from the submenus that appear, Data/Import/ASCII.b. The Read sets window shown on the right in Figure 3.3 appears.c. Select the directory (folder) and file in which you have the data; in thepresent case select Grace.dat.d. Select Load as/Single set, Set type/XY and Autoscale on read/XY.e. Select OK (to create the plot) and then Cancel to close the window.3. Plot multiple data sets (Figure 3.3) is possible in step 2, only nowa. Select Grace2.dat, which contains two y values as shown in Table 3.1.b. Change Load as to NXY to indicate multiple data sets and then plot.Note: We suggest that you start your graphs off with Autoscale on read inorder to see all the data sets plotted. You may then change the scale if youwant, or eliminate some points and replot.4. Label and modify the axis properties by going back to the main window.Most of the basic utilities are under the Plot menu.a. Select Plot/Axis properties.b. Within the Axis Property window that appears, select Edit/X axis or Edit/Yaxis as appropriate.c. Select Scale/Linear for a linear plot, or Scale/Logarithmic for a logarithmicor semilog plot.d. Enter your choice for Axis label in the window.e. Customize the ticking and the numbers’ format to your heart’s desire.f. Choose Apply to see your changes and then Accept to close the window.−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 52

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

Saved successfully!

Ooh no, something went wrong!