课程评价 (0)

请对课程作出评价:
0/300

学员评价

暂无精选评价
15分钟

Rectangle 类

matplotlib.patches.Rectangle类是矩形类(基类是matplotlib.patches.Patch),其构造函数为:Rectangle(xy,width,height,angle=0.0,**kwargs)。 参数为:

  • xy:矩形左下角坐标
  • width:矩形宽度
  • height:矩形高度
  • 其他关键字参数用于设置属性

其属性有:

  • 继承自Artist基类的属性: .alpha.animated.axes.clip_box、..clip_on.clip_path.contains.figure.gid.label.picker.transform.url.visible.zorder
  • 继承自Patch基类的属性: .antialiased或者.aa.capstyle.color.edgecolor或者.ec.facecolor或者.fc.fill.hatch.joinstyle.linestyle或者.ls.linewidth或者.lw属性