code: def genPGFPlot(
      experiments,
      methStyles,
      outputFile,
      xAxisField,
      yAxisField,
      axisType,
      noLegend,
      printXaxis,
      printYaxis,
      title,
  ):
      global LATEX_FIGURE
      global LATEX_LINE
      global AXIS
      global TITLE
  
      lines = []
      for methodName, points in experiments.items():
          legendEntry = ""
          if not noLegend:
              legendEntry = "\\addlegendentry{%s}" % methodName
          lines.append(
              LATEX_LINE
              % (methStyles[methodName], "\n".join(points), legendEntry)
          )
  
      if (
          axisType == AXIS_TYPES.LOGX_NORMALY
          or axisType == AXIS_TYPES.LOGLOG
      ):
          xAxisDescr = "%s (log. scale)" % AXIS[xAxisField]
      else:
          xAxisDescr = AXIS[xAxisField]
  
      if (
          axisType == AXIS_TYPES.NORMALX_LOGY
          or axisType == AXIS_TYPES.LOGLOG
      ):
          yAxisDescr = "%s (log. scale)" % AXIS[yAxisField]
      else:
          yAxisDescr = AXIS[yAxisField]
  
      if printYaxis == "0":
          yAxisDescr = ""
      if printXaxis == "0":
          xAxisDescr = ""
  
      axisLatex = getAxisLatex(axisType)
      # print(''.join(lines))
  
      return LATEX_FIGURE % (
          outputFile,
          axisLatex[0],
          xAxisDescr,
          yAxisDescr,
          title,
          "".join(lines),
          axisLatex[1],
      )
  
file_path: nmslib/previous_releases_scripts/genplot.py
imports: import argparse
  import os
  import re
  import sys
  import itertools
  import re
  from subprocess import call
label_desc: Use image node_id 4 for calling a global function with example usage: genPGFPlot(experiments, methStyles, outputFile, xAxisField, yAxisField, axisType, noLegend, printXaxis, printYaxis, title) and returns: unknown