9951 explained code solutions for 126 technologies


python-matplotlibHow to change line width


import matplotlib.pyplot as plt
plt.plot([1,2,10,6,15,3,4], linewidth=5)
plt.show()ctrl + c
import matplotlib.pyplot as plt

loads Matplotlib module to use plotting capabilities

.plot(

plot specified data

[1,2,10,6,15,3,4]

values to use for first line

linewidth

set width of line

.show()

render chart in a separate window