class_docstr: Grandparent class for plotting
  modes. Serves as interface for
  registration, lookup, and init
  of modes.
  
  To create a new plot mode,
  inherit from PlotModeBase
  or one of its children, such
  as PlotSurface or PlotCurve.
class_docstr_tok: ["Grandparent","class","for","plotting","modes",".","Serves","as","interface","for","registration",",","lookup",",","and","init","of","modes",".","To","create","a","new","plot","mode",",","inherit","from","PlotModeBase","or","one","of","its","children",",","such","as","PlotSurface","or","PlotCurve","."]
docstr: This is the function which interprets
  arguments given to Plot.__init__ and
  Plot.__setattr__. Returns an initialized
  instance of the appropriate child class.
docstr_tok: ["This","is","the","function","which","interprets","arguments","given","to","Plot.__init__","and","Plot.__setattr__",".","Returns","an","initialized","instance","of","the","appropriate","child","class","."]
code: def __new__(cls, *args, **kwargs):
      """
      This is the function which interprets
      arguments given to Plot.__init__ and
      Plot.__setattr__. Returns an initialized
      instance of the appropriate child class.
      """
  
      newargs, newkwargs = PlotMode._extract_options(args, kwargs)
      mode_arg = newkwargs.get("mode", "")
  
      # Interpret the arguments
      d_vars, intervals = PlotMode._interpret_args(newargs)
      i_vars = PlotMode._find_i_vars(d_vars, intervals)
      i, d = max([len(i_vars), len(intervals)]), len(d_vars)
  
      # Find the appropriate mode
      subcls = PlotMode._get_mode(mode_arg, i, d)
  
      # Create the object
      o = object.__new__(subcls)
  
      # Do some setup for the mode instance
      o.d_vars = d_vars
      o._fill_i_vars(i_vars)
      o._fill_intervals(intervals)
      o.options = newkwargs
  
      return o
  
imports: from .plot_interval import PlotInterval
  from .plot_object import PlotObject
  from .util import parse_option_string
  from sympy.core.symbol import Symbol
  from sympy.core.sympify import sympify
  from sympy.geometry.entity import GeometryEntity
  from sympy.utilities.iterables import is_sequence
label_desc: Use image node_id 2 for calling the PlotMode obj's underlying member method code with example usage: obj.__new__(cls) and returns: o