2808 explained code solutions for 75 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 specified data


sets level of transparency


set transparency level to 30%


render chart in a separate window