Added automated legend script for xmgrace