Files
smargopolo/prigo-master/Java/ch.psi.mx.soc/gnuplot.cfgOmega
2019-07-31 17:58:05 +02:00

45 lines
1.7 KiB
Plaintext

#
# SoC Plot Configuration File for gnuplot.
#
# Command line syntax:
# $> gnuplot -persist -e "datafile='socResultOmega_2015-05-11_16:32:09.txt'" plot.cfg
#
# Note: If the data file doesn't exist, the script will abort at the plot command.
#
# Author: Andreas Isenegger, Bitcontrol GmbH, Switzerland
# Last Edit: 28-May-2015
# Copyright: 2015, Paul Scherrer Institute, Switzerland, all rights reserved.
#
reset
### Plot deviation in function of Omega to a window
# Makes plot window persisting, enables greek letters, sets title
windowTitle = sprintf("SoC Application - gnuplot of data in %s", datafile)
set terminal x11 0 persist enhanced title windowTitle
set title 'Sphere of Confusion'
set xlabel '{/Symbol W} [deg]'
set ylabel 'Deviation [nm]'
plot datafile using 2:4 with linespoints title "X = f({/Symbol W})", \
datafile using 2:5 with linespoints title "Y = f({/Symbol W})", \
datafile using 2:6 with linespoints title "Z = f({/Symbol W})"
### Plot deviation in function of Omega to a file
set terminal png
set output datafile.".XYZ.png"
plot datafile using 2:4 with linespoints title "X = f({/Symbol W})", \
datafile using 2:5 with linespoints title "Y = f({/Symbol W})", \
datafile using 2:6 with linespoints title "Z = f({/Symbol W})"
### Plot X/Y coordinates in function of Omega to another window
# Makes plot window persisting, enables greek letters, sets title
set terminal x11 1 persist enhanced title windowTitle
set xlabel 'X direction [nm]'
set ylabel 'Y direction [nm]'
plot datafile using 4:5 with linespoints title "X/Y = f({/Symbol W})"
### Plot X/Y coordinates in function of Omega to another file
set terminal png
set output datafile.".XvsY.png"
plot datafile using 4:5 with linespoints title "X/Y = f({/Symbol W})"