data.db
TITLE
DATA DSN X Y
|
Create your /home2/phys210/<you>/a04/
directory and the subdirectories
muview/
,
gnuplot/
,
extrema/
,
matlab/
and
octave/
,
where you should store any files used to make the same plot
(or as close as you can get)
with the respective applications.
With each application, for full credit, display the data with asymmetric uncertainties ("error bars") and plot them on a simple graph like that above. (Hint: to do this in matlab you will have to Google the undocumented matlab procedure errorbarxy.) If this proves too difficult, use the RMS (square root of the average of the squares) of the positive and negative uncertainties to plot symmetric "error bars".
You will need to edit data.db into differently formatted ASCII "data files" from which each program can read in the data; if so, give those files obvious mnemonic names like matlab.dat; if possible, each file some should include some comment lines explaining what it is and how it is meant to be used. (Most applications allow comments in some form.) In each case you should also be able to make a "command file" that tells the application to read in the data file, prepare and execute the plot, etc. It should also have some obvious mnemonic name like plot.cmd or plot.m (some applications require a special extension for command files).
Make a plot.ps or plot.eps or plot.pdf file in each case (this is your "answer") and store it with the other files for that application.
Within reason,2
you should learn how to control the æsthetics
of your graph (things like limits, "tick marks",
font sizes, symbol shapes and sizes, zero-axes,
axis labels, title, captions and so on.
There are certain standards for "publication quality" plots.
See for instance
http://authors.aps.org/STYLE/
or any copy of PHYSICAL
REVIEW LETTERS
or another APS journal
to get an idea of what is expected. (Most of it is "just common sense",
but Einstein taught us how unreliable "common sense" can be.
:-)
The "freeware" applications muview and extrema were developed at TRIUMF; their use will be demonstrated in class so that you should have no trouble producing the required plots with them. Both run on both Linux and Windows. Because muview is a Java applet, your $HOME directory must contain the file .java.policy. (This file is also needed to use muview under Mac-OS/X or Windows -- see requirements. On your Mac it goes in your $HOME directory, but in Windows its proper location is mysterious -- it depends on which version of Windows you are running.)
The other freeware applications gnuplot and octave can be found on any Linux distribution and are also available free for Windows.
The very expensive proprietary application matlab is available on hyper for your use; it comes with a fancy GUI (Graphical User Interface) including voluminous help files, excellent tutorials (see the "Manuals" page on our Website) and slick graphics - unlike its freeware cousin, octave, which has only simple help commands and uses gnuplot for its graphics. But octave is free and Open Source.3