#!/usr/bin/gnuplot -persist # ## Save this file as 'template.gp' For each gnuplot job: ## 1. copy the file template.gp to some name.gp ## 2. edit name.gp for the specific job (note items in CAPS) ## 3. unix> gnuplot < name.gp or gnuplot> load 'name.gp' #--------------------------- gnuplot settings -----------------------# #------------to view on the screen under X11 (linux): # set term x11 #------------to view on the screen under Windows: set term win #------------to produce image file: #set term png #set output 'OUT.png' #--------------------to produce .ps file (printable): #set term postscript landscape enhanced color "Helvetica" 18 #set output 'OUT.ps' #------------------------ main settings for xy plots set zero 1e-06 #set xtics 0,0.5,4 #set mxtics #set ytics 0,0.5,4 #------------------------ time stamp and key: set time #set notime set key #set key {left | right | center} {top | bottom | center} #set nokey #------------------------ ranges: #set xrange [-1 : 4.0] #set yrange [0.03 : 3.96] #--------------------------------- labels (or/and can use key title) #set label 1 "CURVE1" at 5, 6 left #set label 2 "CURVE2" at 7, 8 left set title "TITLE for plot" set xlabel "XLABEL" set ylabel "YLABEL" plot \ "FILE1" u 1:2 t 'KEY1' w lines lt -1 lw 1, \ "FILE2" u 1:3 t 'KEY2' w lines lt 1 lw 2 ###-----------------------------------------------------------------# ### with lines | points | linespoints ### linetype: black -1, red 1,grn 2,blu 3,mag 4,cyan 5,brn 6,ora 7 ### key title: set key ; plot "dat" u 1:2 t 'key' ### modified column data: u ($1/1000):($3*100) w lines lt 3 lw 2