docstr: track parameter trajectories with a monitor(s)
  
  Input:
    min: monitor instance to track minima; if True, use a new Monitor
    max: monitor instance to track maxima; if True, use a new Monitor
  
  Output:
    None
docstr_tok: ["track","parameter","trajectories","with","a","monitor","(","s",")","Input",":","min",":","monitor","instance","to","track","minima",";","if","True",",","use","a","new","Monitor","max",":","monitor","instance","to","track","maxima",";","if","True",",","use","a","new","Monitor","Output",":","None"]
code: def UseMonitor(self, min=None, max=None):
      """track parameter trajectories with a monitor(s)
  
      Input:
        min: monitor instance to track minima; if True, use a new Monitor
        max: monitor instance to track maxima; if True, use a new Monitor
  
      Output:
        None
      """
      from mystic.monitors import Monitor
  
      if type(min) is bool:
          self._minmon = Monitor() if min else None
      elif min is not None:
          self._minmon = min
      if type(max) is bool:
          self._maxmon = Monitor() if max else None
      elif max is not None:
          self._maxmon = max
      return
  
file_path: mystic/examples3/surface.py
label_desc: Use image node_id 2 for calling the Surface obj's underlying member method code with example usage: obj.UseMonitor(min, max) without return types