comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Plotting GSHHS coastline data in IDL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: plotting [message #49621 is a reply to message #47343] Sat, 05 August 2006 12:14 Go to previous message
news.verizon.net is currently offline  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
[Message index]
 
Read Message
Read Message
Previous Topic: plotting
Next Topic: Seconds to UTC date

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Oct 12 00:17:01 PDT 2025

Total time taken to generate the page: 1.43848 seconds