First time here? Check out the FAQ!
try deleting the reference count of Mat before graphing (DSPIMG.refcount=0).