class_docstr: Segments are lines in 2D space where each two each dimensions specify a
  (x, y) node of the line.
class_docstr_tok: ["Segments","are","lines","in","2D","space","where","each","two","each","dimensions","specify","a","(","x",",","y",")","node","of","the","line","."]
code: def get_data(self, element, ranges, style):
      inds = (1, 0, 3, 2) if self.invert_axes else (0, 1, 2, 3)
      xd0, yd0, xd1, yd1 = (
          dimension_sanitizer(element.get_dimension(i).name)
          for i in inds
      )
      x0s, y0s, x1s, y1s = (element.dimension_values(kd) for kd in inds)
      data = {xd0: x0s, xd1: x1s, yd0: y0s, yd1: y1s}
      mapping = dict(x0=xd0, x1=xd1, y0=yd0, y1=yd1)
      self._get_hover_data(data, element)
      return (data, mapping, style)
  
file_path: holoviews/holoviews/plotting/bokeh/geometry.py
imports: import numpy
  import param
  from ...core.util import dimension_sanitizer
  from ..mixins import GeomMixin
  from .element import ColorbarPlot, LegendPlot
  from .selection import BokehOverlaySelectionDisplay
  from .styles import base_properties, fill_properties, line_properties
label_desc: Use image node_id 1 for calling the SegmentPlot obj's underlying member method code with example usage: obj.get_data(element, ranges, style) and returns: data,  mapping,  style