# ``igraph`.`drawing`.`plotly`.`utils``

module documentation
(source)

Undocumented

Function | `find_plotly` | Tries to import the `plotly` Python module if it is installed. Returns a fake module if everything fails.
Function | `format_arc` | Approximation of an SVG-style arc
Function | `format_path_step` | Format step in SVG path for plotly
Function | `format_rgba` | Format colors in a way understood by plotly

def find_plotly() -> `Any`: (source)

Tries to import the `plotly` Python module if it is installed. Returns a fake module if everything fails.

def format_arc(center, radius_x, radius_y, theta1, theta2, N=100, closed=False): (source)

Approximation of an SVG-style arc

NOTE: plotly does not currently support the native SVG "A/a" commands

def format_path_step(code, point_or_points): (source)

Format step in SVG path for plotly

def format_rgba(color): (source)

Format colors in a way understood by plotly