This section describes how to draw a scatter plot and refine the display with controls over colors and axis labels. The commands are:
set gxout scatter
display exp1;exp2<;exp3>
Where:
exp1
A grid expression that determines the position of the scatter points on the X axisexp2
A grid expression that determines the position of the scatter points on the Y axisexp3
A grid expression that determines the color of the points in the scatter plot (GrADS version 2.0.2+)The third argument to control the colorization of the points in the scatter diagram is new in GrADS version 2.0.2. Use set clevs
and set ccols
to control the range of values and color for each level. When using colorization of the scatter plot, if any of the color numbers is < 0, no points will be drawn for that level.
After a display of a scatter plot, GrADS will return four numbers: the min and max of the X axis values, followed by the min and max of the Y axis values.
Use the set vrange
command to specificy the min and max of the X axis values if you do not wish to use the defaults that GrADS selects.
Use the set vrange2
command to specificy the min and max of the Y axis values if you do not wish to use the defaults that GrADS selects.