File: nonlinear4.dem

package info (click to toggle)
gnuplot 5.4.1%2Bdfsg1-1%2Bdeb11u1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 13,316 kB
  • sloc: ansic: 85,877; cpp: 7,440; makefile: 2,548; javascript: 2,322; sh: 1,542; lisp: 667; perl: 304; pascal: 191; tcl: 88; python: 46
file content (52 lines) | stat: -rw-r--r-- 942 bytes parent folder | download | duplicates (6)
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
46
47
48
49
50
51
52
#
# Nonlinear color axis
# Confirm equivalence of "set log cb" and 
# "set nonlinear cb via log10(z) inv 10**z"
#

set style function pm3d
set palette cubehelix negative
unset key
set title offset 0, -3
set view 65, 34, 1.00627, 1.41667
unset border
unset xtics; unset ytics
set cbtics add (450) offset -0.5,0
unset mcbtics

set isosamples 20, 20
set xyplane at 0
set xrange [  -2.00 : 6.00 ]
set yrange [  -5.00 : 5.00 ]
set zrange [  -50.0 : 450. ]
set cbrange [ 0.100 : 450. ]

set multiplot layout 1,3

# Linear colors
#
set title "Linear cb axis"
set ztics
set border 16
splot 5 + 100.*sin(sqrt(x**2+y**2))/(x**2+y**2)

# Log-scale colors
#
set title "set log cb"
set logscale cb 10
unset ztics
unset border
replot

# Nonlinear color axis (log scale)
#
set title "set nonlinear cb\nvia log10(z) inv 10**z"
unset log cb
set nonlinear cb via log10(z) inverse 10**z
set cbtics log
replot

unset multiplot

pause -1 "<cr> to continue"
reset