In write_xy_header(), the legend box can be now turned on or off and can have its position set.
Authored by: bugman 2010-02-22
Parent: [r10801]
Child: [r10803]