#NEWLINE# def MakeBabyBoom( ) : #NEWLINE# #INDENT# 'Plot CDF of interarrival time on log and linear scales.\n    ' #NEWLINE# df = ReadBabyBoom ( ) #NEWLINE# diffs = df . minutes . diff ( ) #NEWLINE# cdf = thinkstats2 . Cdf ( cdf , label = 'actual' ) #NEWLINE# thinkplot . PrePlot ( cols = 2 ) #NEWLINE# thinkplot . Cdf ( cdf ) #NEWLINE# thinkplot . Config ( xlabel = 'minutes' , ylabel = 'CDF' , legend = False ) #NEWLINE# thinkplot . SubPlot ( 2 ) #NEWLINE# thinkplot . Cdf ( cdf , complement = True ) #NEWLINE# thinkplot . Config ( xlabel = 'minutes' , ylabel = 'CCDF' , yscale = 'log' , legend = False ) #NEWLINE# thinkplot . Save ( root = 'analytic_interarrivals' , legend = False )