Mathematica 9 is now available

Rectangle

Usage

Rectangle[ xmin, ymin ,  xmax, ymax ]是一个图形原型,表示一个方向平行于坐标轴的填充矩形.
Rectangle[ xmin, ymin ,  xmax, ymax , graphics]给出一个使用指定图形填充的矩形.


Notes

• 可以使用ScaledOffset来指定矩形的坐标.
Rectangle[Scaled[ xmin, ymin ], Scaled[ xmax, ymax ]]得到一个具有由尺度坐标指定的顶角的矩形.
• 同ScaledOffset一样,任何普通坐标的组合可以用来指定矩形的顶角.
Rectangle[ xmin, ymin ,  xmax, ymax ] 等价于一个具有四个顶角的适当的Polygon.
• 你可以使用诸如GrayLevelRGBColor之类的图形指令来指定Rectangle[ xmin, ymin ,  xmax, ymax ]的填充 风格.
• 在Rectangle[ xmin, ymin ,  xmax, ymax , graphics]中,graphics可以是任何图形对象.
• 该矩形被当作图形对象所使用的完整显示区域. • 当矩形交迭时,它们的背景被视作是透明的. • 字体和绝对大小指定不会受到图形所使用的矩形大小的影响. • 对于Rectangle内部所给出的图形对象,可选项DisplayFunction, ColorOutputCharacterEncoding会被忽略.
• 参见 Mathematica 全书: 2.9.2节.
Further Examples

This displays two colored rectangles in the plane.

Evaluate the cell to see the graphic.

In[1]:=  



Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.