legend adjustments for issue #41 and issue #37