File: nonlinear3.dem

package info (click to toggle)
gnuplot 6.0.2%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 14,940 kB
  • sloc: ansic: 95,319; cpp: 7,590; makefile: 2,470; javascript: 2,328; sh: 1,531; lisp: 664; perl: 304; pascal: 191; tcl: 88; python: 46
file content (45 lines) | stat: -rw-r--r-- 1,049 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# This example shows how a nonlinear axis definition can be used to 
# set up "probability axis" scaling on both the x and y axes.
# This is also known as "probit" scaling.
# We compare 3 treatments of an image file (Tux).
# They differ in the sigma value defining the normal distribution curve
# used for scaling.
# The 4th plot shows the original, unscaled image using linear axes.
#
save_encoding_3 = GPVAL_ENCODING
set encoding utf8

unset border
set title offset 0,-1

set multiplot layout 2,2 title "Probability axes:  Scale image pixels by distance from center treated as a Z-score"

set title "Sigma = 22 pixels"
sigma = 22.
ticinterval = 2
load 'probably_tux.dem'

set title "Sigma = 30 pixels"
sigma = 30.
ticinterval = 1
load 'probably_tux.dem'

set title "Sigma = 60 pixels"
sigma = 60.
load 'probably_tux.dem'

set title "Linear Scale"
set label 1 "Tux"
set xlabel "   "
set ylabel "   "
unset nonlinear x
unset nonlinear y
unset xtics
unset ytics
replot

unset multiplot

pause -1 "<cr> to continue"
reset
set encoding save_encoding_3