1. 程式人生 > >兩點畫線

兩點畫線

已知:x[1],y[1];x[2],y[2] ,運用python 連線兩點

import matplotlib.pyplot as plt
plt.plot([x[1], x[2]], [yy[1],yy[2]],linewidth=0.5)