Ciro Santilli OurBigBook.com  Sponsor 中国独裁统治 China Dictatorship 新疆改造中心、六四事件、法轮功、郝海东、709大抓捕、2015巴拿马文件 邓家贵、低端人口、西藏骚乱
matplotlib/plot_matrix.py
#!/usr/bin/env python
"""
plot() can take a matrix. Each column is a line.
np.transpose() is a possible way to get such columns easily.

TODO: but can you set labels for those columns?
Maybe with structured ndarrys...
"""
def plot(plt, params):
    plt.plot(
        [
            [0,  0],
            [1,  1],
            [2,  4],
            [3,  9],
            [4, 16],
        ]
    )