(cls, *args, **kwargs)
return o
This is the function which interprets
        arguments given to Plot.__init__ and
        Plot.__setattr__. Returns an initialized
        instance of the appropriate child class.
This is the function which interprets
        arguments given to Plot.__init__ and
        Plot.__setattr__. Returns an initialized
        instance of the appropriate child class.
This is the function which interprets arguments given to Plot . __init__ and Plot . __setattr__ . Returns an initialized instance of the appropriate child class .
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
def __new__ ( cls , * args , * * kwargs ) : 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