# 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: `PolygonVisual`

  Displays a 2D ellipse

  Parameters:
    center array

      Center of the ellipse

    color instance of Color

      The face color to use.

    border_color instance 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.

    radius float | tuple

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

    start_angle float

      Start angle of the ellipse in degrees Defaults to 0.

    span_angle float

      Span angle of the ellipse in degrees Defaults to 360.

    num_segments int

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

    **kwargs dict

      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.

previous

vispy.visuals.cube module

next

vispy.visuals.gridlines module