Ciro Santilli OurBigBook.com  Sponsor 中国独裁统治 China Dictatorship 新疆改造中心、六四事件、法轮功、郝海东、709大抓捕、2015巴拿马文件 邓家贵、低端人口、西藏骚乱
matplotlib/subplots_add.py
#!/usr/bin/env python

"""
this is *not* the best method to do subplots:
always use `Figure.subplots` method instead.

2,2,1 is the same as 221 but more computational, so always use use it on
non interactive sessions
"""

def plot( plt, params ):
    fig = plt.figure()
    ax = fig.add_subplot(2, 2, 1)
    ax.plot([0, 0])
    ax = fig.add_subplot(2, 2, 2)
    ax.plot([0, 1])
    ax = fig.add_subplot(2, 2, 3)
    ax.plot([1, 0])
    ax = fig.add_subplot(2, 2, 4)
    ax.plot([1, 1])