NetworkPlotter.draw_lines

NetworkPlotter.draw_lines(lines)[source]

Draws lines on a 2D plot.

Parameters

lines (list of dict) – List of dictionaries containing the line properties. The following properties of a line can be specified in the dict.

  • start (list): XY(Z) coordinates of the start point.

  • end (list): XY(Z) coordinatesof the end point.

  • width (float, optional): The width of the line. Default is 1.0.

  • color (rgb tuple or hex string, optional): The color of the line. Default is black.

  • text (str, optional): The text of the label. Default is None.

  • textcolor (rgb tuple or hex string, optional): Color of the label text. Default is black.

  • fontsize (int, optional): The size of the font of the label text. Default is `12.

Returns

object – The matplotlib line collection object.