def view_rates(self, indices=None, spacing=1):
res = self.synthetic_store.get(indices=indices, variables='r')
pylab.figure()
for key in res.keys():
colorVal = self._scalarMap_synthetic.to_rgba(int(key))
pylab.plot(res[key]['r'] + int(key)*spacing, color=colorVal)
pylab.xlabel('Time [chunks]')
pylab.yticks([], [])
pylab.show()
评论列表
文章目录