# colorfld

How to download and try this example

    Usage: pl -gif colorfld.htm
    Demonstrates different colored bars using colorfield.
    Also demonstrates colored legend text entries.

    // get the data..
    #proc getdata
    data:
    	7 r
    	10 r
    	5 b
    	7 b
    	8 g
    	12 g

    // set up plotting area..
    #proc areadef
    rectangle: 1 1 3 2
    xrange: 1 8
    yrange: 0 15

    // define legend explicitly, 3 entries..
    #proc legendentry
    sampletype: color
    label: Red bars
    details: red
    tag: r

    #proc legendentry
    sampletype: color
    label: Blue bars
    details: blue
    tag: b

    #proc legendentry
    sampletype: color
    label: Green bars
    details: green
    tag: g

    // render the bar graph..
    #proc bars
    lenfield: 1
    colorfield: 2

    // display the legend..
    #proc legend
    location: 3 max
    colortext: yes