[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Plotting Data




Hey Tom,

I use gnuplot, which should be installed on your system.  If not, I'll lead
you through how to install a RPM file (if you don't know how).  Try
<gnuplot>, and then help.  It has a reasonable help system.

Here is a gnuplot file I use to plot errors:
--------------------------------
#set terminal png small color
#set output "daophot_best.png"

set xlabel "Magnitude"
set title "Magnitude vs. Magnitude Sigma\nDaophot & Allstar - 1 pass -
Analytica
l model"
#set xrange [*:13]
set yrange [*:.2]

set grid ytics
set grid mytics
#set log y
plot 'errors.V' using 3:2 title "V", 'errors.I' using 3:2 title "I"
pause -1 "Press return"
---------------------------------
The # are comment lines.  The first two lines will generate a png data
stream, and output to the file "daophot_best.png".  xlabel and title should
be obvious.  For the range statements, it's start:end, with '*' being auto.
If you put nothing in (no range statement), it's equivelent to [*:*].  grid
will put in tic marks (or more, see help set, then grid).  log will set
logrimith scale.  plot is the real command.  Here, I've specified two data
sets in two files ( you can do more), both using column 3 for X, and 2 for
Y.  You can graph functions, do stuff with the columns (for instance,
($3+5):2 would add 5 to every value from column 3 before plotting).  The
pause is necessary if you have no output set so you can see the xwindow that
will pop up (really quickly with no pause).

As long as you have data files which have nice, columnlar data, you can use
them with gnuplot.

Rob

> -----Original Message-----
> From: Tom Droege [mailto:tdroege2@earthlink.net]
> Sent: Tuesday, March 19, 2002 12:49 PM
> To: tass@listserv.wwa.com
> Subject: Plotting Data
> 
> 
> Pardon the obscurity of this message.  I am on the third try 
> to try to get 
> it to the list.  I seem to be saying something that offends 
> M$ordomo.  I 
> think he is about to send his troops to get me.
> 
> I am looking for someone to sent me a typical input statement 
> to a certain 
> plotting program that will allow me to make the kind of mag vis sigma 
> scatter plots that Michael and others make.  I would like a 
> few examples of 
> input to the plot program that we have previously discussed.
> 
> Tom Droege
> 
> 
>