plot a legend