@glyph_method(glyphs.Segment)
def segment(self, *args: Any, **kwargs: Any) -> GlyphRenderer:
    '\nExamples:\n\n    .. code-block:: python\n\n        from bokeh.plotting import figure, output_file, show\n\n        plot = figure(width=300, height=300)\n        plot.segment(x0=[1, 2, 3], y0=[1, 2, 3],\n                     x1=[1, 2, 3], y1=[1.2, 2.5, 3.7],\n                     color="#F4A582", line_width=3)\n\n        show(plot)\n\n'
Examples:

    .. code-block:: python

        from bokeh.plotting import figure, output_file, show

        plot = figure(width=300, height=300)
        plot.segment(x0=[1, 2, 3], y0=[1, 2, 3],
                     x1=[1, 2, 3], y1=[1.2, 2.5, 3.7],
                     color="#F4A582", line_width=3)

        show(plot)
@glyph_method(glyphs.Segment)
def segment(self, *args: Any, **kwargs: Any) -> GlyphRenderer:
    '\nExamples:\n\n    .. code-block:: python\n\n        from bokeh.plotting import figure, output_file, show\n\n        plot = figure(width=300, height=300)\n        plot.segment(x0=[1, 2, 3], y0=[1, 2, 3],\n                     x1=[1, 2, 3], y1=[1.2, 2.5, 3.7],\n                     color="#F4A582", line_width=3)\n\n        show(plot)\n\n'