Icons are changed
[gnuplot] / demo / textcolor.dem
1 #
2 # $Id: textcolor.dem,v 1.2 2003/10/17 15:02:21 mikulik Exp $
3 #
4 # Textcolor in 2D
5 #
6 reset
7 #
8 set title "Textcolor options in 2D plot (notice this title in color)" tc lt 1
9 set xrange [-2:2]
10 set yrange [-2:2]
11 #
12 set label 11 "label with textcolor lt 1"  at -1.5, 1.8  front nopoint tc lt 1
13 set label 10 "label with tc default" at -1.5, 1.6  front nopoint tc def
14 set label 12 "label with tc lt 2"    at -1.5, 1.4  front nopoint tc lt 2
15 set label 13 "label with tc lt 3"    at -1.5, 1.2  front nopoint tc lt 3
16 #
17 set xlabel 'color of xlabel should be lt 4' tc lt 4
18 set ylabel 'color of ylabel should still be black'
19 #
20 plot sin(x)
21 #
22 pause -1 "Hit return to continue"
23 #
24 #  Textcolor in 3D (req. pm3d)
25 #
26 set title "Textcolor options in splot (notice this title in color)" tc lt 1
27 set samples 20; set isosamples 20 
28 set autoscale
29 set key box
30 set pm3d at s
31 set colorbox horiz user origin .1,.12 size .8,.015
32 set view 58, 64, 0.83
33 set xrange [-10:10]
34 set yrange [-10:10]
35 set zrange [-10:10]
36 #
37 # Test labels
38 #
39 set label 1 "textcolor palette z" at 12,-10,-10  nopoint  tc pal z
40 set label 3 "tc pal z" at 12, -6, -6  nopoint  tc pal z
41 set label 4 "tc pal z" at 12, -3, -3  nopoint  tc pal z
42 set label 5 "tc pal z" at 12, -0,  0  nopoint  tc pal z
43 set label 6 "tc pal z" at 12,  3,  3  nopoint  tc pal z
44 set label 7 "tc pal z" at 12,  6,  6  nopoint  tc pal z
45 set label 8 "tc pal z" at 12,  9,  9  nopoint  tc pal z
46 #
47 set xlabel 'xlabel should be lt 4' tc lt 4
48 set cblabel 'color cblabel' textcolor lt 3
49 #
50 set label 10 "textcolor lt 1" at -10,-8,24  front nopoint tc lt 1
51 set label 11 "tc lt 2"    at -10,-8,21  front nopoint tc lt 2
52 set label 12 "tc lt 3"    at -10,-8,18  front nopoint tc lt 3
53 set label 13 "textcolor default" at -10,-8,15  front nopoint tc def
54 set label 14 "textcolor cb 5"   at -10,-8,12  front nopoint tc pal cb 5
55 set label 15 "tc cb 0"    at -10,-8,9  front nopoint tc pal cb 0
56 set label 16 "tc cb -5"    at -10,-8,6  front nopoint tc pal cb -5
57 set label 17 "textcolor frac .75" at -10,-8,3  nopoint tc pal frac .75
58 set label 18 "tc frac .25" at -10,-8,0  nopoint tc pal frac .25
59 #
60 set ylabel 'ylabel should still be black'
61 #set zlabel 'zlabel should have yet another color' tc lt 2
62 #
63 splot y
64 #
65 pause -1 "Hit return to continue"
66 #
67
68 reset
69