legend function

internal functions for setting useful defaults for graphs