clean up figure.py - separate axes legend and spine formatting from plot data