|
Re: plotting [message #49621 is a reply to message #47343] |
Sat, 05 August 2006 12:14  |
news.verizon.net
Messages: 47 Registered: August 2003
|
Member |
|
|
Amanda wrote:
> I have a file of 103 redshift values and I want to plot them on the x
> axis against the number of times that each one occurs on the y axis.
This is the definition of a histogram. You will want to use HISTOGRAM
function, and plot the histogram of the redshift vector.
If you are going to be using IDL for astronomy, then you might want
someone (the same person whot told you about readcol.pro) help you
download the entire IDL astronomy library so that you have access to
all the procedures in it. Then if you have a file, say
'redshift.dat', with 103 redshift values, the following two commands
will plot a histogram of the redshift values.
IDL> readcol,'redshift.dat', z ;Read the redshift values from the
file
IDL> plothist, z, bin=0.1 ;plot a histogram with a binning of
0.1 in redshift space
--Wayne Landsman
|
|
|