Blame demo/nonlinear3.dem

Packit 0986c0
# This example shows how a nonlinear axis definition can be used to 
Packit 0986c0
# set up "probability axis" scaling on both the x and y axes.
Packit 0986c0
# This is also known as "probit" scaling.
Packit 0986c0
# We compare 3 treatments of an image file (Tux).
Packit 0986c0
# They differ in the sigma value defining the normal distribution curve
Packit 0986c0
# used for scaling.
Packit 0986c0
# The 4th plot shows the original, unscaled image using linear axes.
Packit 0986c0
#
Packit 0986c0
unset border
Packit 0986c0
set title offset 0,-1
Packit 0986c0
Packit 0986c0
set multiplot layout 2,2 title "Probability axes:  Scale image pixels by distance from center treated as a Z-score"
Packit 0986c0
Packit 0986c0
set title "Sigma = 22 pixels"
Packit 0986c0
sigma = 22.
Packit 0986c0
ticinterval = 2
Packit 0986c0
load 'probably_tux.dem'
Packit 0986c0
Packit 0986c0
set title "Sigma = 30 pixels"
Packit 0986c0
sigma = 30.
Packit 0986c0
ticinterval = 1
Packit 0986c0
load 'probably_tux.dem'
Packit 0986c0
Packit 0986c0
set title "Sigma = 60 pixels"
Packit 0986c0
sigma = 60.
Packit 0986c0
load 'probably_tux.dem'
Packit 0986c0
Packit 0986c0
set title "Linear Scale"
Packit 0986c0
set label 1 "Tux"
Packit 0986c0
set xlabel "   "
Packit 0986c0
set ylabel "   "
Packit 0986c0
unset nonlinear x
Packit 0986c0
unset nonlinear y
Packit 0986c0
unset xtics
Packit 0986c0
unset ytics
Packit 0986c0
replot
Packit 0986c0
Packit 0986c0
unset multiplot
Packit 0986c0
Packit 0986c0
pause -1 "<cr> to continue"
Packit 0986c0
reset