Lets you create a custom symbolfor marking plotted points.
If only x is specified, it must be a (2, n) array of vertices, with element (0, i) containing the x-coordinate of the vertex, and element (1, i) containing the y-coordinate.
Fill
Thick
Symbols may be drawn with vectors or may be filled. Symbols may be of any size and may have up to 50 vertices. To use a user-defined symbol, set the value of the Psym plotting keyword or the !Psym system variable to +8 or -8.
The Psym keyword, in the call to PLOT, is given a value of -8 so that the data points are connected by lines. Also, the Symsize keyword is used with a value of 6 to increase the size of the plotting symbols. This example uses PV-WAVE:IMSL Statistics procedures RANDOMOPT and RANDOM.
x = [0, -0.5, -0.5, 0.5, 0.5, 0] y = [0.5, 0, -1, -1, 0, 0.5]
USERSYM, x, y, /Fill
RANDOMOPT, Set = 12542
pts = RANDOM(6) PLOT, pts, Psym = -8, Symsize = 6, $ X Range = [-0.1, 5.1]
Figure 2-127 Scattered data plot with user-defined markers for data points.
Figure 2-128 Scattered data plot with user-defined markers for data points.
Plotting Keywords: Psym and Symsize