Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Matplotlib - plotting transparent and overlapping time series

I've been searching for a solution to generate a figure of overlapping time series, i.e., http://grollchristian.files.wordpress.com/2013/04/wpid-224.png?w=604 enter image description here

However, the only script I found online is done in R (above pic) or Matlab. What is my option under matplotlib?

like image 908
neither-nor Avatar asked Apr 08 '14 23:04

neither-nor


1 Answers

In matplotlib it is controlled by alpha argument.

You can do: plt.plot(x_data, y_data, color='black', alpha=0.4)

like image 194
CT Zhu Avatar answered Nov 02 '22 19:11

CT Zhu