Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Visualization and Graphics > Symbolic Graphics Language > Graphics Objects >

Disk

Disk[{x, y}, r]
is a two-dimensional graphics primitive that represents a filled disk of radius r centered at the point x, y.
Disk[{x, y}]
gives a disk of radius 1.
Disk[{x, y}, r, {Theta1, Theta2}]
gives a segment of a disk.
Disk[{x, y}, {rx, ry}]
gives an elliptical disk with semi-axes of lengths rx and ry, oriented parallel to the coordinate axes.
  • Angles are measured in radians counterclockwise from the positive x direction.
  • Disk[{x, y}, {rx, ry}, {Theta1, Theta2}] yields an elliptical disk segment obtained by transforming a circular disk segment with the specified starting and ending angles.  »
  • Scaled[{drx, dry}] or Scaled[{drx, dry}, {rx, ry}] can be used in the radius specification. The dri are in scaled coordinates, and the ri are in ordinary coordinates.
  • Offset[{ax, ay}] can be used to specify radii in printer's points.  »
  • FaceForm and EdgeForm can be used to specify how the interiors and boundaries of disks should be rendered. The default is that no explicit edge is drawn.  »
  • Individual coordinates, lists of coordinates, and parameters in disks can be Dynamic objects.
A unit disk:
A disk segment:
An elliptical disk:
Differently styled unit disks:
Specify radii:
Specify centers:
A disk segment:
An elliptical disk:
An elliptical disk segment:
Short form for a unit disk at the origin:
Color directives specify the face colors of disks:
FaceForm and EdgeForm can be used to specify the styles of the interiors and boundaries:
Boundaries of an elliptical disk segment:
Use Scaled coordinates and radii:
Use ImageScaled coordinates and radii:
Use Offset coordinates:
Use Offset to specify the radii in printer's points:
Use a Disk to annotate a plot of a trig function:
Make a pie chart:
Archimedes' approximation of the circle area:
The square packing of disks:
The hexagonal packing of disks:
Simulation of elliptical gears:
Use Rotate to get all possible elliptical disks:
The boundary of a disk defines a circle:
An implicit specification of a disk can be generated using RegionPlot:
A parametric specification of a disk can be generated using ParametricPlot:
Using Scaled radii will depend on the PlotRange:
Using ImageScaled sizes will depend on the ImageSize and AspectRatio:
Random disk collections:
A family of disks:
Digital petals:
Yin and yang:
New in 2 | Last modified in 6
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team