Skip to content

Commit

Permalink
[Doc] Fix docstring (#7065)
Browse files Browse the repository at this point in the history
Issue: #6999

GGUI's `circles` method does not allow passing NumPy array as radius;
this PR fixes this error.
  • Loading branch information
neozhaoliang committed Jan 6, 2023
1 parent e1541b8 commit f40d122
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions python/taichi/ui/canvas.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,7 @@ def circles(self,
Args:
centers: a taichi 2D Vector field, where each element indicate the \
3D location of a vertex.
radius (Union[float, numpy.array]): radius of the circles in pixels. \
Can be either a single number, which will be applied to all circles, or a 1D NumPy array of the same length as `centers`.\
The `i-th` item in the array will be the radius for the `i-th` circle in `centers`.
radius (Number): radius of the circles in pixels.
color: a global color for the triangles as 3 floats representing \
RGB values. If `per_vertex_color` is provided, this is ignored.
per_vertex_color (Tuple[float]): a taichi 3D vector field, where \
Expand Down

0 comments on commit f40d122

Please sign in to comment.