code: def write_chisq(page, injList, grbtag):
  
      
  
      if injList:
          th = ['']+injList + ['OFFSOURCE']
      else:
          th= ['','OFFSOURCE']
          injList = ['OFFSOURCE']
      td = []
  
      plots = ['bank_veto','auto_veto','chi_square', 'mchirp']
  
      for test in plots:
          pTag = test.replace('_',' ').title()
          d = [pTag]
          for inj in injList + ['OFFSOURCE']:
              plot = markup.page()
              p = "%s/plots_clustered/GRB%s_%s_vs_snr_zoom.png" % (inj, grbtag,
                                                                   test)
              plot.a(href=p, title="%s %s versus SNR" % (inj, pTag))
              plot.img(src=p)
              plot.a.close()
              d.append(plot())
  
          td.append(d)
  
      page = write_table(page, th, td)
  
      return page
docs: Write injection chisq plots to markup.page object page