Scale

Scale[g,s]

represents graphics primitives g scaled by a factor s.

Scale[g,s,{x,y,}]

scales with the point {x,y,} kept fixed.

Scale[g,{sx,sy,},]

scales by different factors along different axes.

Details

  • Scale[g,s] scales with the center of the bounding box of g kept fixed.
  • You can specify special points such as {Left,Bottom} within the bounding box for g to be kept fixed.
  • The x position can be specified as Left, Center, or Right; the y position as Bottom, Center, or Top.
  • Explicit coordinates {x,y} are taken to be in the coordinate system of the graphic in which Scale[] appears.
  • For objects specified with scaled coordinates Scaled[{x,y}], Scale effectively applies its transformation to the corresponding ordinary coordinates.
  • Scale can modify the regions allocated to Text and Inset objects, but does not directly affect their contents, and does not scale fonts or other textual elements. »
  • Normal[expr] if possible replaces all Scale[gi,] constructs by versions of the gi in which the coordinates have explicitly been transformed.

Examples

open allclose all

Basic Examples  (2)

Transform a 2D shape:

In[1]:=
Click for copyable input
Out[1]=

Transform a 3D shape:

In[1]:=
Click for copyable input
Out[1]=

Scope  (6)

Generalizations & Extensions  (2)

Properties & Relations  (1)

Possible Issues  (1)

Neat Examples  (1)

See Also

Magnify  ScalingMatrix  ScalingTransform  AffineTransform  Rotate  Translate  GeometricTransformation  ImageResize

Introduced in 2007
(6.0)
| Updated in 2008
(7.0)