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)
评论列表
文章目录