Matplotlib.axes.Axes.get_transformed_clip_path_and_affine()
Matplotlib是Python中的一个库,它是NumPy库的数值-数学扩展。Axes包含了大多数图形元素:Axis、Tick、Line2D、Text、Polygon等,并设置坐标系。Axes的实例通过callbacks属性支持回调。
Matplotlib.axes.Axes.get_transformed_clip_path_and_affine() 函数
matplotlib库的Axes模块中的Axes.get_transformed_clip_path_and_affine()函数用于获得剪辑路径,其中应用了其变换的非仿射部分,以及其变换的剩余仿射部分。
语法:Axes.get_transformed_clip_path_and_affine(self)
参数:该方法不接受任何参数。
返回:该方法返回应用了转换的非仿射部分和转换的其余仿射部分的剪辑路径。
下面的例子说明了matplotlib.axes.axes.get_transformed_clip_path_and_affine()函数在matplotlib.axes中的作用:
示例1
输出:
示例2
输出: