class_docstr: Segments are lines in 2D space where each two key dimensions specify a
  (x, y) node of the line.
class_docstr_tok: ["Segments","are","lines","in","2D","space","where","each","two","key","dimensions","specify","a","(","x",",","y",")","node","of","the","line","."]
code: def init_artists(self, ax, plot_args, plot_kwargs):
      if "c" in plot_kwargs:
          plot_kwargs["array"] = plot_kwargs.pop("c")
      if "vmin" in plot_kwargs and "vmax" in plot_kwargs:
          plot_kwargs["clim"] = plot_kwargs.pop(
              "vmin"
          ), plot_kwargs.pop("vmax")
      if "array" not in plot_kwargs and "cmap" in plot_kwargs:
          del plot_kwargs["cmap"]
      line_segments = LineCollection(*plot_args, **plot_kwargs)
      ax.add_collection(line_segments)
      return {"artist": line_segments}
  
file_path: holoviews/holoviews/plotting/mpl/geometry.py
imports: import numpy
  from matplotlib.collections import LineCollection, PatchCollection
  from matplotlib.patches import Rectangle
  from ...core.options import abbreviated_exception
  from ..mixins import GeomMixin
  from .element import ColorbarPlot
  from .path import PathPlot, PolygonPlot
label_desc: Use image node_id 1 for calling the SegmentPlot obj's underlying member method code with example usage: obj.init_artists(ax, plot_args, plot_kwargs) and returns: dict