qcodes/plots/base.py
def add_updater(self, updater, plot_config):
        """
        Add an updater to the plot.

        Args:
            updater (Callable): 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.
            plot_config (dict): this is a dictionary that gets populated inside
                add() via expand_trace().
                The reason this is here is to fetch from the data_set the sync method
                to use it as an updater.
        """
        if updater is not None:
            self.data_updaters.add(updater)
        else:
            for key in self.data_keys:
                data_array = plot_config.get(key, '')
                if hasattr(data_array, 'data_set'):
                    if data_array.data_set is not None:
                        self.data_updaters.add(data_array.data_set.sync)

        # If previous data on this plot became static, perhaps because
        # its measurement loop finished, the updater may have been halted.
        # If we have new update functions, re-activate the updater
        # by reinstating its update interval
        if self.data_updaters:
            if hasattr(self, 'update_widget'):
                self.update_widget.interval = self.interval

        Add an updater to the plot.

        Args:
            updater (Callable): 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.
            plot_config (dict): this is a dictionary that gets populated inside
                add() via expand_trace().
                The reason this is here is to fetch from the data_set the sync method
                to use it as an updater.
        
Add an updater to the plot.
Add an updater to the plot .
def add_updater(self, updater, plot_config):
        if updater is not None:
            self.data_updaters.add(updater)
        else:
            for key in self.data_keys:
                data_array = plot_config.get(key, '')
                if hasattr(data_array, 'data_set'):
                    if data_array.data_set is not None:
                        self.data_updaters.add(data_array.data_set.sync)
        if self.data_updaters:
            if hasattr(self, 'update_widget'):
                self.update_widget.interval = self.interval
def add_updater ( self , updater , plot_config ) : if updater is not None : self . data_updaters . add ( updater ) else : for key in self . data_keys : data_array = plot_config . get ( key , '' ) if hasattr ( data_array , 'data_set' ) : if data_array . data_set is not None : self . data_updaters . add ( data_array . data_set . sync ) if self . data_updaters : if hasattr ( self , 'update_widget' ) : self . update_widget . interval = self . interval
Add an updater to the plot.
Add an updater to the plot .
"""
        Add an updater to the plot.

        Args:
            updater (Callable): 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.
            plot_config (dict): this is a dictionary that gets populated inside
                add() via expand_trace().
                The reason this is here is to fetch from the data_set the sync method
                to use it as an updater.
        """ # If previous data on this plot became static, perhaps because # its measurement loop finished, the updater may have been halted. # If we have new update functions, re-activate the updater # by reinstating its update interval
self
updater
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.
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 .
plot_config
this is a dictionary that gets populated inside
add() via expand_trace().
The reason this is here is to fetch from the data_set the sync method
to use it as an updater.
this is a dictionary that gets populated inside add () via expand_trace () . The reason this is here is to fetch from the data_set the sync method to use it as an updater .