irrad_control/gui/widgets/plot_widgets.py
def show_data(self, curve=None, show=True):
        """Show/hide the data of channel in PlotItem. If *channel* is None, all curves are shown/hidden."""

        if curve is not None and curve not in self.curves:
            logging.error('{} data not in graph. Current graphs: {}'.format(curve, ','.join(self.curves.keys())))
            return

        _curves = [curve] if curve is not None else self.curves.keys()

        for _cu in _curves:

            if show:
                self.curves[_cu].add_to_plot()
                self.curves[_cu].add_to_legend()
            else:
                self.curves[_cu].remove_from_plot()
                self.curves[_cu].remove_from_legend()
Show/hide the data of channel in PlotItem. If *channel* is None, all curves are shown/hidden.
Show/hide the data of channel in PlotItem. If *channel* is None, all curves are shown/hidden.
Show / hide the data of channel in PlotItem . If * channel * is None all curves are shown / hidden .
def show_data(self, curve=None, show=True):
        if curve is not None and curve not in self.curves:
            logging.error('{} data not in graph. Current graphs: {}'.format(curve, ','.join(self.curves.keys())))
            return
        _curves = [curve] if curve is not None else self.curves.keys()
        for _cu in _curves:
            if show:
                self.curves[_cu].add_to_plot()
                self.curves[_cu].add_to_legend()
            else:
                self.curves[_cu].remove_from_plot()
                self.curves[_cu].remove_from_legend()
def show_data ( self , curve = None , show = True ) : if curve is not None and curve not in self . curves : logging . error ( '{} data not in graph. Current graphs: {}' . format ( curve , ',' . join ( self . curves . keys ( ) ) ) ) return _curves = [ curve ] if curve is not None else self . curves . keys ( ) for _cu in _curves : if show : self . curves [ _cu ] . add_to_plot ( ) self . curves [ _cu ] . add_to_legend ( ) else : self . curves [ _cu ] . remove_from_plot ( ) self . curves [ _cu ] . remove_from_legend ( )
Show/hide the data of channel in PlotItem.
Show / hide the data of channel in PlotItem .
"""Show/hide the data of channel in PlotItem. If *channel* is None, all curves are shown/hidden."""
self
curve
show