matplotlib transparency

42

python change plot transparency -

# Basic syntax:
plt.plot(data, alpha=0.5)

# Note, the alpha parameter goes from 0 (fully transparent) to 1 
# 	(fully solid). It is especially useful when plotting overlapping
# 	histograms. 

matplotlib transparency -

plt.plot(x_values, y_values, "blue", linewidth=5, alpha=0.3)

matplotlib transparent line -

plt.plot(x, y, 'r-', alpha=0.7)

Comments

Submit
0 Comments