daily pastebin goal
3%
SHARE
TWEET

Untitled

a guest Dec 7th, 2017 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def plotImage(xData, yData, im):
  2.     for x, y in zip(xData, yData):
  3.         bb = Bbox.from_bounds(x,y,10,10)
  4.         bb2 = TransformedBbox(bb,ax.transData)
  5.         bbox_image = BboxImage(bb2,
  6.                             norm = None,
  7.                             origin=None,
  8.                             clip_on=False)
  9.  
  10.         bbox_image.set_data(im)
  11.         ax.add_artist(bbox_image)
RAW Paste Data
Top