vispy.visuals.ellipse module

Simple ellipse visual based on PolygonVisual

class vispy.visuals.ellipse.EllipseVisual(center=None, color='black', border_color=None, border_width=1, radius=(0.1, 0.1), start_angle=0.0, span_angle=360.0, num_segments=100, **kwargs)

Bases: vispy.visuals.polygon.PolygonVisual

Displays a 2D ellipse

Parameters
centerarray

Center of the ellipse

colorinstance of Color

The face color to use.

border_colorinstance of Color

The border color to use.

border_width: float

The width of the border in pixels Line widths > 1px are only guaranteed to work when using border_method=’agg’ method.

radiusfloat | tuple

Radius or radii of the ellipse Defaults to (0.1, 0.1)

start_anglefloat

Start angle of the ellipse in degrees Defaults to 0.

span_anglefloat

Span angle of the ellipse in degrees Defaults to 360.

num_segmentsint

Number of segments to be used to draw the ellipse Defaults to 100

**kwargsdict

Keyword arguments to pass to PolygonVisual.

property center

The center of the ellipse

property num_segments

The number of segments in the ellipse.

property radius

The start radii of the ellipse.

property span_angle

The angular span of the ellipse.

property start_angle

The start start_angle of the ellipse.