labels1 = plt.clabel(CS, inline=True, use_clabeltext=True, fmt=formatter,
    fontsize=12)
labels2 = plt.clabel(CS, inline=1, fontsize=12)
for l in (labels1 + labels2):
    l.set_rotation(0)
change orientation of contour clabel text objects