Ciro Santilli OurBigBook.com  Sponsor 中国独裁统治 China Dictatorship 新疆改造中心、六四事件、法轮功、郝海东、709大抓捕、2015巴拿马文件 邓家贵、低端人口、西藏骚乱
matplotlib/subplots.py
#!/usr/bin/env python
"""
The best way to do subplots is via the subplots method instead of `add_subplot()`.
"""
import itertools
def plot(plt, default_params):
    fig, axs = plt.subplots(2, 2)
    for x, y in itertools.product([0, 1], [0, 1]):
        ax = axs[x, y];
        ax.plot([x, y])
        ax.set_title('{} {}'.format(x, y))