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