# symrangefld

How to download and try this example

    Usage: pl -gif symrangefld.htm
    Demonstrates use of symrangefield for having the color of a scatterplot symbol
    (in this case, squares) controlled by a data field, by range.

    // first define legend explicitly.. tags will be used for range comparison (it defines low end of range)
    #proc legendentry
    sampletype: symbol
    tag: 21
    details: shape=square style=filled fillcolor=pink radius=0.1
    label: 21 - 25

    #proc legendentry
    sampletype: symbol
    tag: 16
    details: shape=square style=filled fillcolor=green radius=0.1
    label: 16 - 20

    #proc legendentry
    sampletype: symbol
    tag: 11
    details: shape=square style=filled fillcolor=dullyellow radius=0.1
    label: 11 - 15

    #proc legendentry
    sampletype: symbol
    tag: 6
    details: shape=square style=filled fillcolor=orange radius=0.1
    label: 6 - 10

    #proc legendentry
    sampletype: symbol
    tag: 1
    details: shape=square style=filled fillcolor=red radius=0.1
    label: 1 - 5

    #proc getdata
    data:	3 7	3
    	4 6	12
    	2 8	4
    	1 6	22
    	2 6	16
    	1 7	7
            7 7     30

    #proc areadef
    rectangle: 1 1 4 4
    xrange: 0 10
    yrange: 0 10
    xaxis.stubs: inc 1
    yaxis.stubs: inc 1
    frame: color=gray(0.8)

    #proc scatterplot
    xfield: 1
    yfield: 2
    symrangefield: 3

    #proc legend
    location: min+0.3 max+1