def thousands(x, pos):
    """The two args are the value and tick position"""
return '%4.1f' % (x * 0.001)
formatter = FuncFormatter(thousands)
ax = fig.add_subplot(211)
ax.yaxis.set_major_formatter(formatter)
arrange labels for plots on multiple panels to be in one line in matplotlib