change line width plt python code example Example: matplotlib change thickness of line ax.plot(x, y1, c='b', label='y1',linewidth=7.0)