__init__.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:a-nice-mc 作者: ermongroup 项目源码 文件源码
def __init__(self, name='expression', display=True):
        super(Expression, self).__init__()
        self.name = name
        self.display = display
        if display:
            import matplotlib.pyplot as plt
            plt.ion()
        else:
            import matplotlib
            matplotlib.use('Agg')
            import matplotlib.pyplot as plt
        self.fig, (self.ax1, self.ax2) = plt.subplots(nrows=2, ncols=1)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号