def METHOD_NAME(self, gc, points, icon_mode=False):
    if len(points) == 0:
        return
    if not icon_mode:
        gc.clip_to_rect(self.x, self.y, self.width, self.height)
    with gc:
        gc.set_antialias(False)
        gc.set_stroke_color(self.color_)
        gc.set_line_width(self.line_width)
        gc.set_line_dash(self.line_style_)
        if self.orientation == "h":
            x, ylow, yhigh = transpose(points)
            start, end = column_stack((x, ylow)), column_stack((x, yhigh))
            gc.line_set(start, end)
            axis = 0
            low = ylow
            high = yhigh
        else:
            y, xlow, xhigh = transpose(points)
            start, end = column_stack((xlow, y)), column_stack((xhigh, y))
            gc.line_set(start, end)
            axis = 1
            low = xlow
            high = xhigh
        if self.endcap_style == "bar":
            self._render_bar_endcap(gc, start, end, low, high, axis)
        else:
            gc.stroke_path()
    if not icon_mode:
        self._draw_default_axes(gc)