def plotFrameIntervals(intervals):
 from pylab import hist, show, plot
 if (type(intervals) == str):
  f = open(intervals, 'r')
  intervals = eval(('[%s]' % f.readline()))
 plot(intervals)
 show()

def plotFrameIntervals ( intervals ) : from pylab import hist , show , plot if ( type ( intervals ) == str ) : f = open ( intervals , 'r' ) intervals = eval ( ( '[%s]' % f . readline ( ) ) ) plot ( intervals ) show ( )
plot a histogram of the frame intervals .