Simple axis tick label and tick directions
First subplot moves the tick labels to inside the spines.
Second subplot moves the ticks to inside the spines.
These effects can be obtained for a standard Axes by tick_params.

import matplotlib.pyplot as plt
import mpl_toolkits.axisartist as axisartist
def setup_axes