ptvis.components.make_circular_sector_cells

ptvis.components.make_circular_sector_cells(xs, ys, start_angles, stop_angles, radii, hole_radius=0.0, texts=None, colors=None)[source]

Make cells consisting of circular sectors.

Parameters:
  • xs (array-like of float) – X coordinates of centers of circular sectors.

  • ys (array-like of float) – Y coordinates of centers of circular sectors.

  • start_angles (array-like of float) – Angles at which circular sectors start.

  • stop_angles (array-like of float) – Angles at which circular sectors stop.

  • radii (array-like of float) – Radii of circular sectors.

  • hole_radius (float, optional) – Radius of a hole of a cell.

  • texts (array-like of str, optional) – Texts of circular sectors.

  • colors (array-like of str, optional) – Fill colors of circular sectors.

Returns:

  • shapes (list of plotly.graph_objects.layout.Shape) – Shape objects for circular sectors.

  • text_scatter (plotly.graph_objects.Scatter) – Scatter object for texts.