qcodes/plots/qcmatplotlib.py
def add_to_plot(self, use_offset: bool=False, **kwargs):
        """
        adds one trace to this MatPlot.

        Args:
            use_offset: Whether or not ticks can have an offset
            **kwargs: with the exceptions given in the notes below
                (mostly the data!), these are passed directly to
                the matplotlib plotting routine.

        Returns:
            Plot handle for trace

        Notes:
            The following special cases apply for kwargs that are
            not passed directly to the plotting routine.

            * `subplot`: the 1-based axes number to append to (default 1)
            * if kwargs include `z`, we will draw a heatmap (ax.pcolormesh)
              `x`, `y`, and `z` are passed as positional args to pcolormesh
            * without `z` we draw a scatter/lines plot (ax.plot)
              `x`, `y`, and `fmt` (if present) are passed as positional
              args
        """
        # TODO some way to specify overlaid axes?
        # Note that there is a conversion from subplot kwarg, which is
        # 1-based, to subplot idx, which is 0-based.
        ax = self[kwargs.get('subplot', 1) - 1]
        if 'z' in kwargs:
            plot_object = self._draw_pcolormesh(ax, **kwargs)
        else:
            plot_object = self._draw_plot(ax, **kwargs)

        # Specify if axes ticks can have offset or not
        ax.ticklabel_format(useOffset=use_offset)

        self._update_labels(ax, kwargs)
        prev_default_title = self.get_default_title()

        self.traces.append({
            'config': kwargs,
            'plot_object': plot_object
        })

        if prev_default_title == self.title.get_text():
            # in case the user has updated title, don't change it anymore
            self.title.set_text(self.get_default_title())

        return plot_object

        adds one trace to this MatPlot.

        Args:
            use_offset: Whether or not ticks can have an offset
            **kwargs: with the exceptions given in the notes below
                (mostly the data!), these are passed directly to
                the matplotlib plotting routine.

        Returns:
            Plot handle for trace

        Notes:
            The following special cases apply for kwargs that are
            not passed directly to the plotting routine.

            * `subplot`: the 1-based axes number to append to (default 1)
            * if kwargs include `z`, we will draw a heatmap (ax.pcolormesh)
              `x`, `y`, and `z` are passed as positional args to pcolormesh
            * without `z` we draw a scatter/lines plot (ax.plot)
              `x`, `y`, and `fmt` (if present) are passed as positional
              args
        
adds one trace to this MatPlot.
adds one trace to this MatPlot .
def add_to_plot(self, use_offset: bool=False, **kwargs):
        ax = self[kwargs.get('subplot', 1) - 1]
        if 'z' in kwargs:
            plot_object = self._draw_pcolormesh(ax, **kwargs)
        else:
            plot_object = self._draw_plot(ax, **kwargs)
        ax.ticklabel_format(useOffset=use_offset)
        self._update_labels(ax, kwargs)
        prev_default_title = self.get_default_title()
        self.traces.append({
            'config': kwargs,
            'plot_object': plot_object
        })
        if prev_default_title == self.title.get_text():
            self.title.set_text(self.get_default_title())
        return plot_object
def add_to_plot ( self , use_offset : bool = False , ** kwargs ) : ax = self [ kwargs . get ( 'subplot' , 1 ) - 1 ] if 'z' in kwargs : plot_object = self . _draw_pcolormesh ( ax , ** kwargs ) else : plot_object = self . _draw_plot ( ax , ** kwargs ) ax . ticklabel_format ( useOffset = use_offset ) self . _update_labels ( ax , kwargs ) prev_default_title = self . get_default_title ( ) self . traces . append ( { 'config' : kwargs , 'plot_object' : plot_object } ) if prev_default_title == self . title . get_text ( ) : self . title . set_text ( self . get_default_title ( ) ) return plot_object
adds one trace to this MatPlot.
adds one trace to this MatPlot .
"""
        adds one trace to this MatPlot.

        Args:
            use_offset: Whether or not ticks can have an offset
            **kwargs: with the exceptions given in the notes below
                (mostly the data!), these are passed directly to
                the matplotlib plotting routine.

        Returns:
            Plot handle for trace

        Notes:
            The following special cases apply for kwargs that are
            not passed directly to the plotting routine.

            * `subplot`: the 1-based axes number to append to (default 1)
            * if kwargs include `z`, we will draw a heatmap (ax.pcolormesh)
              `x`, `y`, and `z` are passed as positional args to pcolormesh
            * without `z` we draw a scatter/lines plot (ax.plot)
              `x`, `y`, and `fmt` (if present) are passed as positional
              args
        """ # TODO some way to specify overlaid axes? # Note that there is a conversion from subplot kwarg, which is # 1-based, to subplot idx, which is 0-based. # Specify if axes ticks can have offset or not # in case the user has updated title, don't change it anymore
Plot handle for trace
Plot handle for trace
self
use_offset
bool
Whether or not ticks can have an offset
Whether or not ticks can have an offset
**kwargs
with the exceptions given in the notes below
(mostly the data!), these are passed directly to
the matplotlib plotting routine.
with the exceptions given in the notes below ( mostly the data! ) these are passed directly to the matplotlib plotting routine .