code: def integrate_shown_data(scale=1, fyname=1, autozero=0, **kwargs):
      
  
      def I(x,y):
          xout, iout = _fun.integrate_data(x, y, autozero=autozero)
          print("Total =", scale*iout[-1])
          return xout, scale*iout
  
      if fyname==1: fyname = "$"+str(scale)+"\\times \\int dx$"
  
      manipulate_shown_data(I, fxname=None, fyname=fyname, **kwargs)
docs: Numerically integrates the data visible on the current/specified axes using
      scale*fun.integrate_data(x,y). Modifies the visible data using
      manipulate_shown_data(**kwargs)
  
      autozero is the number of data points used to estimate the background
      for subtraction. If autozero = 0, no background subtraction is performed.