'Styles x,y axes to appear like ggplot2
Must be called after all plot and axis manipulation operations have
been carried out (needs to know final tick spacing)
From: https://github.com/wrobstory/climatic/blob/master/climatic/stylers.py'

def apply_final_touches(self, ax):

    for child in ax.get_children():
        if isinstance(child, mpl.spines.Spine):
            child.set_alpha(0)
    for line in (ax.get_xticklines() + ax.get_yticklines()):
        line.set_markersize(5)
        line.set_markeredgewidth(1.4)
    ax.xaxis.set_ticks_position(u'bottom')
    ax.yaxis.set_ticks_position(u'left')
    ax.grid(True, u'minor', color=u'#F2F2F2', linestyle=u'-', linewidth=0.7)
    if (not isinstance(ax.xaxis.get_major_locator(), mpl.ticker.LogLocator)):
        ax.xaxis.set_minor_locator(mpl.ticker.AutoMinorLocator(2))
    if (not isinstance(ax.yaxis.get_major_locator(), mpl.ticker.LogLocator)):
        ax.yaxis.set_minor_locator(mpl.ticker.AutoMinorLocator(2))
