matplotlib ratio of axes code example Example: matplotlib plt.sapect plt.figure(figsize=(10,3)) plt.plot(x,y) plt.show()