show.py 216 B

1234567891011121314
  1. # -*- coding: utf-8 -*-
  2. """
  3. Created on Sun Jun 23 19:58:54 2013
  4. @author: pietro
  5. """
  6. import io
  7. def raw_figure(figpath):
  8. with io.OpenWrapper(figpath, mode='rb') as data:
  9. res = data.read()
  10. return res