jicbioimage/illustrate/__init__.py
def draw_line(self, pos1, pos2, color=(255, 0, 0)):
        """Draw a line between pos1 and pos2 on the canvas.

        :param pos1: position 1 (row, col) tuple
        :param pos2: position 2 (row, col) tuple
        :param color: RGB tuple
        """
        r1, c1 = tuple([int(round(i, 0)) for i in pos1])
        r2, c2 = tuple([int(round(i, 0)) for i in pos2])
        rr, cc = skimage.draw.line(r1, c1, r2, c2)
        self[rr, cc] = color
def draw_line(self, pos1, pos2, color=(255, 0, 0)):
        """Draw a line between pos1 and pos2 on the canvas.

        :param pos1: position 1 (row, col) tuple
        :param pos2: position 2 (row, col) tuple
        :param color: RGB tuple
        """
        r1, c1 = tuple([int(round(i, 0)) for i in pos1])
        r2, c2 = tuple([int(round(i, 0)) for i in pos2])
        rr, cc = skimage.draw.line(r1, c1, r2, c2)
        self[rr, cc] = color
def draw_line ( self , pos1 , pos2 , color = ( 255 , 0 , 0 ) ) : r1 , c1 = tuple ( [ int ( round ( i , 0 ) ) for i in pos1 ] ) r2 , c2 = tuple ( [ int ( round ( i , 0 ) ) for i in pos2 ] ) rr , cc = skimage . draw . line ( r1 , c1 , r2 , c2 ) self [ rr , cc ] = color
Draw a line between pos1 and pos2 on the canvas.

        :param pos1: position 1 (row, col) tuple
        :param pos2: position 2 (row, col) tuple
        :param color: RGB tuple
Draw a line between pos1 and pos2 on the canvas .