plt set linewidth after plotting code example Example: plt.plot width line plt.plot(data,linewidth=4)