def check_axis_line(self):
        """If only one axis is used, draw line to indicate.

        Such line is parallel to the axis being used and
        touches the center of the obj being translated.
        """
        ### return earlier if moving with all axes in use

        if self.x_axis_factor and self.y_axis_factor:
            return

        ### draw line

        elif self.x_axis_factor and not self.y_axis_factor:

            y = self.active_obj.rect.centery
            start, end = (0, y), (SCREEN_RECT.right, y)

        elif self.y_axis_factor and not self.x_axis_factor:

            x = self.active_obj.rect.centerx
            start, end = (x, 0), (x, SCREEN_RECT.bottom)

        draw_line(SCREEN, YELLOW, start, end, 2)
If only one axis is used, draw line to indicate.

        Such line is parallel to the axis being used and
        touches the center of the obj being translated.
        
nodezator/editing/reposition.py