next up previous contents
Next: Installing ROBOT on Up: Appendices Previous: History

Example scripts

simple_demo.rob

! Almost the simplest Robot file possible
! In principle the first two lines are not needed
! but are there in case this isn't the first Robot script to be run
! Anything after a "!" is a comment
reset   ! back to default values
n       ! new page
type    ! input some data
The title
X axis label
Y axis label
1 2 1              
2 3 1
3 4 1

g                  ! plot the data
return             ! and finish reading from this file

fit1_demo.rob

! a simple straight line fit
n
reset
type
The title
X axis label
Y axis label
10 20 1
20 30 1
30 40 1

g
curfit
polynomial
1 1
end
plotcur
return
style_demo.rob
! some different plotting styles
reset
N
nticky 3
type



10 20 1 3
20 30 3.2 2
40 50 1.2 1
50 10 2.1 4

divwindow
1 9
selwindow
1 1
g
selwindow
1 3
minoraxes
plotmode
filledhistogram
g
selwindow
1 5
plotmode
dashedlines
g
selwindow
1 7
plotmode
nice-symbol
5
g
selwindow
1 9
plotmode
bars2
title
Different Plotting Styles
g
return

 [figure63]
Figure 2: Example output from Robot (fit3_demo.rob)



Robin Corbet
Sat May 3 16:56:08 EDT 1997