qcodes/plots/base.py
def add(self, *args, updater=None, **kwargs):
        """
        Add one trace to this plot.

        Args:
            args: optional way to provide x/y/z data without keywords
                If the last one is 1D, may be `y` or `x`, `y`
                If the last one is 2D, may be `z` or `x`, `y`, `z`

            updater: a callable (with no args) that updates the data in this trace
                if omitted, we will look for DataSets referenced in this data, and
                call their sync methods.

            kwargs: after inserting info found in args and possibly in set_arrays
                into `x`, `y`, and optionally `z`, these are passed along to
                self.add_to_plot.

        Returns:
            Plot handle for trace

        Examples:
            To use custom labels and units pass for example:

            >>> plot.add(x=set, y=amplitude,
            >>>          xlabel="set",
            >>>          xunit="V",
            >>>          ylabel= "Amplitude",
            >>>          yunit ="V")

        Array shapes for 2D plots:
            x:(1D-length m), y:(1D-length n), z: (2D- n*m array)
        """
        # TODO(giulioungaretti): replace with an explicit version, see expand trace
        self.expand_trace(args, kwargs)
        plot_object = self.add_to_plot(**kwargs)
        self.add_updater(updater, kwargs)

        return plot_object

        Add one trace to this plot.

        Args:
            args: optional way to provide x/y/z data without keywords
                If the last one is 1D, may be `y` or `x`, `y`
                If the last one is 2D, may be `z` or `x`, `y`, `z`

            updater: a callable (with no args) that updates the data in this trace
                if omitted, we will look for DataSets referenced in this data, and
                call their sync methods.

            kwargs: after inserting info found in args and possibly in set_arrays
                into `x`, `y`, and optionally `z`, these are passed along to
                self.add_to_plot.

        Returns:
            Plot handle for trace

        Examples:
            To use custom labels and units pass for example:

            >>> plot.add(x=set, y=amplitude,
            >>>          xlabel="set",
            >>>          xunit="V",
            >>>          ylabel= "Amplitude",
            >>>          yunit ="V")

        Array shapes for 2D plots:
            x:(1D-length m), y:(1D-length n), z: (2D- n*m array)
        
Add one trace to this plot.
Add one trace to this plot .
def add(self, *args, updater=None, **kwargs):
        self.expand_trace(args, kwargs)
        plot_object = self.add_to_plot(**kwargs)
        self.add_updater(updater, kwargs)
        return plot_object
def add ( self , * args , updater = None , ** kwargs ) : self . expand_trace ( args , kwargs ) plot_object = self . add_to_plot ( ** kwargs ) self . add_updater ( updater , kwargs ) return plot_object
Add one trace to this plot.
Add one trace to this plot .
"""
        Add one trace to this plot.

        Args:
            args: optional way to provide x/y/z data without keywords
                If the last one is 1D, may be `y` or `x`, `y`
                If the last one is 2D, may be `z` or `x`, `y`, `z`

            updater: a callable (with no args) that updates the data in this trace
                if omitted, we will look for DataSets referenced in this data, and
                call their sync methods.

            kwargs: after inserting info found in args and possibly in set_arrays
                into `x`, `y`, and optionally `z`, these are passed along to
                self.add_to_plot.

        Returns:
            Plot handle for trace

        Examples:
            To use custom labels and units pass for example:

            >>> plot.add(x=set, y=amplitude,
            >>>          xlabel="set",
            >>>          xunit="V",
            >>>          ylabel= "Amplitude",
            >>>          yunit ="V")

        Array shapes for 2D plots:
            x:(1D-length m), y:(1D-length n), z: (2D- n*m array)
        """ # TODO(giulioungaretti): replace with an explicit version, see expand trace
Plot handle for trace
Plot handle for trace
self
updater
a callable (with no args) that updates the data in this trace
if omitted, we will look for DataSets referenced in this data, and
call their sync methods.
a callable ( with no args ) that updates the data in this trace if omitted we will look for DataSets referenced in this data and call their sync methods .
args
optional way to provide x/y/z data without keywords
If the last one is 1D, may be `y` or `x`, `y`
If the last one is 2D, may be `z` or `x`, `y`, `z`
optional way to provide x / y / z data without keywords If the last one is 1D may be ` y ` or ` x ` ` y ` If the last one is 2D may be ` z ` or ` x ` ` y ` ` z `
kwargs
after inserting info found in args and possibly in set_arrays
into `x`, `y`, and optionally `z`, these are passed along to
self.add_to_plot.
after inserting info found in args and possibly in set_arrays into ` x ` ` y ` and optionally ` z ` these are passed along to self . add_to_plot .
examples
To use custom labels and units pass for example.


To use custom labels and units pass for example .