9951 explained code solutions for 126 technologies


python-matplotlibHow to set chart opacity


Pass alpha argument to set level of chart transparency:

import matplotlib.pyplot as plt

plt.plot([2,5,1,4,6,7], alpha=0.3)
plt.show()ctrl + c
import matplotlib.pyplot as plt

loads Matplotlib module to use plotting capabilities

.plot(

plot specified data

alpha

sets level of transparency

0.3

set transparency level to 30%

.show()

render chart in a separate window