71215351 |
1 | puts "============" |
2 | puts "OCC25136" |
3 | puts "Display customized colorscale." |
4 | puts "============" |
5 | puts "" |
6 | |
7 | vinit View1 |
8 | vclear |
9 | vaxo |
10 | |
11 | # create default color scale |
7a324550 |
12 | vcolorscale cs -demo |
71215351 |
13 | vdump ${imagedir}/${casename}_1.png |
14 | |
15 | # reduce color scale range and number of intervals |
7a324550 |
16 | vcolorscale cs -range 0 20 5 |
71215351 |
17 | vdump ${imagedir}/${casename}_2.png |
18 | |
19 | # set user-defined colors and labels for color scale |
7a324550 |
20 | vcolorscale cs -colors white 0 0 1 green 1 0 0 1 1 1 -labels start 1 2 3 4 end |
71215351 |
21 | vdump ${imagedir}/${casename}_3.png |
22 | |
23 | # change colors of first and last intervals |
180f89a2 |
24 | vcolorscale cs -color 1 0.42 0.35 0.8 |
25 | vcolorscale cs -color 5 pink |
71215351 |
26 | |
27 | # change last label |
180f89a2 |
28 | vcolorscale cs -label 6 "last" |
71215351 |
29 | |
30 | # set a title for color scale |
7a324550 |
31 | vcolorscale cs -title "My color scale" |
71215351 |
32 | vdump ${imagedir}/${casename}_4.png |