How to download and try this example
Usage: pl -gif symfld.htm Demonstrates use of symfield for having the appearance of a scatterplot symbol controlled by a data field.
// first define legend explicitly.. tags must match data field contents.. #proc legendentry sampletype: symbol tag: A details: shape=circle style=filled fillcolor=red radius=0.04 label: Red circles #proc legendentry sampletype: symbol tag: B details: shape=triangle style=filled fillcolor=green radius=0.06 label: Green triangles // get the data.. #proc getdata data: 3 7 A 4 6 B 2 8 A 2 8 A 2 8 B 2 8 B 2 8 B 1 6 A // define plotting area.. #proc areadef rectangle: 1 1 4 4 xrange: 0 10 yrange: 0 10 frame: color=gray(0.8) // render scatterplot.. #proc scatterplot xfield: 1 yfield: 2 symfield: 3 // display legend.. #proc legend location: min+0.3 min-0.3