rofunc.utils.datalab.data_generator.circle#
1. Module Contents#
1.1. Functions#
Draw an arc. |
|
Draw the connection between two curves. |
1.2. API#
- rofunc.utils.datalab.data_generator.circle.draw_arc(center, radius, theta1, theta2, color)[source]#
Draw an arc.
Example:
>>> from rofunc.utils.datalab.data_generator.circle import draw_arc >>> import numpy as np >>> xy = draw_arc([-1, 0], 1, 0 * np.pi / 3, 2 * np.pi / 3, color='red')
- Parameters:
center – the center of the arc
radius – the radius of the arc
theta1 – the start angle of the arc
theta2 – the end angle of the arc
color – the color of the arc
- Returns:
the coordinates of the arc