(self)
return self.data is not None and self.data.domain is not None and \
            len(self.data) > 1 and self.attr_color is not None
Tells whether the current data and settings are suitable for drawing
        densities

        Returns:
            (bool):
Tells whether the current data and settings are suitable for drawing
        densities
Tells whether the current data and settings are suitable for drawing densities
def can_draw_density(self):
        """
        Tells whether the current data and settings are suitable for drawing
        densities

        Returns:
            (bool):
        """
        return self.data is not None and self.data.domain is not None and \
            len(self.data) > 1 and self.attr_color is not None
def can_draw_density ( self ) : return self . data is not None and self . data . domain is not None and len ( self . data ) > 1 and self . attr_color is not None