In reply to Ksharp.

Thanks! This is very nice. You have used the STYLEATTRS statement and the DATACOLORS= option to define the (temporary) discrete attribute map, as shown in this post. I like the innovative use of the REFLINE statement to display a small horizontal space between each row. If you need more control over the attributes of the palette names, you can use the TEXT statement instead of the SCATTER statement:
text x=col y=name text=color;