ptvis.utils.add_shapes¶
- ptvis.utils.add_shapes(fig, shapes, row=None, col=None)[source]¶
Add multiple shapes fast.
- Parameters:
fig (
plotly.graph_objects.Figure) – Figure object to which shapes are added.shapes (iterable of
plotly.graph_objects.layout.Shape) – Shape objects to be added.row (
int, optional) – Row where shapes are added.col (
int, optional) – Column where shapes are added.
- Returns:
plotly.graph_objects.Figure– Same figure object as thefigargument.