rofunc.utils.datalab.data_generator.circle#

1.  Module Contents#

1.1.  Functions#

draw_arc

Draw an arc.

draw_connect

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

rofunc.utils.datalab.data_generator.circle.draw_connect(l_curve, r_curve, type)[source]#

Draw the connection between two curves.

Parameters:
  • l_curve – the left curve

  • r_curve – the right curve

  • type – line style

Returns: