How to calculate the axis of orientation?,plt.show()