code: def plotants(vis, figfile):
      
      from .scripting import CasapyScript
  
      script = os.path.join(os.path.dirname(__file__), 'cscript_plotants.py')
  
      with CasapyScript(script, vis=vis, figfile=figfile) as cs:
          pass
docs: Plot the physical layout of the antennas described in the MS.
  
      vis (str)
        Path to the input dataset
      figfile (str)
        Path to the output image file.
  
      The output image format will be inferred from the extension of *figfile*.
      Example::
  
        from pwkit.environments.casa import tasks
        tasks.plotants('dataset.ms', 'antennas.png')